undervolt
undervolt copied to clipboard
PermissionError: [Errno 13] Permission denied: '/dev/cpu/0/msr'
I installed undervolt and the command "undervolt" worked fine, when I tried "undervolt --r" I received that output on the terminal:
Traceback (most recent call last):
File "/home/german/.local/bin/undervolt", line 8, in
I have secure boot disabled.
you need to run as su- sudo undervolt -r
I tried but I receive that output:
sudo: undervolt: command not found
you can try sudo -E undervolt
or sudo $(which undervolt)
With the first command I get that output:
sudo: undervolt: command not found
With the second:
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user]
[command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p
prompt] [-T timeout] [-u user] [VAR=value] [-i|-s] [
the output of the second command implies undervolt is not on your PATH
.. weird.. anyway, it says in your first comment the script is at /home/german/.local/lib/python3.8/site-packages/undervolt.py
, so just sudo python /home/german/.local/lib/python3.8/site-packages/undervolt.py
should work
I tried that, I also verified the directory appears in the PATH:
When I run echo $PATH
~/.local/lib/python3.8/site-packages:/home/german/.local/bin:/home/german/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
When I run sudo python /home/german/.local/lib/python3.8/site-packages/undervolt.py
:
sudo: python: command not found
EDIT: I'm using a Lenovo Legion Y540-15IRH (RTX2060 I7-9750H), I share it in case you find it useful.
When I run
sudo python /home/german/.local/lib/python3.8/site-packages/undervolt.py
:sudo: python: command not found
Can you try using python3?
sudo python3 /home/german/.local/lib/python3.8/site-packages/undervolt.py
A (generally inadvisable) alternative would be to install undervolt with sudo, i.e. sudo pip3 install undervolt
.
Same issue here
fsamur@asus-gl552vw:~$ sudo $(which undervolt)
Traceback (most recent call last): File "/home/fsamur/.local/bin/undervolt", line 5, in <module> from undervolt import main ModuleNotFoundError: No module named 'undervolt'