ZenStates-Linux icon indicating copy to clipboard operation
ZenStates-Linux copied to clipboard

Disable C6 permanently?

Open undeadindustries opened this issue 7 years ago • 8 comments

Is there a way to disable C6 permanently?

I'm in Ubuntu 18.04.1

Thanks!

undeadindustries avatar Aug 25 '18 23:08 undeadindustries

--c6-disable

Start script and it is disabled. Else your BIOS may have an option for this. But make sure to check with zenstates once since my old BIOS version didn't do anything despite it was disabled

ghtux avatar Aug 26 '18 15:08 ghtux

I threw together a systemd unit to disable it upon startup using the zenstates.py script.

https://github.com/jfredrickson/disable-c6

jfredrickson avatar Nov 29 '18 21:11 jfredrickson

Nice. Anyone know if threadripper 2 still has these issues in kernel 4.19 or 4.20?

undeadindustries avatar Nov 29 '18 22:11 undeadindustries

if you mean by "still has these issues" the random freezes on idle and cpu hard lockups then yes, I pulled the 4.20 kernel from experimental on debian stable and this still happens, I also tried running this script while global C states is enabled and it doesn't work. I had to manually disable all C states (I know, not a great idea) for it to stop freezing, although I just had 25 hours of uptime up until now, we'll say if it passes the 50 hours threshold.

DrissiReda avatar Feb 04 '19 16:02 DrissiReda

This script looks promising, but I get the same error and 'setcap' does not work for me. Any ideas?

snthibaud avatar Feb 22 '19 15:02 snthibaud

@jfredrickson Awesome!

Aadniz avatar Jan 05 '20 06:01 Aadniz

git clone https://github.com/jfredrickson/disable-c6.git
cd disable-c6
git submodule init
git submodule update
sudo ./install.sh

Then add msr to /etc/modules like so:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

msr

adonespitogo avatar Feb 06 '20 20:02 adonespitogo

I've started some work for building a .deb that installs the systemd files. I've based it on some other work but for which I could not find how to rebuild the package with the latest version. See : https://github.com/dkm/ZenStates-Linux/releases I will eventually send a pull request when everything is clean.

dkm avatar May 05 '20 20:05 dkm