Ubuntu – Ubuntu 18.04 Suspend loop

18.04laptoppower-managementsuspend

I just installed ubuntu 18.04 on my razer laptop (2017 14") and everything was working fine (for the most part) until I ran into an issue that seems to trigger once I suspend my laptop (by closing the lid).

Basically it suspends just fine, however once I open the lid it runs for a small period of time (seconds) before locking and suspending the system again (even while typing or working with the system).

Looking at the syslogs I see the following groups of messages appear.

Oct  6 00:26:26 mkw-ubuntu-razer systemd-sleep[7640]: System resumed.
Oct  6 00:26:26 mkw-ubuntu-razer kernel: [  693.623692] PM: suspend exit
Oct  6 00:26:26 mkw-ubuntu-razer systemd[1]: Started Suspend.
Oct  6 00:26:26 mkw-ubuntu-razer systemd[1]: sleep.target: Unit not needed anymore. Stopping.
Oct  6 00:26:26 mkw-ubuntu-razer systemd[1]: Stopped target Sleep.
Oct  6 00:26:26 mkw-ubuntu-razer systemd[1]: Reached target Suspend.
Oct  6 00:26:26 mkw-ubuntu-razer systemd[1]: suspend.target: Unit not needed anymore. Stopping.```

The only way to stop this process is by completely rebooting the system. I saw I could disable suspend on lid closed, but I like that functionality and would love to have it work on this machine (works great on my Precision 5520).

Any help or guidance would be greatly appreciated.

Best Answer

So this is actually a known issue with the Razer and is easily resolved with a GRUB change. The official link for the documentation is here.

https://help.ubuntu.com/community/RazerBlade#Suspend