throttled: I/O Error: fatal('Unable to read to MSR {:x}. Unknown error.'.format(msr))
Hi, the issue you fixed on https://github.com/erpalma/throttled/issues/236 is still going by my side
Kernel 5.10, arch linux, HP Pavilion Power CB035NF, lsm lockdown removed…
I commented the HWP_Mode
line in the config but it change nothing
rdmsr -a 0x774 rdmsr: CPU 0 cannot read MSR 0x00000774
Same on systemctl status
[drumslayer@DrumSlayer-LaptopHP-Manjaro throttled]$ sudo systemctl status lenovo_fix
● lenovo_fix.service - Stop Intel throttling
Loaded: loaded (/etc/systemd/system/lenovo_fix.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2021-05-08 00:43:06 CEST; 3s ago
Process: 28986 ExecStart=/opt/lenovo_fix/venv/bin/python3 /opt/lenovo_fix/lenovo_fix.py (code=exited, status=1/FAILURE)
Main PID: 28986 (code=exited, status=1/FAILURE)
mai 08 00:43:06 DrumSlayer-LaptopHP-Manjaro python3[28986]: main()
mai 08 00:43:06 DrumSlayer-LaptopHP-Manjaro python3[28986]: File "/opt/lenovo_fix/lenovo_fix.py", line 933, in main
mai 08 00:43:06 DrumSlayer-LaptopHP-Manjaro python3[28986]: set_hwp(config.getboolean('AC', 'HWP_Mode', fallback=False))
mai 08 00:43:06 DrumSlayer-LaptopHP-Manjaro python3[28986]: File "/opt/lenovo_fix/lenovo_fix.py", line 630, in set_hwp
mai 08 00:43:06 DrumSlayer-LaptopHP-Manjaro python3[28986]: cur_val = readmsr('IA32_HWP_REQUEST', cpu=0)
mai 08 00:43:06 DrumSlayer-LaptopHP-Manjaro python3[28986]: File "/opt/lenovo_fix/lenovo_fix.py", line 263, in readmsr
mai 08 00:43:06 DrumSlayer-LaptopHP-Manjaro python3[28986]: fatal('Unable to read to MSR {:x}. Unknown error.'.format(msr))
mai 08 00:43:06 DrumSlayer-LaptopHP-Manjaro python3[28986]: ValueError: Unknown format code 'x' for object of type 'str'
mai 08 00:43:06 DrumSlayer-LaptopHP-Manjaro systemd[1]: lenovo_fix.service: Main process exited, code=exited, status=1/FAILURE
mai 08 00:43:06 DrumSlayer-LaptopHP-Manjaro systemd[1]: lenovo_fix.service: Failed with result 'exit-code'.
I have the latest version of lenovo_fix, and the HWP_Mode is commented in config (/etc/lenovo_fix.cfg)
What can i do ? Thanks
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 16 (7 by maintainers)
I forgot to update the calls to
fatal
inwritemsr
andreadmsr
functions. Now it should be fixed.