Fixing Ryzen Freezes Due to C6 Power States


Finally, I figured out how to make my system stable. For about a year I had been experiencing random freezes on my new system — but not ever while using it. I would come back in the morning and try to wake up the machine and it would be frozen. Turns out the root cause is the C6 power saving states in the Ryzen core are not fully compatible with the Linux kernel. Grrrr!

I’ll detail my fix here. I got on to this solution from a thread on and implemented it following this reddit thread.

Clone the ZenStates repo:

You can find it here:

git clone

Create a Script:

I called my

if [ "${1}" == "post" ]; then

# Disable c6 coming out of sleep
/home/mike/compile/ZenStates-Linux/ --c6-disable

Make it executable:

chmod a+x

Turn it into a service:

sudo nano /etc/systemd/system/disable-c6.service

and paste:

Description=Disable C6 on boot

ExecStart=/home/dk/Ryzen/ZenStates-Linux/ --c6-disable


Start it to disable C6 if it is currently enabled…

# systemctl start disable-c6.service

And get it to run on boot

# systemctl enable disable-c6.service