-
-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo python3 auto-cpufreq.py --install cant copy file to path "/usr/lib/systemd/system/" #12
Comments
This issue can be fixed through copying the .service file to /lib/systemd/system instead of /usr/lib/systemd/system
|
I also believe this issue has been fixed in one of the latest commits, could you please try pulling latest changes and inform me if this is the case? Thanks |
nope still trying put file auto-cpufreq.service to /usr/lib/systemd/system/ |
I`m also experiencing this issue and pulled less than 15m ago. |
Applied this, so $ auto-cpufreq --log
Traceback (most recent call last):
File "/usr/bin/auto-cpufreq", line 382, in <module>
@click.option("--daemon", is_flag=True, hidden=True)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 170, in decorator
_param_memo(f, OptionClass(param_decls, **attrs))
File "/usr/lib/python3/dist-packages/click/core.py", line 1460, in __init__
Parameter.__init__(self, param_decls, type=type, **attrs)
TypeError: __init__() got an unexpected keyword argument 'hidden' $ sudo systemctl status auto-cpufreq.service
● auto-cpufreq.service - auto-cpufreq - Automatic CPU speed & power optimizer for Linux
Loaded: loaded (/lib/systemd/system/auto-cpufreq.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-01-07 12:48:03 CET; 10s ago
Process: 25814 ExecStart=/usr/bin/python3 /usr/bin/auto-cpufreq --daemon (code=exited, status=1/FAILURE)
Main PID: 25814 (code=exited, status=1/FAILURE)
Jan 07 12:48:03 pop-os systemd[1]: Started auto-cpufreq - Automatic CPU speed & power optimizer for Linux.
Jan 07 12:48:03 pop-os systemd[1]: auto-cpufreq.service: Main process exited, code=exited, status=1/FAILURE
Jan 07 12:48:03 pop-os systemd[1]: auto-cpufreq.service: Failed with result 'exit-code'. |
See the fix at #4, it is also in the readme now |
Does this path vary from distro to distro? |
@juliangaal yes. Problem was that change was made that only makes systemd file work on RedHat based distros. @everyone, if you have daemon installed, could you please run:
In last commit I made a change which should unify sytemd service across all distributions. Please let me know if it works for you so I can close this issue, thanks. |
@AdnanHodzic well now install works correctly, but systemd unit in Failed status: |
That's weird, you ran |
yes |
Maybe you have leftover files somewhere, could you do:
|
same...unit in failed status |
This is what my output looks like, which is identical to yours, except your fails. What are the contents of your: |
|
Compared to contents of mine it also looks identical. If you run it in |
Works fine
rebooted, same issue here unit in failed status. btw with
|
Okay, your problem has nothing to do with systemd, your problem is old version of click package, which can be fixed by running: I updated the ReadMe with this information today. |
@AdnanHodzic well thx for your help issue was in not correct rights on home directory |
@AdnanHodzic can confirm
is not necessary anymore! Installation works (Ubuntu 18.04) flawlessly now, Thanks for the fix! |
@juliangaal most welcome :) |
When i trying to install daemon:
sudo python3 auto-cpufreq.py --install
there no path "/usr/lib/systemd/system/" on Ubuntu 18.04
The text was updated successfully, but these errors were encountered: