GithubHelp home page GithubHelp logo

Comments (9)

Xentradi avatar Xentradi commented on May 30, 2024 3

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

georgewhewell avatar georgewhewell commented on May 30, 2024

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.

dejIO avatar dejIO commented on May 30, 2024

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.

Xentradi avatar Xentradi commented on May 30, 2024

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.

georgewhewell avatar georgewhewell commented on May 30, 2024

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

georgewhewell avatar georgewhewell commented on May 30, 2024

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.

Xentradi avatar Xentradi commented on May 30, 2024

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.

Oliph avatar Oliph commented on May 30, 2024

[deleted] -- No working as expected

from undervolt.

Xentradi avatar Xentradi commented on May 30, 2024

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

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.