1 (edited by auanta 2022-08-27 19:31:45)

Topic: [solved] cpu-autofreq --install fails

Under my system
5.10.106-gnu1-1-lts

auto-cpufreq fails to initialize after installed from pacman:

I can't make heads or tails of this error..

$ doas auto-cpufreq --install

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

* Turn off bluetooth on boot [skipping] (package providing bluetooth access is not present)

* Deploy auto-cpufreq install script
Traceback (most recent call last):
  File "/usr/bin/auto-cpufreq", line 207, in <module>
    main()
  File "/usr/lib/python3.8/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/usr/bin/auto-cpufreq", line 184, in main
    deploy_daemon()
  File "/usr/lib/python3.8/site-packages/auto_cpufreq/core.py", line 353, in deploy_daemon
    shutil.copy(SCRIPTS_DIR / "auto-cpufreq-install.sh", "/usr/bin/auto-cpufreq-install")
  File "/usr/lib/python3.8/shutil.py", line 415, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.8/shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/auto-cpufreq/scripts/auto-cpufreq-install.sh'

2

Re: [solved] cpu-autofreq --install fails

The package already includes needed scripts, so there is no need to install it as daemon directly. Please look into the sources here: https://git.hyperbola.info:50100/packag … to-cpufreq

So when you install the package, you just can use it right from the start. But you are right: The package needs a patch to remove the installation-routine.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

3 (edited by auanta 2022-08-27 19:31:04)

Re: [solved] cpu-autofreq --install fails

Oh that's great! I've now with full confidence run $ doas rc-update add auto-cpufreq *thumbs up*

...and after a reboot, I'm running the daemon! w00t