Auto-cpufreq not active after every reboot in fedora 35

after each reboot i had to manually install auto cpufreq …
what should i do?

i just clean installed fedora 35

It is a GitHub project which provides best battery life in any Linux… You can google it… it is not provided by default Fedora or it is no Fedora package… it worked fine in Fedora 34 but not in Fedora 35 …

Hello, welcome to the forum. Please read the introductory posts in the #start-here category if you haven’t had a chance yet.

What is auto-cpufreq? I couldn’t find this in the repos:

$ sudo dnf whatprovides '*/auto-cpufreq'
Last metadata expiration check: 1:43:11 ago on Wed 03 Nov 2021 15:31:22 GMT.
Error: No Matches found

Can you please edit your post to provide a link? (It’s best to provide all the information there so that others that are trying to help you don’t have to do the extra work—asking them to google stuff for you is bad practice :))

I am not sure why you feel a 3rd party app like that is needed. On my laptop (and desktop) the cpu freq is managed by the system/OS as needed depending upon system load.

Maybe you should actually see if it is needed before adding something you need to manually configure each time you boot.

its a small package/tool to improve battery life in laptops, it basically scale cpu freq based on the load on the system, usually when you will be on battery it will be scale down to lowest possible freq to save battery life…

it comes with a systemd config to basicallly auto start the service on boot, i upgraded to fedora 35 today and regretting it, i also have similar issue…

Since this is not in Fedora, there’s no maintainer in the community looking at this software and whether it works with Fedora.

So, has anyone filed a bug with the developers?

looked over logs and there seems to be some error, created an issue over github… will update the post if there are some fix

 Nov 10 18:25:02 fedora systemd[1]: Started auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
