A systemd service to disable the C6 state, preventing Ryzen freezes. This service runs once when the system starts up.
Inspiration:
- https://forum.manjaro.org/t/ryzen-freezes-possible-solution-related-to-c6-state/37870/5
- https://www.reddit.com/r/Amd/comments/7tkigu/automating_disabling_of_c6_states_in_arch_linux/
Note: Locations can be modified to something other than under /opt
if desired.
- Place zenstates.py under
/opt/ZenStates-Linux
- Place
disable_c6.sh
anddisable_c6.service
under/opt/disable_c6
- Add the service:
sudo ln -s /opt/disable_c6/disable_c6.service /etc/systemd/system
- Enable the service:
sudo systemctl enable disable_c6
- Start the service:
sudo systemctl start disable_c6