Comments (11)
try sudo $(which undervolt) -r
you don't need msr-tools
or modprobe msr
(script will do that for you)
from undervolt.
@coffeecoder Alternatively, you could install it via
sudo pip install undervolt
from undervolt.
Had the same error message as @Ostkreutz .
sudo undervolt --read
gave me the following error:
sudo: undervolt: command not found
moving the executable from home/myname/.local/bin
to /bin
solved the problem. Now I can run undervolt with sudo permissions. I still get the permission error when I run it without root permissions.
Its also possible to add undervolt to the sudoers list (in /etc/
directory). Doing so makes moving redundant.
from undervolt.
@pahennessey find the path to undervolt.py
with which undervolt
and put that path in the service file, don't use which
in the service file.
from undervolt.
I had the same issue.
After disabling secure boot undervolt was working as expected again.
XPS 7590 with i7-9750H (please add to list of working devices ;) ).
But this is already noted in the README file.
from undervolt.
I used synaptic to install msr-tools
I also did: sudo modprobe msr
After that, the message changed to:
Traceback (most recent call last):
File "/home/felipemello/anaconda3/bin/undervolt", line 11, in
sys.exit(main())
File "/home/felipemello/anaconda3/lib/python3.7/site-packages/undervolt.py", line 271, in main
tjunc=read_temperature(),
File "/home/felipemello/anaconda3/lib/python3.7/site-packages/undervolt.py", line 157, in read_temperature
return (read_msr(0x1a2) & (127 << 24)) >> 24
File "/home/felipemello/anaconda3/lib/python3.7/site-packages/undervolt.py", line 54, in read_msr
f = os.open(n, os.O_RDONLY)
PermissionError: [Errno 13] Permission denied: '/dev/cpu/0/msr'
I believe it is because of the Secure Boot. I am thinking about disabling it, but I am not sure if it is unsafe.
However this guy here said that he disabled it and it didn't work:
tiziw, from iuvolt, said here this: "In the notebookreview thread linked in credits someone noted that if Secure Boot is enabled wrmsr does not work as the writes are blocked from userspace.
In order for it to still work you'll have to either recompile the msr module or recompile the whole kernel if the module built into the kernel. You will have to either disable Secure Boot or recompile msr with the the patch mentioned here."
from undervolt.
I already disabled secure boot and the same error occurs
PermissionError: [Errno 13] Permission denied: '/dev/cpu/0/msr'
from undervolt.
one alternative is to use intel-undervolt . I had the same error as well and disabling secure boot could not solve the problem. However, intel-undervolt works without msr permission error. Tested on xps 9570.
from undervolt.
I'm trying to use this workaround with the walkthrough to create a startup service, but I'm getting the following error
` ✘ ~ systemctl status undervolt.service
Warning: The unit file, source configuration file or drop-ins of undervolt.service changed on disk. Run 'systemctl daemo
● undervolt.service - undervolt
Loaded: loaded (/etc/systemd/system/undervolt.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-01-30 19:07:37 CST; 4s ago
Process: 5390 ExecStart=/usr/bin/sudo $(which undervolt) -v --core -150 --cache -150 --gpu -50 (code=exited, status=1/
Main PID: 5390 (code=exited, status=1/FAILURE)
Jan 30 19:07:37 pop-os systemd[1]: Starting undervolt...
Jan 30 19:07:37 pop-os sudo[5390]: sudo: undervolt): command not found
Jan 30 19:07:37 pop-os systemd[1]: undervolt.service: Main process exited, code=exited, status=1/FAILURE
Jan 30 19:07:37 pop-os systemd[1]: undervolt.service: Failed with result 'exit-code'.
Jan 30 19:07:37 pop-os systemd[1]: Failed to start undervolt.
lines 1-12/12 (END)
`
Any suggestions?
from undervolt.
Of course, @georgewhewell , the obvious answer! Thanks!
from undervolt.
I also got this error and I fixed by running it with sudo:
sudo undervolt --read
from undervolt.
Related Issues (20)
- PermissionError: [Errno 13] Permission denied: '/dev/cpu/0/msr' HOT 9
- MSI GS65
- Not working on mint 20 - command not found HOT 4
- Confirmed working on Dell G15 5510 (i5 10200H)
- Macbook air mid 2013 | Failed to apply core HOT 1
- No package metadata was found for undervolt HOT 1
- Turbo boost not working
- Confirmed Lenovo Thinkpad T490, Intel i5-8265U HOT 1
- sudo: undervolt: command not found HOT 4
- Power limit is not permanent HOT 1
- ERROR:root:Failed to apply - undervolt settings on Intel Celeron N5100 and Clear Linux HOT 2
- How do ThrottleStop's FIVR Control names map to those of undervolt? HOT 1
- trying to set cpu and cache to -100, gives ERROR:root:Failed to apply core: set -99.609375, read 0.0 HOT 1
- --turbo is not recognized HOT 2
- FileNotFoundError: [Errno 2] No such file or directory: 'modprobe'
- PermissionError: [Errno 1] Operation not permitted using sudo undervolt HOT 1
- Unable to set different core and cache offset
- ERROR:root:Failed to apply core: set -49.8046875, read 0.0 HOT 2
- Power litmit, what is long,short and time window ?
- Error 203
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from undervolt.