Skip to main content
2 of 2
Added distribution/version
palswim
  • 5.7k
  • 7
  • 42
  • 57

Unfortunately, the inhibitor routes didn't seem to work as advertised for me on openSUSE Tumbleweed (42.1) using GNOME. But, I had success with Systemd masking:

systemctl mask sleep.target suspend.target

To undo the mask, you can use unmask:

systemctl unmask sleep.target suspend.target
palswim
  • 5.7k
  • 7
  • 42
  • 57