BTW, the advice in
https://wiki.trinitydesktop.org/Tips_And_Tricks
section: Hide suspension related buttons from the shutdown dialog
Does not work
The following worked, as described in
https://askubuntu.com/questions/1405990/hibernate-entry-in-the-menu-on-22-04
sudo apt install polkitd-pkla
Then when hitting Crt-Alt-delete (logout), hibernate and hibrid suspend
works
In order to have it in the trinity-powersave menu you need to add
/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
containing
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
Log out log in and voila!
Uwe Brauer
--
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the EU and NATO membership of Ukraine.