Sorta solved it.

So, after all the above shenanigans `sudo pm-suspend` finally started
working from GNOME.

So I went after `systemctl suspend`.

`journalctl -b | grep suspend`

was throwing a bunch of 
```
 Could not acquire inhibitor lock: 
GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected 
```

which is very helpful to debug what the issue is /s

Luckily, someone here already managed to debug it: https://www.mail-
archive.com/ubuntu-bugs@lists.ubuntu.com/msg5950676.html

`/etc/systemd/system/systemd-suspend.service.requires/` had nvidia left-overs. 
After deleting them
`sudo rm -rf /etc/systemd/system/systemd-suspend.service.requires/` my 
`systemctl suspend` now works. 


Always remember, kids: https://www.youtube.com/watch?v=_36yNWw_07g

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1953235

Title:
  systemctl suspend stopped working: laptop immeadeately wakes up again

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-signed-hwe-5.11/+bug/1953235/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to