Overclock/ Undervolt on Linux

Discussion in 'Linux Compatibility and Software' started by jclausius, Feb 19, 2018.

  1. jclausius

    jclausius Notebook Virtuoso

    Reputations:
    1,197
    Messages:
    2,613
    Likes Received:
    1,142
    Trophy Points:
    181
    Just a quick question before I start my research...

    Can I just make changes in UEFI for OC or voltage settings, and have Linux just work? Or is there more to it than that?

    Right now, I'm thinking there's more involved, as I set a small negative voltage offset on the Mighty Mini, (which is known to be stable in my Windows boot), but when booting to Linux or the Linux installer it crashes with a Machine Check Exception.

    If anyone has any hints, advice or references on customizing OC or voltage settings in UEFI and working with Linux, it would be much appreciated.
     
    Last edited: Feb 20, 2018
  2. Vasudev

    Vasudev Notebook Prophet

    Reputations:
    3,753
    Messages:
    6,803
    Likes Received:
    4,512
    Trophy Points:
    431
    Did you use this tool https://github.com/xdever/linux-intel-undervolt-tool ?
     
    jclausius and slimmolG like this.
  3. jclausius

    jclausius Notebook Virtuoso

    Reputations:
    1,197
    Messages:
    2,613
    Likes Received:
    1,142
    Trophy Points:
    181
    No. I had not. I was hoping that I could just set things in the UEFI, and Linux would just run... as Windows doesn't seem to mind some of these changes in UEFI, I was hoping Linux would be the same.
     
    Dennismungai and Vasudev like this.
  4. giostark

    giostark Notebook Enthusiast

    Reputations:
    5
    Messages:
    22
    Likes Received:
    21
    Trophy Points:
    6
    Is not a direct answer to your question, and for that im useless.
    Have you already a modded bios? If not i suggest to you to operate directly there , to avoid writing code mistake.
    http://forum.notebookreview.com/threads/x7200-bios-mod.805816/
    Me for avoid similar issue im using the prema bios and i have undervolted my 7700k4.7 of 100mv and it seem really stable under windoz but also under Arch linux.
    I have to say that prema gives to me the right parameters.
     
    Dennismungai and jclausius like this.
  5. jclausius

    jclausius Notebook Virtuoso

    Reputations:
    1,197
    Messages:
    2,613
    Likes Received:
    1,142
    Trophy Points:
    181
    Thanks for the follow-up. I wasn't clear enough in my OP (I've re-edited). Prema's work is not going to help here, but that's because it isn't needed. I'm working with the Mighty Mini (in my sig). Full ASRock UEFI, with more voltage and O/C options coming out of my ears.
     
    Dennismungai and Vasudev like this.
  6. Dennismungai

    Dennismungai Notebook Evangelist

    Reputations:
    266
    Messages:
    563
    Likes Received:
    429
    Trophy Points:
    76
    Hey there, and welcome to the forum.

    If your BIOS allows you to tune functions such as overclocking and undervolting, you're in luck!

    These settings persist, no matter the Operating System you're on.

    What I'd recommend enabling in the BIOS, apart from your changes (undervols, XMP profile management, etc) is SpeedShift /SST and Race to halt (RTH) as it will allows the intel_pstate driver to do its' job and to accurately report power usage via the RAPL interface.

    I would not recommend attempting an overvolt or undervolt from the user space. That's why most platforms, including AMD's AGESA, allow for such options to be modified in the BIOS.

    I'd not recommend such a tool if the BIOS allows for such modifications.
     
    Vasudev likes this.
  7. jclausius

    jclausius Notebook Virtuoso

    Reputations:
    1,197
    Messages:
    2,613
    Likes Received:
    1,142
    Trophy Points:
    181
    Thanks for the reply. However, I'm not certain I'm in luck.

    For example, within UEFI, if I change the FIVR settings for an -85mV undervlot, my Linux partition won't boot - crashes each time with an 'mce'. However, I can boot into Windows with the same undervolt.

    It looks like at one time there was a special kernel being developed which might have worked with UEFI - http://linux-phc.org/ However, it appears that effort has been dormant (or dead) for some time. From the research I'm seeing right now, it looks like Linux won't work with UEFI, but instead they want you to use the msr-tools (which is the Linux command line equivalent of ThrottleStop) using rdmsr and wrmsr to set some values. Again, the search results suggest that at least with 'voltage' changes, this is the way to do things. I have no idea what happens with clock settings... But one step at a time.

    @unclewebb had something to say about this here - https://askubuntu.com/questions/337147/throttlestop-for-ubuntu

    If anyone knows of other resources, links, tools, etc., please update this thread.
     
    Last edited: Feb 20, 2018
    Vasudev likes this.
  8. ALLurGroceries

    ALLurGroceries   Super Moderator

    Reputations:
    9,685
    Messages:
    7,042
    Likes Received:
    924
    Trophy Points:
    281
    Unless you want to change your voltage/clock settings from linux, there is no need for special tools. Right now I am typing to you on a UEFI based linux machine that is overclocked and overvolted from within the BIOS setup. If you want to poke your system while it is running, the linux intel undervolt tool linked by @Vasudev is a python wrapper around msr-tools that is worth a shot. If you read the readme it links to this explanation https://github.com/mihic/linux-intel-undervolt

    Also, if you are getting a MCE while booting linux it means your undervolt is not stable. Just because you can boot windoze does not mean anything besides it hasn't hit the right bit of code yet to make your CPU crash.
     
  9. jclausius

    jclausius Notebook Virtuoso

    Reputations:
    1,197
    Messages:
    2,613
    Likes Received:
    1,142
    Trophy Points:
    181
    Ahh... Very good points. Yes. I would much rather control things from a UEFI/BIOS point of view. I'll try reducing the undervolt until I can boot.

    Thx for the post!
     
    Dennismungai and Vasudev like this.
  10. Dennismungai

    Dennismungai Notebook Evangelist

    Reputations:
    266
    Messages:
    563
    Likes Received:
    429
    Trophy Points:
    76
    And BTW, on the Clevo X200: Are you able to upgrade components such as the GPUs to say, modern GTX 1060/70/80s?
     
Loading...

Share This Page