Skip to content

Instantly share code, notes, and snippets.

@silvernode
Last active June 9, 2020 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silvernode/abc2913295ce20f98ede76c95e9ccc4e to your computer and use it in GitHub Desktop.
Save silvernode/abc2913295ce20f98ede76c95e9ccc4e to your computer and use it in GitHub Desktop.
1. Edit `/etc/default/grub` with admin rights
2. Find line: GRUB_CMDLINE_LINUX_DEFAULT=" "
3. Add in quotes: GRUB_CMDLINE_LINUX_DEFAULT="processor.max_cstate=1 idle=poll"
4. Save the file
5. Rebuild grub boot menu: grub-mkconfig -o /boot/grub/grub.cfg
5a.Some distributions require: grub2-mkconfig -o /boot/grub2/grub.cfg
6. Reboot system
Notes: If you are using Fedora without UEFI and cannot regenerate your grub menu,
open: /etc/default/grub and
edit the line:
GRUB_ENABLE_BLSCFG=true
and change it to:
GRUB_ENABLE_BLSCFG=false
Save the file then run the grub2-mkconfig again as explained in list items 5 and 5a,
then reboot the system.
@silvernode
Copy link
Author

silvernode commented Nov 22, 2019

I am hoping this file shows up in search engine results to make fixing these issues much faster and easier for people than it was for me. It took me a year to find a workaround for my bugged Ryzen Zen1 board back in late 2017. I finally narrowed it down to c-states and found the correct kernel line options a year later in late 2018. During that year I could not use Linux on that Ryzen machine since it would randomly reboot after being idle long enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment