Auto-cpufreq doesn't run after enabling it in garuda assistant on hyprland

Hi.

I just installed and enabled the “auto-cpufreq” in garuda-assistant. After i restart the system and i want check it is running. I got the following output.

 sudo auto-cpufreq --stats
[sudo] password for :      

------------------------ auto-cpufreq not running ------------------------------

ERROR: auto-cpufreq is not running in daemon mode.

Make sure to run "sudo auto-cpufreq --install" first

-------------------------------------------------------------------------------
sudo systemctl status auto-cpufreq
[sudo] password for :      
○ auto-cpufreq.service - auto-cpufreq - Automatic CPU speed & power optimizer for Linux
     Loaded: loaded (/etc/systemd/system/auto-cpufreq.service; enabled; preset: disabled)
     Active: inactive (dead)

after this i enabled the services manually:

 sudo systemctl enable auto-cpufreq.service && sudo systemctl start auto-cpufreq.service

 ╭─robi@vostro in ~ as 🧙 took 342ms
 ╰─λ sudo systemctl status auto-cpufreq
● auto-cpufreq.service - auto-cpufreq - Automatic CPU speed & power optimizer for Linux
     Loaded: loaded (/etc/systemd/system/auto-cpufreq.service; enabled; preset: disabled)
     Active: active (running) since Thu 2024-01-25 22:11:38 GMT; 3s ago
   Main PID: 52002 (auto-cpufreq)
      Tasks: 1 (limit: 9332)
     Memory: 21.3M (peak: 23.7M)
        CPU: 513ms
     CGroup: /system.slice/auto-cpufreq.service
             └─52002 /usr/bin/python /usr/bin/auto-cpufreq --daemon

Jan 25 22:11:38 vostro-garuda systemd[1]: Started auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
 auto-cpufreq --stats

Note: You can quit stats mode by pressing "ctrl+c"
High CPU load (load average: 0.49, 0.59, 0.62)
setting turbo boost: on

-------------------------------------------------------------------------------

		"auto-cpufreq" is about to refresh ...
		Executed on: January 25 (Thursday) - 22:13:43

-------------------------------------------------------------------------------

Linux distro: Garuda Linux Soaring Spizaetus
Linux kernel: 6.7.1-zen1-1-zen
Processor: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
Cores: 8
Architecture: x86_64
Driver: intel_pstate

------------------------------ Current CPU stats ------------------------------

CPU max frequency: 3900 MHz
CPU min frequency: 400 MHz

Core	Usage	Temperature	Frequency
CPU0      5.1%        60 °C      3637 MHz
CPU1      0.0%        61 °C      3793 MHz
CPU2      4.0%        59 °C      3435 MHz
CPU3      6.0%        59 °C      3687 MHz
CPU4      9.2%        60 °C      3722 MHz
CPU5      5.9%        61 °C      3793 MHz
CPU6      4.0%        59 °C      3601 MHz
CPU7      4.0%        59 °C      3757 MHz

CPU fan speed: 0 RPM

---------------------------- CPU frequency scaling ----------------------------

Battery is: charging

Setting to use: "performance" governor

Total CPU usage: 2.6 %
Total system load: 0.53
Average temp. of all cores: 59.75 °C 

Load optimal (load average: 0.53, 0.59, 0.62)
setting turbo boost: off

So in my laptop after enabling auto-cpufreq in garuda-assistant dosn’t enabled it. Can someone check has a same issue?

Next i will check power-profile-daemon and thermald. Should i use all those together at the same time?

This article still okay for optimising laptops? ===> [GUIDE][OLD][OPINION] Configuring Garuda Linux for Laptop

edit:
power-profile-daemon is working fine for me.

edit2:
power-profile-daemon and auto-cpufreq doesn’t working together.
Which is better to use?

inxi:

 × garuda-inxi
System:
  Kernel: 6.7.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=095c9f1d-4e23-42b2-aa42-36402880711e rw rootflags=subvol=@
    quiet resume=UUID=4b8a0d61-7df0-445b-9329-0c5cf2f2c346 loglevel=3 ibt=off
  Desktop: Hyprland info: waybar vt: 1 dm: SDDM Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Laptop System: Dell product: Vostro 3580 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 0PMTCG v: A00 serial: <superuser required> UEFI: Dell
    v: 1.27.0 date: 11/16/2023
