The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Linux undervolting GUI

    Discussion in 'Linux Compatibility and Software' started by Sphynxinator, Feb 5, 2019.

  1. Sphynxinator

    Sphynxinator Newbie

    Reputations:
    17
    Messages:
    5
    Likes Received:
    17
    Trophy Points:
    6
    Hi everyone,

    I was looking into undervolting in Linux, and could only find command line tools, which can be quite tedious when testing, so I've been making an electron app to handle this for me:

    [​IMG] [​IMG]


    If anyone is interested in this I'm happy to package it up and share it on my github.

    Release builds here: https://github.com/lukechadwick/linux-intel-undervolt-gui/releases

    TODO:
    -- Add benchmark/stress test
    -- Add hardware info to read out temps/usage/voltages etc
    --Maybe an auto undervolt script to find the lowest stable voltage
     
    Last edited: Mar 1, 2019
  2. Vasudev

    Vasudev Notebook Nobel Laureate

    Reputations:
    12,045
    Messages:
    11,278
    Likes Received:
    8,815
    Trophy Points:
    931
    Can I install it using pip3 because I installed George's python script system-wide.
     
    Sphynxinator likes this.
  3. Sphynxinator

    Sphynxinator Newbie

    Reputations:
    17
    Messages:
    5
    Likes Received:
    17
    Trophy Points:
    6
    Not currently, that's a great idea though, I will add in a check to see if the script is installed globally.

    Update: Okay I uploaded 1.0.1 which should detect that you have it installed.
     
    Last edited: Feb 6, 2019
    Vasudev likes this.
  4. Kuro Kensei

    Kuro Kensei Notebook Consultant

    Reputations:
    115
    Messages:
    168
    Likes Received:
    231
    Trophy Points:
    56
    This is amazing! But is it possible... crossing fingers and toes... to add support for AMD Ryzen to the mix?? This would make so many people happy, I can't begin to tell you. There's a Discord server - Ryzen Shine with 150+ members already, desperately looking into this. We have full control of TDP, current and threshold temps, but the one missing aspect is voltage - still holding us back...
     
  5. Sphynxinator

    Sphynxinator Newbie

    Reputations:
    17
    Messages:
    5
    Likes Received:
    17
    Trophy Points:
    6
    Not yet sorry, the part that talks to the hardware is written by someone else as a a command line utility, which this sits on top of to provide a GUI. If someone figures it out I'll be happy to add it in.
     
    jclausius and Vasudev like this.
  6. Vasudev

    Vasudev Notebook Nobel Laureate

    Reputations:
    12,045
    Messages:
    11,278
    Likes Received:
    8,815
    Trophy Points:
    931
    Tested and working fine. Only issue is setting via GUI gives a different offset when undervolt script is read as root.
    Working fine if undervolt values are passed via terminal or put to run at startup.
    Screenshot_2019-02-08_22-28-47.png
    Setting via GUI and reading back set voltages through terminal sometimes gives a different offset at decimal points. Other than that there's no issue. You can use the offset calculation formulae in python script as reference. Good job and your SW is featured at Phoronix!
    s2.png
     
  7. Sphynxinator

    Sphynxinator Newbie

    Reputations:
    17
    Messages:
    5
    Likes Received:
    17
    Trophy Points:
    6
    Oh wow phoronix haha, that's cool. I think I know what the problem is with reading the wrong value, easy to fix, cheers!
     
    Vasudev likes this.
  8. Vasudev

    Vasudev Notebook Nobel Laureate

    Reputations:
    12,045
    Messages:
    11,278
    Likes Received:
    8,815
    Trophy Points:
    931
    A little UI change will be needed for undervolting tool since I feel root password can be copied to clipboard and abused. Its better to call the GUI with pkexec (debian derivatives) rather than writing root password on GUI and visible to users.
     
    Dennismungai likes this.
  9. Vasudev

    Vasudev Notebook Nobel Laureate

    Reputations:
    12,045
    Messages:
    11,278
    Likes Received:
    8,815
    Trophy Points:
    931
    @Sphynxinator Scratch my request of removing GUI for root pass in Undervolt GUI since copy and pasting the password doesn't work in terminal. Tried everything and Linux is just too secure....
    But a suggestion would be to pad the root password with additional blank dots. I think my password can be judged easily.
     
  10. Sphynxinator

    Sphynxinator Newbie

    Reputations:
    17
    Messages:
    5
    Likes Received:
    17
    Trophy Points:
    6
    Update with some Benchmark/CPU info features and bug fixes/polish.
     
    jclausius, Dennismungai and Vasudev like this.
  11. Vasudev

    Vasudev Notebook Nobel Laureate

    Reputations:
    12,045
    Messages:
    11,278
    Likes Received:
    8,815
    Trophy Points:
    931
    Let's stick to manual undervolting and we don't want Linux users to be greeted with black screen since we can't back to AC/Battery profile on TS. With Linux you can undervolt really high unlike Windows. Your C0% usage shows Linux is very optimised.
    You hacked my PC!! Just kidding I've same 6700HQ CPU as well.
    Tried it on Ivybridge CPU and c0% usage is amazing even with 19 tabs in firefox and thunderbird running in background.
    Screenshot_2019-02-11_17-30-31.png
     
    Last edited: Feb 11, 2019
    jclausius likes this.
  12. Mobius 1

    Mobius 1 Notebook Nobel Laureate

    Reputations:
    3,447
    Messages:
    9,069
    Likes Received:
    6,376
    Trophy Points:
    681
    windows is bloat

    even the LTSC version
     
  13. Vasudev

    Vasudev Notebook Nobel Laureate

    Reputations:
    12,045
    Messages:
    11,278
    Likes Received:
    8,815
    Trophy Points:
    931
    Yep they are. I have saved package list used by LTSC and I felt Standard cheaper W10 was better than LTSC.
    If some users undervolt too high say -200mV or more just because Linux is lighter than Windows and render the PC in non-bootable state. Even AC/Battery profile based switching rarely works. I use Xubuntu since Ubuntu is somewhat bloated too me.
     
  14. steberg

    steberg Notebook Evangelist

    Reputations:
    248
    Messages:
    562
    Likes Received:
    461
    Trophy Points:
    76
    Installed it and it works fine, was looking for a way to undervolt in linux!
    Thanks!
     
    Mr. Fox and Vasudev like this.
  15. Mr. Fox

    Mr. Fox BGA Filth-Hating Elitist

    Reputations:
    37,225
    Messages:
    39,334
    Likes Received:
    70,643
    Trophy Points:
    931
    Nice app. I will try it on my laptop with a Haswell blast furnace 4800MQ CPU.

    If and when you have time, please make it also support overvolting.
     
    Vasudev likes this.
  16. Vasudev

    Vasudev Notebook Nobel Laureate

    Reputations:
    12,045
    Messages:
    11,278
    Likes Received:
    8,815
    Trophy Points:
    931
    You can however use undervolt cmd line version with overvolting... I haven't tested it because I only have locked and crippled BGAs.