Nov 10 18:25:03 fedora python3[6051]: detected unhandled Python exception in '/usr/local/bin/auto-cpufreq'
Nov 10 18:25:03 fedora auto-cpufreq[6051]: Traceback (most recent call last):
Nov 10 18:25:03 fedora auto-cpufreq[6051]:   File "/usr/local/bin/auto-cpufreq", line 4, in <module>
Nov 10 18:25:03 fedora auto-cpufreq[6051]:     __import__('pkg_resources').run_script('auto-cpufreq==1.0', 'auto-cpufreq')
Nov 10 18:25:03 fedora auto-cpufreq[6051]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3243, in <module>
Nov 10 18:25:03 fedora auto-cpufreq[6051]:     def _initialize_master_working_set():
Nov 10 18:25:03 fedora auto-cpufreq[6051]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
Nov 10 18:25:03 fedora auto-cpufreq[6051]:     f(*args, **kwargs)
Nov 10 18:25:03 fedora auto-cpufreq[6051]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
Nov 10 18:25:03 fedora auto-cpufreq[6051]:     working_set = WorkingSet._build_master()
Nov 10 18:25:03 fedora auto-cpufreq[6051]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 568, in _build_master
Nov 10 18:25:03 fedora auto-cpufreq[6051]:     ws.require(__requires__)
Nov 10 18:25:03 fedora auto-cpufreq[6051]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 886, in require
Nov 10 18:25:03 fedora auto-cpufreq[6051]:     needed = self.resolve(parse_requirements(requirements))
Nov 10 18:25:03 fedora auto-cpufreq[6051]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 772, in resolve
Nov 10 18:25:03 fedora auto-cpufreq[6051]:     raise DistributionNotFound(req, requirers)
Nov 10 18:25:03 fedora auto-cpufreq[6051]: pkg_resources.DistributionNotFound: The 'auto-cpufreq==1.0' distribution was not found and is required by the application
Nov 10 18:25:03 fedora systemd[1]: auto-cpufreq.service: Main process exited, code=exited, status=1/FAILURE
Nov 10 18:25:03 fedora systemd[1]: auto-cpufreq.service: Failed with result 'exit-code'.
Nov 10 18:53:56 fedora systemd[1]: Started auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
Nov 10 18:53:56 fedora python3[8948]: detected unhandled Python exception in '/usr/local/bin/auto-cpufreq'
Nov 10 18:53:56 fedora auto-cpufreq[8948]: Traceback (most recent call last):
Nov 10 18:53:56 fedora auto-cpufreq[8948]:   File "/usr/local/bin/auto-cpufreq", line 4, in <module>
Nov 10 18:53:56 fedora auto-cpufreq[8948]:     __import__('pkg_resources').run_script('auto-cpufreq==1.0', 'auto-cpufreq')
Nov 10 18:53:56 fedora auto-cpufreq[8948]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3243, in <module>
Nov 10 18:53:56 fedora auto-cpufreq[8948]:     def _initialize_master_working_set():
Nov 10 18:53:56 fedora auto-cpufreq[8948]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
Nov 10 18:53:56 fedora auto-cpufreq[8948]:     f(*args, **kwargs)
Nov 10 18:53:56 fedora auto-cpufreq[8948]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
Nov 10 18:53:56 fedora auto-cpufreq[8948]:     working_set = WorkingSet._build_master()
Nov 10 18:53:56 fedora auto-cpufreq[8948]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 568, in _build_master
Nov 10 18:53:56 fedora auto-cpufreq[8948]:     ws.require(__requires__)
Nov 10 18:53:56 fedora auto-cpufreq[8948]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 886, in require
Nov 10 18:53:56 fedora auto-cpufreq[8948]:     needed = self.resolve(parse_requirements(requirements))
Nov 10 18:53:56 fedora auto-cpufreq[8948]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 772, in resolve
Nov 10 18:53:56 fedora auto-cpufreq[8948]:     raise DistributionNotFound(req, requirers)
Nov 10 18:53:56 fedora auto-cpufreq[8948]: pkg_resources.DistributionNotFound: The 'auto-cpufreq==1.0' distribution was not found and is required by the application
Nov 10 18:53:56 fedora systemd[1]: auto-cpufreq.service: Main process exited, code=exited, status=1/FAILURE
Nov 10 18:53:56 fedora systemd[1]: auto-cpufreq.service: Failed with result 'exit-code'.
Nov 10 18:54:21 fedora systemd[1]: Started auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
Nov 10 18:54:22 fedora python3[8987]: detected unhandled Python exception in '/usr/local/bin/auto-cpufreq'
Nov 10 18:54:22 fedora auto-cpufreq[8987]: Traceback (most recent call last):
Nov 10 18:54:22 fedora auto-cpufreq[8987]:   File "/usr/local/bin/auto-cpufreq", line 4, in <module>
Nov 10 18:54:22 fedora auto-cpufreq[8987]:     __import__('pkg_resources').run_script('auto-cpufreq==1.0', 'auto-cpufreq')
Nov 10 18:54:22 fedora auto-cpufreq[8987]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3243, in <module>
Nov 10 18:54:22 fedora auto-cpufreq[8987]:     def _initialize_master_working_set():
Nov 10 18:54:22 fedora auto-cpufreq[8987]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
Nov 10 18:54:22 fedora auto-cpufreq[8987]:     f(*args, **kwargs)
Nov 10 18:54:22 fedora auto-cpufreq[8987]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
Nov 10 18:54:22 fedora auto-cpufreq[8987]:     working_set = WorkingSet._build_master()
Nov 10 18:54:22 fedora auto-cpufreq[8987]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 568, in _build_master
Nov 10 18:54:22 fedora auto-cpufreq[8987]:     ws.require(__requires__)
Nov 10 18:54:22 fedora auto-cpufreq[8987]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 886, in require
Nov 10 18:54:22 fedora auto-cpufreq[8987]:     needed = self.resolve(parse_requirements(requirements))
Nov 10 18:54:22 fedora auto-cpufreq[8987]:   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 772, in resolve
Nov 10 18:54:22 fedora auto-cpufreq[8987]:     raise DistributionNotFound(req, requirers)
Nov 10 18:54:22 fedora auto-cpufreq[8987]: pkg_resources.DistributionNotFound: The 'auto-cpufreq==1.0' distribution was not found and is required by the application
Nov 10 18:54:22 fedora systemd[1]: auto-cpufreq.service: Main process exited, code=exited, status=1/FAILURE
Nov 10 18:54:22 fedora systemd[1]: auto-cpufreq.service: Failed with result 'exit-code'.
Nov 10 18:57:57 fedora systemd[1]: Started auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
Nov 10 19:21:18 fedora systemd[1]: Stopping auto-cpufreq - Automatic CPU speed & power optimizer for Linux...
Nov 10 19:21:19 fedora systemd[1]: auto-cpufreq.service: Deactivated successfully.
Nov 10 19:21:19 fedora systemd[1]: Stopped auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
Nov 10 19:21:19 fedora systemd[1]: auto-cpufreq.service: Consumed 10.460s CPU time.




1 Like

Here is an update regarding the solution…

First is to basically reinstall and make sure all the dependecies are installed as welll…

There is another issue and that is service being killed by gnome Power Profile daemon in that case stop the autocpufreq service. and disable the power Profile daemon

stopping & masking the gnome power profile daemon should fix your problem.

systemctl stop power-profiles-daemon

Followed by

systemctl mask power-profiles-daemon

Then either reboot or start auto-cpufreq

systemctl start auto-cpufreq