GithubHelp home page GithubHelp logo

Comments (11)

georgewhewell avatar georgewhewell commented on May 30, 2024 12

try sudo $(which undervolt) -r

you don't need msr-tools or modprobe msr (script will do that for you)

from undervolt.

NicolasNewman avatar NicolasNewman commented on May 30, 2024 10

@coffeecoder Alternatively, you could install it via
sudo pip install undervolt

from undervolt.

eugenkaltenegger avatar eugenkaltenegger commented on May 30, 2024 6

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.

georgewhewell avatar georgewhewell commented on May 30, 2024 1

@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.

dashart-ke avatar dashart-ke commented on May 30, 2024 1

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.

felipemello1 avatar felipemello1 commented on May 30, 2024

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.

Hedronmx avatar Hedronmx commented on May 30, 2024

I already disabled secure boot and the same error occurs
PermissionError: [Errno 13] Permission denied: '/dev/cpu/0/msr'

from undervolt.

Alecppt avatar Alecppt commented on May 30, 2024

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.

pahenn avatar pahenn commented on May 30, 2024

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.

pahenn avatar pahenn commented on May 30, 2024

Of course, @georgewhewell , the obvious answer! Thanks!

from undervolt.

sjpatel21 avatar sjpatel21 commented on May 30, 2024

I also got this error and I fixed by running it with sudo:
sudo undervolt --read

from undervolt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.