You are not logged in.

#1 2024-11-08 17:11:54

pinkink
Member
Registered: 2022-11-26
Posts: 12

[SOLVED] Hibernate in gnome's power off menu?

Hi all, I am lacking the option to hibernate from the GNOME shutdown menu. The command `systemctl hibernate` works as expected.

I tried to install the extension https://aur.archlinux.org/packages/gnom … ate-status as well as creating the polkit rule as referenced on the extension's github https://github.com/arelange/gnome-shell … ate-status
However none of that provides me with the hibernate menu entry. These instructions are ubuntu based so I am not sure if I applied them correctly.

If anyone have this working - can you share how did you get this to work?

Last edited by pinkink (2024-12-07 07:49:09)

Offline

#2 2024-12-07 07:48:40

pinkink
Member
Registered: 2022-11-26
Posts: 12

Re: [SOLVED] Hibernate in gnome's power off menu?

After some digging - here's the solution.

GNOME dev's have officially stated that hibernate button won't be a part of GNOME - https://gitlab.gnome.org/GNOME/gnome-sh … ote_737180 but the functionality can be added by an extension.

Note that this is only about the menu button, not the underlying mechanism. "systemctl hibernate" must be working independently before adding this menu button.

1) The extension "gnome shell extension hibernate status" needs to be installed from AUR https://aur.archlinux.org/packages/gnom … ate-status - but that's not all
2) As of the time of writing that extension does not support GNOME 47 (current version). However the change is really cosmetic, all that's needed is add the version to the file `/usr/share/gnome-shell/extensions/hibernate-status@dromi/metadata.json` - this will probably be necessary for future versions too, and sufficient unless the future version of GNOME introduces a breaking change. Restart the gnome shell.
3) Run "extensions" from GNOME shell (gnome-extensions-app from command line) and enable / configure the extension.

The polkit rule advice they have on github is most likely outdated, because polkit nowadays uses javascript rules rather than pkla files -- don't bother with that.

Last edited by pinkink (2024-12-07 07:51:47)

Offline

Board footer

Powered by FluxBB