undervolt icon indicating copy to clipboard operation
undervolt copied to clipboard

PermissionError: [Errno 1] Operation not permitted when sudo undervolt --read

Open danielelongo14 opened this issue 1 year ago • 4 comments

Hello, i got this error with Ubuntu 22.03 when executing the command: temperature target: -5 (95C) Traceback (most recent call last): File "/usr/local/bin/undervolt", line 8, in sys.exit(main()) File "/usr/local/lib/python3.10/dist-packages/undervolt.py", line 457, in main voltage = read_offset(plane, msr) File "/usr/local/lib/python3.10/dist-packages/undervolt.py", line 209, in read_offset write_msr(value_to_write, msr.addr_voltage_offsets) File "/usr/local/lib/python3.10/dist-packages/undervolt.py", line 82, in write_msr os.write(f, pack('Q', val)) PermissionError: [Errno 1] Operation not permitted

danielelongo14 avatar Aug 05 '24 08:08 danielelongo14

did you find a fix for this issue?

p0ll3 avatar Sep 10 '24 20:09 p0ll3

No I'm not using Ubuntu anymore at the moment

danielelongo14 avatar Sep 10 '24 22:09 danielelongo14

This most likely comes from the Lockdown LSM, which prevents direct access on MSRs from userspace. Lockdown is automatically enabled with secure boot, which in turn is enabled by default on Ubuntu.

JosefSchoenberger avatar Jan 05 '25 13:01 JosefSchoenberger

I managed to do that using this sudo pipx run undervolt --read

SeniorMatt avatar Nov 17 '25 15:11 SeniorMatt