Skip to content

Instantly share code, notes, and snippets.

@steve-todorov
Last active October 25, 2017 14:58
Show Gist options
  • Save steve-todorov/fc6cfeb756c4544c7a0a to your computer and use it in GitHub Desktop.
Save steve-todorov/fc6cfeb756c4544c7a0a to your computer and use it in GitHub Desktop.
Fix SUSE suspend
1. Check if /etc/default/grub has
GRUB_CMDLINE_LINUX_DEFAULT=" resume=/dev/sda2 splash=silent quiet showopts"
and "resume" points to the correct SWAP partition.
2. Check if using any nvidia drivers. If so - uninstall them and make sure to remove any files that blacklist "nouveau":
cd /etc/modprobe.d/
grep -i -R "nouveau" .
(remove nvidia*.conf; remove any lines in other files that contain the blacklist nouveau string)
3. run mkinitrd
4. reboot; try closing the laptop after boot to see if it goes into suspend.
5. Check if /etc/systemd/logind.conf has:
HandleSuspendKey=suspend
HandleLidSwitch=suspend
LidSwitchIgnoreInhibited=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment