Skip to content

Instantly share code, notes, and snippets.

@afirth
Last active January 3, 2024 22:00
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 afirth/8ab37f9a672e1f57388e189a5b7cf219 to your computer and use it in GitHub Desktop.
Save afirth/8ab37f9a672e1f57388e189a5b7cf219 to your computer and use it in GitHub Desktop.
ubuntu fix deep sleep (change from s2idle)
# check deep is not selected and also available
cat /sys/power/mem_sleep
# temp set
sudo su -
root@:~# echo "deep" > /sys/power/mem_sleep
exit
# test
systemctl suspend -i
# verify
journalctl -g suspend --reverse
# permaset in grub
sudo su -
root@:~# vi /etc/default/grub
# edit for GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_sleep_default=deep"
root@:~# exit
sudo grub-mkconfig -o /boot/grub/grub.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment