Open shrx opened 2 years ago
Running the script locally works fine:
sudo ./throttled.py
[I] Detected CPU architecture: Intel Kabylake
[I] Trying to unlock MSR allow_writes.
[I] Testing if undervolt is supported...
[I] Testing if HWP is supported...
[I] Loading config file.
[I] Starting main loop.
I get the same error message.
are you sure you don't have any debug mode stuff enabled? in some modes throttled will produce output that could be interpreted as an error code and could perhaps cause systemd to assume it failed and end it.
I think I figured out this issue. For some reason the requirements (or dbus specifically as indicated by the errors returned at systemctl) aren't being installed in the venv located by default in /opt/throttled/venv.
To solve this in bash:
$ sudo su -
change to root
# cd /opt/throttled/
move to the default location for throttled
# source ./venv/bin/activate
activate venv for throttled
# python3 -m pip install -r requirements.txt
install requirements
# exit
get out of root, can use sudo for the rest
restart service and check for errors
$ sudo systemctl stop throttled.service
$ sudo systemctl start throttled.service
$ sudo systemctl status throttled.service
https://github.com/erpalma/throttled/commit/47b8e1347788db7176e76c0edb1239285be51bea
Installation process goes fine and does not report any issues:
But systemd reports that service failed to start: