georgewhewell / undervolt

Undervolt Intel CPUs under Linux
Other
1.55k stars 107 forks source link

PermissionError: [Errno 13] Permission denied: '/dev/cpu/0/msr' #161

Closed kachapman closed 3 years ago

kachapman commented 3 years ago

When trying to use the program, I get this output:

USER:~$ undervolt -r Traceback (most recent call last): File "/home/kenchapman/.local/bin/undervolt", line 8, in sys.exit(main()) File "/home/kenchapman/.local/lib/python3.9/site-packages/undervolt.py", line 439, in main temp = read_temperature(msr) File "/home/kenchapman/.local/lib/python3.9/site-packages/undervolt.py", line 191, in read_temperature return (read_msr(msr.addr_temp) & (127 << 24)) >> 24 File "/home/kenchapman/.local/lib/python3.9/site-packages/undervolt.py", line 88, in read_msr f = os.open(n, os.O_RDONLY) PermissionError: [Errno 13] Permission denied: '/dev/cpu/0/msr'

georgewhewell commented 3 years ago

use sudo

kachapman commented 3 years ago

I forgot to mention that Sudo doesn't fix the issue.

-------- Original Message -------- On Sep 18, 2021, 1:47 AM, georgewhewell wrote:

use sudo

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

kachapman commented 3 years ago
ken-sb2:~$ undervolt -r
You need to have root privileges to run this script with these options.
Rerun with 'sudo'.
ken-sb2:~$ sudo undervolt -r
sudo: undervolt: command not found
kachapman commented 3 years ago

Looks like the issue was secure boot all along. Is there no way to enable this with secure boot enabled?