EndevourOS randomly freezing

In the article already linked (https://archived.forum.manjaro.org/t/amd-ryzen-problems-and-fixes/55533) above:

Kernel Boot Parameter

Adding a kernel boot parameter for GRUB in Manjaro:

  1. Open the file /etc/default/grub in a text editor.
  2. Add the parameter, in this case idle=nomwait (notice the m), to the line starting with >GRUB_CMDLINE_LINUX_DEFAULT=, at the end, within the quotes, like so: >GRUB_CMDLINE_LINUX_DEFAULT="<current parameters ...> idle=nomwait".
  3. Save the file.
  4. Update GRUB: sudo update-grub.
  5. Upon next reboot the default boot option should include the parameter.

But as EndeavourOS has no update-grub, instead you need to:

sudo grub-mkconfig -o /boot/grub/grub.cfg