I recently installed auto_cpufreq from garuda assistant and enabled it (from assistant). However, the program seems to keep terminating itself. I tried deactivating and re enabling the service from systemctl thinking that was the issue but that doesn't seem to be it, as the program still quits itself whenever I log out, or after a fix time (around 24hrs approx.) Here is the systemctl status of the daemon:
○ auto-cpufreq.service - auto-cpufreq - Automatic CPU speed & power optimizer for Linux
Loaded: loaded (/usr/lib/systemd/system/auto-cpufreq.service; enabled; preset: disabled)
Active: inactive (dead) since Sun 2022-12-18 10:43:57 IST; 15min ago
Duration: 19h 35min 53.547s
Process: 68129 ExecStart=/usr/bin/auto-cpufreq --daemon (code=killed, signal=TERM)
Main PID: 68129 (code=killed, signal=TERM)
CPU: 14min 45.605s
Dec 17 15:08:04 siddharth systemd[1]: Started auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
Dec 18 10:43:57 siddharth systemd[1]: Stopping auto-cpufreq - Automatic CPU speed & power optimizer for Linux>
Dec 18 10:43:57 siddharth systemd[1]: auto-cpufreq.service: Deactivated successfully.
Dec 18 10:43:57 siddharth systemd[1]: Stopped auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
Dec 18 10:43:57 siddharth systemd[1]: auto-cpufreq.service: Consumed 14min 45.605s CPU time.
I have attached my garuda assistant's setting page's screenshot as well incase some config here is messing with it:
I did as you said however apart from the other services that started normally the auto-cpufreq.service stayed inactive despite being enabled.
systemctl status auto-cpufreq.service
○ auto-cpufreq.service - auto-cpufreq - Automatic CPU speed & power optimizer for Linux
Loaded: loaded (/usr/lib/systemd/system/auto-cpufreq.service; enabled; preset: disabled)
Active: inactive (dead)
Actually we have 1.9.7-1 in chaotic aur as well. I tried reinstalling the software but same problem the service didn't restart after reboot.
pacman -Si auto-cpufreq
Repository : chaotic-aur
Name : auto-cpufreq
Version : 1.9.7-1
Description : Automatic CPU speed & power optimizer
Architecture : any
URL : https://github.com/AdnanHodzic/auto-cpufreq
Licenses : LGPL3
Groups : None
Provides : None
Depends On : python-distro python-psutil python-click dmidecode
Optional Deps : cpufreqctl: CPU Power Manager
gnome-shell-extension-cpufreq: CPU Power Manager for GNOME Shell
thermald: recommended to have running alongside by upstream
Conflicts With : None
Replaces : None
Download Size : 44.73 KiB
Installed Size : 185.82 KiB
Packager : Nico Jensch <[email protected]>
Build Date : Monday 05 December 2022 02:39:37 PM
Validated By : MD5 Sum SHA-256 Sum Signature
But I think I found the problem:
When I restarted auto-cpufreq.service power-profiles-daemon.service gets deactivated and vice versa. activating power-profiles-daemon makes auto-cpufreq terminate.
systemctl status power-profiles-daemon.service
● power-profiles-daemon.service - Power Profiles daemon
Loaded: loaded (/usr/lib/systemd/system/power-profiles-daemon.service; enabled; preset: disabled)
Active: active (running) since Sun 2022-12-18 14:33:02 IST; 46s ago
Main PID: 4438 (power-profiles-)
Tasks: 3 (limit: 18724)
Memory: 3.4M
CPU: 64ms
CGroup: /system.slice/power-profiles-daemon.service
└─4438 /usr/lib/power-profiles-daemon
Dec 18 14:33:02 siddharth systemd[1]: Starting Power Profiles daemon...
Dec 18 14:33:02 siddharth systemd[1]: Started Power Profiles daemon.
╭─siddharth@siddharth in ~ took 15ms
84%
╰─λ systemctl restart auto-cpufreq.service
╭─siddharth@siddharth in ~ took 6s
85%
╰─λ systemctl status auto-cpufreq.service
● auto-cpufreq.service - auto-cpufreq - Automatic CPU speed & power optimizer for Linux
Loaded: loaded (/usr/lib/systemd/system/auto-cpufreq.service; enabled; preset: disabled)
Active: active (running) since Sun 2022-12-18 14:34:14 IST; 14s ago
Main PID: 4648 (auto-cpufreq)
Tasks: 1 (limit: 18724)
Memory: 18.0M
CPU: 869ms
CGroup: /system.slice/auto-cpufreq.service
└─4648 /usr/bin/python /usr/bin/auto-cpufreq --daemon
Dec 18 14:34:14 siddharth systemd[1]: Started auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
╭─siddharth@siddharth in ~ took 15ms
85%
╰─λ systemctl status power-profiles-daemon.service
○ power-profiles-daemon.service - Power Profiles daemon
Loaded: loaded (/usr/lib/systemd/system/power-profiles-daemon.service; enabled; preset: disabled)
Active: inactive (dead) since Sun 2022-12-18 14:34:14 IST; 19s ago
Duration: 1min 12.666s
Process: 4438 ExecStart=/usr/lib/power-profiles-daemon (code=killed, signal=TERM)
Main PID: 4438 (code=killed, signal=TERM)
CPU: 66ms
Dec 18 14:33:02 siddharth systemd[1]: Starting Power Profiles daemon...
Dec 18 14:33:02 siddharth systemd[1]: Started Power Profiles daemon.
Dec 18 14:34:14 siddharth systemd[1]: Stopping Power Profiles daemon...
Dec 18 14:34:14 siddharth systemd[1]: power-profiles-daemon.service: Deactivated successfully.
Dec 18 14:34:14 siddharth systemd[1]: Stopped Power Profiles daemon.
Yes, that's the intended behaviour, to use one of the two. That's why I suggested to remove the other flags.
Considering the open issues, if auto-cpufreq still has problems after disabling power-profiles daemon, I'd keep the latter for a while.
Hmm, I am assuming that by removing the flag you mean the unticking the checkbox next to it in garuda assistant right? I tried doing that to power-profiles-daemon.service but after reboot it still started running despite being disabled and I suppose because of that auto-cpufreq terminated.
Unchecking the other checkboxes uninstalls those services and their dependencies. Since there was no enable/disable checkbox for Powersave tweaks I had to click the only available option which uninstalled it. But the auto-cpufreq is still terminated.
systemctl status auto-cpufreq
○ auto-cpufreq.service - auto-cpufreq - Automatic CPU speed & power optimizer for Linux
Loaded: loaded (/usr/lib/systemd/system/auto-cpufreq.service; enabled; preset: disabled)
Active: inactive (dead) since Sun 2022-12-18 15:13:21 IST; 14s ago
Duration: 11.828s
Process: 729 ExecStart=/usr/bin/auto-cpufreq --daemon (code=killed, signal=TERM)
Main PID: 729 (code=killed, signal=TERM)
CPU: 430ms
Dec 18 15:13:10 siddharth systemd[1]: Started auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
Dec 18 15:13:21 siddharth systemd[1]: Stopping auto-cpufreq - Automatic CPU speed & power optimizer for Linux>
Dec 18 15:13:21 siddharth systemd[1]: auto-cpufreq.service: Deactivated successfully.
Dec 18 15:13:21 siddharth systemd[1]: Stopped auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
╭─siddharth@siddharth in ~ took 4s
100%
[🔴] × systemctl status power-profiles-daemon.service
● power-profiles-daemon.service - Power Profiles daemon
Loaded: loaded (/usr/lib/systemd/system/power-profiles-daemon.service; disabled; preset: disabled)
Active: active (running) since Sun 2022-12-18 15:13:21 IST; 26s ago
Main PID: 2074 (power-profiles-)
Tasks: 3 (limit: 18724)
Memory: 3.5M
CPU: 35ms
CGroup: /system.slice/power-profiles-daemon.service
└─2074 /usr/lib/power-profiles-daemon
Dec 18 15:13:21 siddharth systemd[1]: Starting Power Profiles daemon...
Dec 18 15:13:21 siddharth systemd[1]: Started Power Profiles daemon.
looking at the github issues page upstream this is an open issue from two weeks ago. So I guess this isn't something that disabling a particular service would help with.
I guess I will go with second option of keeping power-profiles-daemon for a while.
BTW, is there any way I can install version 1.9.6 i.e, older version of this software from pacman??