Battery:
  ID-1: BAT0 charge: 19.4 Wh (66.2%) condition: 29.3/42.0 Wh (69.8%)
    volts: 12.5 min: 11.4 model: BYD DELL 1VX1H97 type: Li-ion serial: <filter>
    status: charging
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: Intel Core i5-8265U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check gen: core 8 level: v3 note: check
    built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xF8
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 999 high: 1600 min/max: 400/3900 scaling:
    driver: intel_pstate governor: performance cores: 1: 1600 2: 1600 3: 1600
    4: 400 5: 1599 6: 400 7: 400 8: 400 bogomips: 28800
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Dell
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: HDMI-A-1,eDP-1 empty: DP-1,HDMI-A-2 bus-ID: 0000:00:02.0
    chip-ID: 8086:3ea0 class-ID: 0300
  Device-2: Sunplus Innovation Integrated_Webcam_HD driver: uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:3
    chip-ID: 1bcf:2b98 class-ID: 0e02
  Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
    compositor: Hyprland driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 d-rect: 4480x1080
    display-ID: 1
  Monitor-1: HDMI-A-1 pos: right model: LG (GoldStar) ULTRAWIDE
    serial: <filter> built: 2014 res: 2560x1080 hz: 60 dpi: 112 gamma: 1.2
    scale: 1 size: 677x290mm (26.65x11.42") diag: 628mm (24.7") modes:
    max: 2560x1080 min: 720x400
  Monitor-2: eDP-1 pos: primary,left model: AU Optronics 0x38ed built: 2015
    res: 1920x1080 hz: 60 dpi: 142 gamma: 1.2 scale: 1
    size: 344x193mm (13.54x7.6") diag: 394mm (15.5") ratio: 16:9
    modes: 1920x1080
  API: Vulkan v: 1.3.274 layers: 3 device: 0 type: integrated-gpu name: Intel
    UHD Graphics 620 (WHL GT2) driver: mesa intel v: 23.3.3-arch1.1
    device-ID: 8086:3ea0 surfaces: xcb,xlib,wayland device: 1 type: cpu
    name: llvmpipe (LLVM 16.0.6 256 bits) driver: mesa llvmpipe
    v: 23.3.3-arch1.1 (LLVM 16.0.6) device-ID: 10005:0000
    surfaces: xcb,xlib,wayland
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio vendor: Dell
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl
    bus-ID: 0000:00:1f.3 chip-ID: 8086:9dc8 class-ID: 0403
  API: ALSA v: k6.7.1-zen1-1-zen status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.0.1 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Dell driver: r8169 v: kernel port: 3000 bus-ID: 0000:01:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
    vendor: Dell driver: ath10k_pci v: kernel bus-ID: 0000:02:00.0
    chip-ID: 168c:0042 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: wguk123t state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: Qualcomm Atheros driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-10:4 chip-ID: 0cf3:e009
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 4.2 lmp-v: 8
    status: discoverable: no pairing: no
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode]
    driver: intel_nvme_remap v: N/A port: 4060 bus-ID: 0000:00:17.0
    chip-ID: 8086:282a rev: N/A class-ID: 0104
