Comments (9)
@georgewhewell I noticed that after my comment. And have been working on a systemd based solution building upon what @dejIO used.
https://gitlab.com/xentradi/undervoltWatcher
edit: github mirror: https://github.com/Xentradi/undervoltWatcher
Combines a systemctl service with a watch script.
Service ensures the watcher is always running even if killed unless the service is stopped.
Watcher checks (every 5 seconds) to see if the core offset values are 0.0 if they are it applies the offsets.
Of course this only works if you're changing your core offset but it can be changes pretty easily.
Also thank you for providing undervolt. It's by far the simplest solution for under-volting!
from undervolt.
There is no way to make the change permanent in the sense of not having to run some utility- it will always be reset on reboot, suspend etc. There are some suggestions in #10 for re-applying changes automatically, or you can just run the command in a loop:
watch -n 1 "undervolt --gpu -100"
from undervolt.
This is what I did. I think it's working.
Note: For the compatibility list, I'm using a T460p with i5-6440HQ.
/etc/systemd/system/undervolt.service
[Unit]
Description=undervolt
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/bin/sudo undervolt -v --core -150 --cache -150 --gpu -100
[Install]
WantedBy=multi-user.target
from undervolt.
Forgive me if this is the wrong way to go about it but couldn't it run with a cronjob in crontab -e
?
@reboot /path/to/undervolt.py -options
If this is incorrect what would then be the most effective way?
from undervolt.
@Xentradi This should work for applying undervolt after boot, but I think you will find after suspend/resume the settings need to be re-applied, and cron will not do this.
from undervolt.
Cool! Is there any reason you don't just apply the offset on every invocation? 'Reading' still involves writing to the register and reading back result, so the only difference is whether the 'read' bit is set.
from undervolt.
Mostly for convenience, The values I have set are what I know are stable right now. I like to try different offsets to see what sort of results I can get. If it was setting at every invocation my tests would last all of 5 seconds; this way it will go till either I change it or the system sleeps/reboots.
from undervolt.
[deleted] -- No working as expected
from undervolt.
@Oliph your offsets will reset on boot, and on wake from sleep/hibernation. I use a laptop so my offsets were getting reset when ever the lid was closed. The watcher corrects this while allowing me to still tweak the offsets when I want and I can reset them to something I know works as simply as closing the lid. I use that mostly because my schedule is unpredictable so I'm not always able to sit and test
from undervolt.
Related Issues (20)
- Works on Acer Aspire 5 A515-51G-5072
- Does not work with thinkpad x1/p1 gen4 HOT 4
- Cannot use 'undervolt' after upgrading to Fedora 35 HOT 1
- Does this work with KVM/QEMU? HOT 2
- Undervolt service failed HOT 2
- 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'
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.