GNOME: Remove suspend and hibernate

Project:Trisquel
Version:7.0
Component:Gnome
Category:bug report
Priority:normal
Assigned:Unassigned
Status:patch (ready)
Description

Confirmed bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1283938

It's better to remove these features until the bug have been fixed. This is how I do it:

gsettings set org.gnome.settings-daemon.plugins.power button-hibernate "nothing"
gsettings set org.gnome.settings-daemon.plugins.power button-sleep "nothing"
gsettings set org.gnome.settings-daemon.plugins.power button-suspend "nothing"
gsettings set org.gnome.settings-daemon.plugins.power button-power "interactive"
# Remove Suspend and Hibernate - https://gist.github.com/schlomo/183524530d17d6a888d0
sudo bash -c 'echo "[Completely disable suspend and hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate;org.freedesktop.login1.suspend*;org.freedesktop.login1.hibernate*
ResultAny=no
ResultInactive=no
ResultActive=no" > /etc/polkit-1/localauthority/90-mandatory.d/disable-suspend-and-hibernate.pkla'

Wed, 12/07/2016 - 23:13

Please do not remove suspend... as it still works...

rather fix them for trisquel 8 if nothing else...

Tue, 05/15/2018 - 09:37

Both Suspend and Hibernate have been fixed in Trisqel 8.