Drives:
  Local Storage: total: 1.36 TiB used: 9.02 GiB (0.6%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Toshiba
    model: KBG40ZNS256G NVMe 256GB size: 238.47 GiB block-size: physical: 512 B
    logical: 512 B tech: SSD serial: <filter> fw-rev: 10410106 temp: 22.9 C
    scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: A-Data model: SU630 size: 223.57 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD
    serial: <filter> fw-rev: 3R17 scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Samsung model: ST1000LM 024 HN-M101M
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B type: USB
    rev: 3.0 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
    fw-rev: 2AR2 scheme: MBR
Partition:
  ID-1: / raw-size: 60 GiB size: 60 GiB (100.00%) used: 7.07 GiB (11.8%)
    fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 584 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-3: /home raw-size: 162.16 GiB size: 162.16 GiB (100.00%)
    used: 1.95 GiB (1.2%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
  ID-4: /var/log raw-size: 60 GiB size: 60 GiB (100.00%)
    used: 7.07 GiB (11.8%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-5: /var/tmp raw-size: 60 GiB size: 60 GiB (100.00%)
    used: 7.07 GiB (11.8%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 16.01 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: swap-2 type: zram size: 7.63 GiB used: 31 MiB (0.4%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 8 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 55.0 C pch: 52.0 C mobo: 45.0 C
  Fan Speeds (rpm): cpu: 2692
Info:
  Processes: 279 Uptime: 3h 11m wakeups: 0 Memory: total: 8 GiB
  available: 7.63 GiB used: 3.98 GiB (52.1%) Init: systemd v: 255
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
  pm: pacman pkgs: 1423 libs: 411 tools: paru Shell: fish v: 3.7.0
  running-in: foot inxi: 3.3.31
Garuda (2.6.22-1):
  System install date:     2024-01-21
  Last full system update: 2024-01-25
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:         
auto-cpufreq --stats

------------------------ auto-cpufreq not running ------------------------------

ERROR: auto-cpufreq is not running in daemon mode.

Make sure to run "sudo auto-cpufreq --install" first

-------------------------------------------------------------------------------


 ╭─sgs@hypr in ~ as 🧙 took 134ms
   00:28:46 🕙
[🔴] × sudo auto-cpufreq --install

--------------------- Deploying auto-cpufreq as a daemon ----------------------

* Turn off bluetooth on boot

* Deploy auto-cpufreq install script

* Deploy auto-cpufreq remove script
There was a problem, couldn't determine GNOME Power Profiles Daemon

------------------ Running auto-cpufreq daemon install script ------------------

* Deploy auto-cpufreq systemd unit file
cp: der Aufruf von stat für '/usr/local/share/auto-cpufreq/scripts/auto-cpufreq.service' ist nicht möglich: Datei oder Verzeichnis nicht gefunden

* Reloading systemd manager configuration

* Stopping auto-cpufreq daemon (systemd) service

* Starting auto-cpufreq daemon (systemd) service

* Enabling auto-cpufreq daemon (systemd) service at boot
Created symlink /etc/systemd/system/multi-user.target.wants/auto-cpufreq.service → /etc/systemd/system/auto-cpufreq.service.

----------------- auto-cpufreq daemon installed and running -----------------

To view live stats, run:
auto-cpufreq --stats

To disable and remove auto-cpufreq daemon, run:
sudo auto-cpufreq --remove

-------------------------------------------------------------------------------


 ╭─sgs@hypr in ~ as 🧙 took 665ms
   00:28:51 🕙
 ╰─λ auto-cpufreq --stats

Note: You can quit stats mode by pressing "ctrl+c"
-------------------------------------------------------------------------------

Linux distro: Garuda Linux Soaring Spizaetus
Linux kernel: 6.7.1-AMD-znver3
Processor: AMD Ryzen 9 5900HX with Radeon Graphics
Cores: 16
Architecture: x86_64
Driver: amd-pstate-epp

------------------------------ Current CPU stats ------------------------------

CPU max frequency: 4680 MHz
CPU min frequency: 400 MHz

Core	Usage	Temperature	Frequency
CPU0      1.0%        56 °C      3550 MHz
CPU1      1.0%        56 °C      3268 MHz
CPU2      0.0%        56 °C       400 MHz
CPU3      0.0%        56 °C       400 MHz
CPU4      0.0%        56 °C      3269 MHz
CPU5      0.0%        56 °C       400 MHz
CPU6      0.0%        56 °C       400 MHz
CPU7      1.0%        56 °C       400 MHz
CPU8      0.0%        56 °C       400 MHz
CPU9      0.0%        56 °C       400 MHz
CPU10      2.0%        56 °C       400 MHz
CPU11      1.0%        56 °C       400 MHz
CPU12      2.0%        56 °C      3389 MHz
CPU13      0.0%        56 °C       400 MHz
CPU14      2.0%        56 °C       400 MHz
CPU15      0.0%        56 °C       400 MHz

---------------------------- CPU frequency scaling ----------------------------

Battery is: charging

Setting to use: "performance" governor
Setting to use: "balance_performance" EPP

Total CPU usage: 0.6 %
Total system load: 0.67
Average temp. of all cores: 56.12 °C 

Load optimal (load average: 0.67, 0.64, 0.51)
setting turbo boost: off
Warning: CPU turbo is not available

-------------------------------------------------------------------------------

		"auto-cpufreq" is about to refresh ...
		Executed on: January 26 (Friday) - 00:29:13

-------------------------------------------------------------------------------

Linux distro: Garuda Linux Soaring Spizaetus
Linux kernel: 6.7.1-AMD-znver3
Processor: AMD Ryzen 9 5900HX with Radeon Graphics
Cores: 16
Architecture: x86_64
Driver: amd-pstate-epp

------------------------------ Current CPU stats ------------------------------

CPU max frequency: 4680 MHz
CPU min frequency: 400 MHz

Core	Usage	Temperature	Frequency
CPU0      0.0%        58 °C       400 MHz
CPU1      0.0%        58 °C      3370 MHz
CPU2      0.0%        58 °C       400 MHz
CPU3      0.0%        58 °C       400 MHz
CPU4      1.0%        58 °C       400 MHz
CPU5      0.0%        58 °C       400 MHz
CPU6      0.0%        58 °C       400 MHz
CPU7      0.0%        58 °C       400 MHz
CPU8      0.0%        58 °C       400 MHz
CPU9      1.0%        58 °C       400 MHz
CPU10      2.0%        58 °C       400 MHz
CPU11      0.0%        58 °C       400 MHz
CPU12      0.0%        
3 Likes

Hmm… So you will need to run

sudo auto-cpufreq --install 

:eyes:
I also use auto-cpufreq + powersave tweaks
when I checked

 ╭─ankur@ankur in ~ 
 ╰─λ sudo auto-cpufreq --stats
[sudo] password for ankur:            

------------------------ auto-cpufreq not running ------------------------------

ERROR: auto-cpufreq is not running in daemon mode.

Make sure to run "sudo auto-cpufreq --install" first

-------------------------------------------------------------------------------

then I checked the systemctl status

 ╭─ankur@ankur in ~ 
 ╰─λ systemctl status auto-cpufreq
○ auto-cpufreq.service - auto-cpufreq - Automatic CPU speed & power optimizer for Linux
     Loaded: loaded (/etc/systemd/system/auto-cpufreq.service; enabled; preset: disabled)
     Active: inactive (dead)

Which means garuda assistant actually enables the auto-cpufreq
but you will need to run sudo auto-cpufreq --install command to make it completely running . :thinking:

BTW, I never noticed it because even in powersave tweaks my laptop was giving me good enough speed that I never realised something is wrong :sweat_smile:

2 Likes

Let me know if you notice better battery life after enabling auto-cpufreq

Okay, i run it now. it is working, but now i am not able to enable “power-profile-daemon”

In garuda assisntant i get “service state updated” but after this message still disabled.

[🔴] × sudo systemctl status power-profiles-daemon.service
Warning: The unit file, source configuration file or drop-ins of power-profiles-daemon.service changed on disk. Run 'systemctl daemon-reload' to reload units.
○ power-profiles-daemon.service
     Loaded: masked (Reason: Unit power-profiles-daemon.service is masked.)
     Active: inactive (dead)

Jan 26 15:39:48 vostro-garuda systemd[1]: Starting Power Profiles daemon...
Jan 26 15:39:48 vostro-garuda systemd[1]: Started Power Profiles daemon.
Jan 26 15:41:04 vostro-garuda systemd[1]: Stopping Power Profiles daemon...
Jan 26 15:41:04 vostro-garuda systemd[1]: power-profiles-daemon.service: Deactivated successfully.
Jan 26 15:41:04 vostro-garuda systemd[1]: Stopped Power Profiles daemon.

Yes, i run “systemctl daemon-reload”

[🔴] × sudo systemctl daemon-reload

 ╭─robi@vostro in ~ as 🧙 took 569ms
 ╰─λ sudo systemctl status power-profiles-daemon.service
○ power-profiles-daemon.service
     Loaded: masked (Reason: Unit power-profiles-daemon.service is masked.)
     Active: inactive (dead)

Jan 26 15:39:48 vostro-garuda systemd[1]: Starting Power Profiles daemon...
Jan 26 15:39:48 vostro-garuda systemd[1]: Started Power Profiles daemon.
Jan 26 15:41:04 vostro-garuda systemd[1]: Stopping Power Profiles daemon...
Jan 26 15:41:04 vostro-garuda systemd[1]: power-profiles-daemon.service: Deactivated successfully.
Jan 26 15:41:04 vostro-garuda systemd[1]: Stopped Power Profiles daemon.
[🔴] × powerprofilesctl
Failed to communicate with power-profiles-daemon: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: activation request failed: unit is masked. (3)

Am i missed something?

you can’t have both services enabled.
Power Profiles daemon is automatically disabled by auto-cpufreq-installer due to it’s conflict with auto-cpufreq.service.

1 Like

Yes, I see it now. should be there a message or note for this. Thanks for the link.

Anyway? which is better? Or should i test on my laptop which give better battery life?

I didn’t try auto-cpufreq on my laptop

Okay.
I will check it.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.