arelange / gnome-shell-extension-hibernate-status

Gnome Shell extension that adds a hibernate/hybrid suspend button in Status menu.
GNU General Public License v2.0
151 stars 54 forks source link

Extension not working in Ubuntu 19.10 #41

Closed powerriegel closed 4 years ago

powerriegel commented 4 years ago

I use a ThinkPad X1 Extreme with current Ubuntu 19.10. Hibernation works pretty well since I created a swap partition slightly bigger then my amount of RAM (32 GB).

I can now systemctl hibernate

And the system goes to sleeps and wakes up properly.

But there is no button. I crawled through many tutorials, most suggest the Gnome Extension H[ibernate Status Button][1]. This extension seems to be broken. It's settings looks like on the screenshot and it's automatically deactivated by the system.

So, how to get this button working on 19.10?

Bildschirmfoto vom 2019-12-08 12-27-23

hschmidt commented 4 years ago

Same here. 19.10, no button, empty settings dialog. systemctl hibernate works.

p91paul commented 4 years ago

can any of you post logs obtained with journalctl during a gnome shell restart?

hschmidt commented 4 years ago

Gnome shell restart (killall -3 gnome-shell)

Dec 15 17:15:14 hannes-xps PackageKit[29297]: daemon quit
Dec 15 17:15:14 hannes-xps systemd[1]: packagekit.service: Main process exited, code=killed, status=15/TERM
Dec 15 17:15:14 hannes-xps systemd[1]: packagekit.service: Succeeded.
Dec 15 17:15:18 hannes-xps xdg-desktop-por[2210]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: App introspection not allowed
Dec 15 17:15:23 hannes-xps systemd[1994]: gnome-shell-x11.service: Main process exited, code=dumped, status=3/QUIT
Dec 15 17:15:23 hannes-xps polkitd(authority=local)[1123]: Unregistered Authentication Agent for unix-session:2 (system bus name :1.1206, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Dec 15 17:15:23 hannes-xps systemd[1994]: gnome-shell-x11.service: Failed with result 'core-dump'.
Dec 15 17:15:23 hannes-xps systemd[1994]: gnome-shell-x11.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Dec 15 17:15:23 hannes-xps systemd[1994]: gnome-shell-x11.service: Scheduled restart job, restart counter is at 2.
Dec 15 17:15:23 hannes-xps systemd[1994]: Stopped target GNOME X11 Session (session: ubuntu).
Dec 15 17:15:23 hannes-xps systemd[1994]: Stopping GNOME X11 Session (session: ubuntu).
Dec 15 17:15:23 hannes-xps systemd[1994]: Stopped target GNOME X11 Session.
Dec 15 17:15:23 hannes-xps systemd[1994]: Stopping GNOME X11 Session.
Dec 15 17:15:23 hannes-xps systemd[1994]: Stopped target GNOME Shell on X11.
Dec 15 17:15:23 hannes-xps systemd[1994]: Stopping GNOME Shell on X11.
Dec 15 17:15:23 hannes-xps systemd[1994]: Stopped GNOME Shell on X11.
Dec 15 17:15:23 hannes-xps systemd[1994]: Starting GNOME Shell on X11...
Dec 15 17:15:24 hannes-xps /usr/lib/gdm3/gdm-x-session[2052]: (II) modeset(0): EDID vendor "SHP", prod id 5305
Dec 15 17:15:24 hannes-xps /usr/lib/gdm3/gdm-x-session[2052]: (II) modeset(0): Printing DDC gathered Modelines:
Dec 15 17:15:24 hannes-xps /usr/lib/gdm3/gdm-x-session[2052]: (II) modeset(0): Modeline "3840x2160"x0.0  533.25  3840 3888 3920 4000  2160 2163 2168 2222 -hsync -vsync (133.3 kHz eP)
Dec 15 17:15:24 hannes-xps gsd-media-keys[2442]: Failed to grab accelerators: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell” on object at path /org/gnome/Shell
Dec 15 17:15:25 hannes-xps gsd-media-keys[2442]: Failed to grab accelerators: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell” on object at path /org/gnome/Shell
Dec 15 17:15:25 hannes-xps gnome-shell[31740]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Dec 15 17:15:25 hannes-xps gnome-shell[31740]: Will monitor session 2
Dec 15 17:15:25 hannes-xps dbus-daemon[2048]: [session uid=1000 pid=2048] Activating service name='org.freedesktop.portal.IBus' requested by ':1.287' (uid=1000 pid=31773 comm="ibus-daemon --panel disable " label="unconfined")
Dec 15 17:15:25 hannes-xps dbus-daemon[2048]: [session uid=1000 pid=2048] Successfully activated service 'org.freedesktop.portal.IBus'
Dec 15 17:15:26 hannes-xps gsd-media-keys[2442]: Failed to grab accelerators: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell” on object at path /org/gnome/Shell
Dec 15 17:15:26 hannes-xps dbus-daemon[1060]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.1335' (uid=1000 pid=31740 comm="/usr/bin/gnome-shell " label="unconfined")
Dec 15 17:15:26 hannes-xps systemd[1]: Starting Location Lookup Service...
Dec 15 17:15:27 hannes-xps polkitd(authority=local)[1123]: Registered Authentication Agent for unix-session:2 (system bus name :1.1335 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Dec 15 17:15:27 hannes-xps gnome-shell[31740]: Telepathy is not available, chat integration will be disabled.
Dec 15 17:15:27 hannes-xps dbus-daemon[1060]: [system] Successfully activated service 'org.freedesktop.GeoClue2'
Dec 15 17:15:27 hannes-xps systemd[1]: Started Location Lookup Service.
Dec 15 17:15:27 hannes-xps dbus-daemon[1060]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.1335' (uid=1000 pid=31740 comm="/usr/bin/gnome-shell " label="unconfined")
Dec 15 17:15:27 hannes-xps systemd[1]: Starting PackageKit Daemon...
Dec 15 17:15:27 hannes-xps PackageKit[31810]: daemon start
Dec 15 17:15:27 hannes-xps dbus-daemon[1060]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Dec 15 17:15:27 hannes-xps systemd[1]: Started PackageKit Daemon.
Dec 15 17:15:27 hannes-xps gsd-media-keys[2442]: Failed to grab accelerators: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell” on object at path /org/gnome/Shell
Dec 15 17:15:27 hannes-xps gnome-shell[31740]: loading default theme (Adwaita)
Dec 15 17:15:27 hannes-xps gnome-shell[31740]: Supported
Dec 15 17:15:27 hannes-xps gnome-shell[31740]: Error: Requiring GTop, version none: Typelib file for namespace 'GTop' (any version) not found
Dec 15 17:15:27 hannes-xps gnome-shell[31740]: JS WARNING: [/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/appIcons.js 1090]: unreachable code after return statement
Dec 15 17:15:27 hannes-xps dbus-daemon[2048]: [session uid=1000 pid=2048] Activating service name='org.freedesktop.FileManager1' requested by ':1.286' (uid=1000 pid=31740 comm="/usr/bin/gnome-shell " label="unconfined")
Dec 15 17:15:27 hannes-xps dbus-daemon[2048]: [session uid=1000 pid=2048] Activating service name='org.freedesktop.portal.IBus' requested by ':1.292' (uid=1000 pid=31824 comm="ibus-daemon --panel disable -r --xim " label="unconfined")
Dec 15 17:15:27 hannes-xps dbus-daemon[2048]: [session uid=1000 pid=2048] Successfully activated service 'org.freedesktop.portal.IBus'
Dec 15 17:15:28 hannes-xps dbus-daemon[2048]: [session uid=1000 pid=2048] Successfully activated service 'org.freedesktop.FileManager1'
Dec 15 17:15:28 hannes-xps systemd[1994]: Started GNOME Shell on X11.
Dec 15 17:15:28 hannes-xps systemd[1994]: Reached target GNOME Shell on X11.
Dec 15 17:15:28 hannes-xps systemd[1994]: Reached target GNOME X11 Session.
Dec 15 17:15:28 hannes-xps systemd[1994]: Reached target GNOME X11 Session (session: ubuntu).
Dec 15 17:15:28 hannes-xps gnome-shell[31740]: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.125/org/ayatana/NotificationItem/software_update_available
Dec 15 17:15:28 hannes-xps NetworkManager[1072]: <info>  [1576458928.9613] agent-manager: req[0x558832631040, :1.1335/org.gnome.Shell.NetworkAgent/1000]: agent registered
Dec 15 17:15:28 hannes-xps gsd-media-keys[2442]: Failed to grab accelerator for keybinding settings:playback-random
Dec 15 17:15:28 hannes-xps gsd-media-keys[2442]: Failed to grab accelerator for keybinding settings:rfkill
Dec 15 17:15:28 hannes-xps gsd-media-keys[2442]: Failed to grab accelerator for keybinding settings:screen-brightness-cycle
Dec 15 17:15:28 hannes-xps gsd-media-keys[2442]: Failed to grab accelerator for keybinding settings:playback-repeat
Dec 15 17:15:28 hannes-xps gsd-media-keys[2442]: Failed to grab accelerator for keybinding settings:hibernate
Dec 15 17:15:29 hannes-xps gnome-shell[31740]: [AppIndicatorSupport-FATAL] unable to update overlay icon
Dec 15 17:15:29 hannes-xps gnome-shell[31740]: [AppIndicatorSupport-FATAL] unable to update overlay icon
Dec 15 17:15:29 hannes-xps gnome-shell[31740]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Dec 15 17:15:31 hannes-xps gnome-shell[31740]: Installed
Dec 15 17:15:32 hannes-xps gnome-shell[31740]: Usage of object.actor is deprecated for PanelMenuButton
                                               get@resource:///org/gnome/shell/ui/environment.js:249:29
                                               CPUFreqBaseIndicator@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/baseindicator.js:49:9
                                               CPUFreqIndicator@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/indicator.js:57:9
                                               enable/</<@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/extension.js:73:34
                                               spawn_process_check_exit_code/<@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/utils.js:50:13
Dec 15 17:15:32 hannes-xps pkexec[31878]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Dec 15 17:15:32 hannes-xps pkexec[31878]: hannes: Executing command [USER=root] [TTY=unknown] [CWD=/home/hannes] [COMMAND=/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/cpufreqctl min check]
Dec 15 17:15:32 hannes-xps pkexec[31883]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Dec 15 17:15:32 hannes-xps pkexec[31883]: hannes: Executing command [USER=root] [TTY=unknown] [CWD=/home/hannes] [COMMAND=/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/cpufreqctl min 0]
Dec 15 17:15:32 hannes-xps gnome-shell[31740]: Usage of object.actor is deprecated for Slider
                                               get@resource:///org/gnome/shell/ui/environment.js:249:29
                                               createMenu@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/indicator.js:160:9
                                               CPUFreqIndicator@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/indicator.js:83:9
                                               enable/</<@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/extension.js:73:34
                                               spawn_process_check_exit_code/<@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/utils.js:50:13
Dec 15 17:15:32 hannes-xps gnome-shell[31740]: Usage of object.actor is deprecated for Slider
                                               get@resource:///org/gnome/shell/ui/environment.js:249:29
                                               createMenu@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/indicator.js:169:9
                                               CPUFreqIndicator@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/indicator.js:83:9
                                               enable/</<@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/extension.js:73:34
                                               spawn_process_check_exit_code/<@/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/utils.js:50:13
Dec 15 17:15:32 hannes-xps pkexec[31884]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Dec 15 17:15:32 hannes-xps pkexec[31884]: hannes: Executing command [USER=root] [TTY=unknown] [CWD=/home/hannes] [COMMAND=/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/cpufreqctl max 10]
Dec 15 17:15:32 hannes-xps pkexec[31887]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Dec 15 17:15:32 hannes-xps pkexec[31887]: hannes: Executing command [USER=root] [TTY=unknown] [CWD=/home/hannes] [COMMAND=/home/hannes/.local/share/gnome-shell/extensions/cpupower@mko-sl.de/src/cpufreqctl turbo 0]
Dec 15 17:15:32 hannes-xps gnome-shell[31740]: Window manager warning: Overwriting existing binding of keysym ffbe with keysym ffbe (keycode 43).
Dec 15 17:15:32 hannes-xps gnome-shell[31740]: GNOME Shell started at Sun Dec 15 2019 17:15:27 GMT-0800 (PST)
Dec 15 17:15:32 hannes-xps gnome-shell[31740]: Registering session with GDM
Dec 15 17:16:18 hannes-xps xdg-desktop-por[2210]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: App introspection not allowed
Dec 15 17:16:18 hannes-xps snapd[1029]: storehelpers.go:436: cannot refresh: snap has no updates available: "atom", "communitheme", "core", "core18", "cw-sh", "gnome-3-28-1804", "gnome-calculator", "gnome-characters", "gnome-dictionary", "gnome-logs", "gnome-system-monitor", "gtk-common-themes", "gtk2-common-themes", "helm", "http", "jq", "kde-frameworks-5-core18", "keepassxc", "kubectl", "pycharm-professional", "slack", "sublime-text", "vlc"
Dec 15 17:16:27 hannes-xps geoclue[31797]: Service not used for 60 seconds. Shutting down..
Dec 15 17:16:27 hannes-xps systemd[1]: geoclue.service: Main process exited, code=killed, status=15/TERM
Dec 15 17:16:27 hannes-xps systemd[1]: geoclue.service: Succeeded.
Dec 15 17:16:32 hannes-xps systemd[1]: Reloading.
Dec 15 17:16:32 hannes-xps systemd[1]: /lib/systemd/system/dbus.socket:4: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
Dec 15 17:16:32 hannes-xps systemd[1]: /lib/systemd/system/docker.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit file accordingly.
Dec 15 17:16:32 hannes-xps systemd[1]: Starting Process error reports when automatic reporting is enabled...
Dec 15 17:16:33 hannes-xps systemd[1]: Mounting Mount unit for inkscape, revision 6652...
Dec 15 17:16:33 hannes-xps systemd[1]: Mounted Mount unit for inkscape, revision 6652.
Dec 15 17:16:33 hannes-xps whoopsie-upload-all[32219]: /var/crash/_usr_lib_tracker_tracker-miner-fs.1000.crash already marked for upload, skipping
Dec 15 17:16:33 hannes-xps whoopsie-upload-all[32219]: /var/crash/_usr_bin_cpupower-gui.1000.crash already marked for upload, skipping
Dec 15 17:16:33 hannes-xps whoopsie-upload-all[32219]: All reports processed
Dec 15 17:16:33 hannes-xps systemd[1]: apport-autoreport.service: Succeeded.
Dec 15 17:16:33 hannes-xps systemd[1]: Started Process error reports when automatic reporting is enabled.
Dec 15 17:16:34 hannes-xps audit[32245]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap-update-ns.inkscape" pid=32245 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps kernel: kauditd_printk_skb: 63 callbacks suppressed
Dec 15 17:16:34 hannes-xps kernel: audit: type=1400 audit(1576458994.471:74): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap-update-ns.inkscape" pid=32245 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps audit[32247]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.inkscape.viewer" pid=32247 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps kernel: audit: type=1400 audit(1576458994.703:75): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.inkscape.viewer" pid=32247 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps audit[32246]: AVC apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.inkscape.inkscape" pid=32246 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps kernel: audit: type=1400 audit(1576458994.719:76): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.inkscape.inkscape" pid=32246 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps audit[32249]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/8268/usr/lib/snapd/snap-confine" pid=32249 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps audit[32249]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/8268/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=32249 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps kernel: audit: type=1400 audit(1576458994.743:77): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/8268/usr/lib/snapd/snap-confine" pid=32249 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps kernel: audit: type=1400 audit(1576458994.743:78): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/8268/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=32249 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps audit[32251]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.core" pid=32251 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps kernel: audit: type=1400 audit(1576458994.755:79): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.core" pid=32251 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps audit[32252]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.core.hook.configure" pid=32252 comm="apparmor_parser"
Dec 15 17:16:34 hannes-xps kernel: audit: type=1400 audit(1576458994.759:80): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.core.hook.configure" pid=32252 comm="apparmor_parser"
Dec 15 17:16:35 hannes-xps systemd[1]: snap-inkscape-6643.mount: Succeeded.
Dec 15 17:16:35 hannes-xps systemd[1994]: snap-inkscape-6643.mount: Succeeded.
Dec 15 17:16:36 hannes-xps systemd[1]: Reloading.
Dec 15 17:16:36 hannes-xps systemd[1]: /lib/systemd/system/dbus.socket:4: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
Dec 15 17:16:36 hannes-xps systemd[1]: /lib/systemd/system/docker.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit file accordingly.
Dec 15 17:16:36 hannes-xps systemd[1]: Starting Process error reports when automatic reporting is enabled...
Dec 15 17:16:36 hannes-xps whoopsie-upload-all[32299]: /var/crash/_usr_lib_tracker_tracker-miner-fs.1000.crash already marked for upload, skipping
Dec 15 17:16:36 hannes-xps whoopsie-upload-all[32299]: /var/crash/_usr_bin_cpupower-gui.1000.crash already marked for upload, skipping
Dec 15 17:16:36 hannes-xps whoopsie-upload-all[32299]: All reports processed
Dec 15 17:16:37 hannes-xps systemd[1]: apport-autoreport.service: Succeeded.
Dec 15 17:16:37 hannes-xps systemd[1]: Started Process error reports when automatic reporting is enabled.
Dec 15 17:16:37 hannes-xps snapd[1029]: storehelpers.go:436: cannot refresh snap "inkscape": snap has no updates available

Open extension settings dialog (comes up empty):

Dec 15 17:20:48 hannes-xps gnome-shell[31740]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x200000d
Dec 15 17:20:49 hannes-xps gnome-shell-ext[819]: JS ERROR: Error: Expected type object for Argument 'widget' but got type 'undefined'
                                                 _showPrefs@resource:///org/gnome/shell/extensionPrefs/main.js:83:9
                                                 _extensionsLoaded@resource:///org/gnome/shell/extensionPrefs/main.js:320:13
                                                 _scanExtensions/<@resource:///org/gnome/shell/extensionPrefs/main.js:298:13
                                                 asyncCallback@resource:///org/gnome/gjs/modules/overrides/Gio.js:132:13
                                                 main@resource:///org/gnome/shell/extensionPrefs/main.js:707:5
                                                 @<main>:1:43
Dec 15 17:20:54 hannes-xps systemd[1]: systemd-hostnamed.service: Succeeded.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be57057be0.
Dec 15 17:21:11 hannes-xps org.gnome.tweaks.desktop[31740]: == Stack trace for context 0x55be568cb1a0 ==
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps org.gnome.tweaks.desktop[31740]: == Stack trace for context 0x55be568cb1a0 ==
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be57266bf0.
Dec 15 17:21:11 hannes-xps org.gnome.tweaks.desktop[31740]: == Stack trace for context 0x55be568cb1a0 ==
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be570572e0.
Dec 15 17:21:11 hannes-xps org.gnome.tweaks.desktop[31740]: == Stack trace for context 0x55be568cb1a0 ==
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps org.gnome.tweaks.desktop[31740]: == Stack trace for context 0x55be568cb1a0 ==
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be570575e0.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be572668f0.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be572662f0.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be572665f0.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be57266ef0.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be572c1340.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be570578e0.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Dec 15 17:21:11 hannes-xps gnome-shell-ext[819]: The offending signal was destroy on Gjs_ExtensionRow 0x55be57057ee0.
Dec 15 17:21:18 hannes-xps xdg-desktop-por[2210]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: App introspection not allowed

Reinstall extension:

Dec 15 17:25:26 hannes-xps gnome-shell[31740]: JS WARNING: [resource:///org/gnome/shell/ui/extensionDownloader.js 89]: reference to undefined property "GLocalFileOutputStream"
Dec 15 17:25:26 hannes-xps gnome-shell[31740]: Archive:  /tmp/JQSNC0.shell-extension.zip
Dec 15 17:25:26 hannes-xps gnome-shell[31740]:   inflating: /home/hannes/.local/share/gnome-shell/extensions/hibernate-status@dromi/buildforupload.sh
Dec 15 17:25:26 hannes-xps gnome-shell[31740]:   inflating: /home/hannes/.local/share/gnome-shell/extensions/hibernate-status@dromi/schemas/org.gnome.shell.extensions.hibernate-status-button.gschema.xml
Dec 15 17:25:26 hannes-xps gnome-shell[31740]:   inflating: /home/hannes/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js
Dec 15 17:25:26 hannes-xps gnome-shell[31740]:   inflating: /home/hannes/.local/share/gnome-shell/extensions/hibernate-status@dromi/schemas/gschemas.compiled
Dec 15 17:25:26 hannes-xps gnome-shell[31740]:   inflating: /home/hannes/.local/share/gnome-shell/extensions/hibernate-status@dromi/prefs.js
Dec 15 17:25:26 hannes-xps gnome-shell[31740]:   inflating: /home/hannes/.local/share/gnome-shell/extensions/hibernate-status@dromi/README.md
Dec 15 17:25:26 hannes-xps gnome-shell[31740]:   inflating: /home/hannes/.local/share/gnome-shell/extensions/hibernate-status@dromi/confirmDialog.js
Dec 15 17:25:26 hannes-xps gnome-shell[31740]:   inflating: /home/hannes/.local/share/gnome-shell/extensions/hibernate-status@dromi/LICENSE
Dec 15 17:25:26 hannes-xps gnome-shell[31740]:  extracting: /home/hannes/.local/share/gnome-shell/extensions/hibernate-status@dromi/metadata.json
Dec 15 17:26:18 hannes-xps xdg-desktop-por[2210]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: App introspection not allowed
hschmidt commented 4 years ago

Putting

[Enable hibernate in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Enable hibernate 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

into /etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla makes the hibernate button appear in the status menu but the setting dialog still comes up empty.

I took the above polkit entries from /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla. I changed the ResultActive value from no to yes and adjusted the comment (or whatever that is between the square brackets) accordingly.

p91paul commented 4 years ago

I added your indications to README, thanks for investigating this!

For the preferences dialog, it is intended behavior. The only stored preferences are "do not show again" for a couple dialogs, and they are not modifiable by the user. I would accept pull requests to make them available, but I don't see that as a useful feature.

Mzati commented 3 years ago

Hello @p91paul, I am still getting the message 'Failed to hibernate system via logind: Sleep verb "hibernate" not supported' when I use the command 'systemctl hibernate' even after following the instructions found here: How to hibernate with swapfile. I am on Ubuntu 20.04 and I'm wondering if there's an extension that completely solves the problem.

p91paul commented 3 years ago

@Mzati I'm sorry, but this extension (and I guess any other reasonable extension) is just a nice GUI over the system's own capability to hibernate. Specifically, this extension relies on systemd for hibernation. If you are unable to hibernate with that command, there is nothing this extension can do. The instructions you followed are for ubuntu 18.04; not being an Ubuntu user myself, I don't know if anything changed in 20.04, so you should look for up-to-date documentation or ask for help on askubuntu or other ubuntu forums.

Once you get the command to work, I'm confident the extension will work too.

francwalter commented 1 year ago

I followed these two instructions: How to Enable Hibernate Function in Ubuntu 22.04 LTS and also: Making Hibernate work on Ubuntu 22.04 (jammy) on the Framework Laptop w/full disk encryption because I have no swap partition but file, and it worked. After putting this stuff into a (new) file /etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla the entries were there too, thank you very much! frank

Octopus1348 commented 8 months ago

It still doesn't work for me, I added the things to the file (systemctl hibernate works fine BTW)

cat /etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla returns this:

[Enable hibernate in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Enable hibernate 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
TheSofter commented 7 months ago

sudo systemctl hibernate worked fine on my ubuntu 23.10 but the "hibernate" option did not appear in the shutdown menu. Installing the package polkitd-pkla fixed the issue: sudo apt install polkitd-pkla

Octopus1348 commented 7 months ago

sudo systemctl hibernate worked fine on my ubuntu 23.10 but but the "hibernate" option did not appear in the shutdown menu. Installing the package polkitd-pkla fixed the issue: sudo apt install polkitd-pkla

It works now, thanks.

nosar77 commented 5 months ago

I know this applied primarily to ubuntu but for EndevourOS which is Arch Linux based, i downloaded polkit however, what does my .pkla need to be named?

TIA!

costantinoai commented 2 months ago

sudo systemctl hibernate worked fine on my ubuntu 23.10 but the "hibernate" option did not appear in the shutdown menu. Installing the package polkitd-pkla fixed the issue: sudo apt install polkitd-pkla

worked for me as well on ubuntu 23.10. Thanks!

All3xJ commented 2 months ago

For Ubuntu 24.04, installing polkitd-pkla package and then following this comment fixed :)

TheSofter commented 2 months ago

For Ubuntu 24.04, installing polkitd-pkla package and then following this comment fixed :)

I've just upgraded my Ubuntu from version 23.10 to version 24.04. The "hibernate" option still doesn't appear in the shutdown menu despite these 2 actions :-(

I had to follow the "UPDATE for Ubuntu 24.04 with /swap.img file:" part of this : https://ubuntuhandbook.org/index.php/2021/08/enable-hibernate-ubuntu-21-10/

In my case: To get “MAJ:MIN” for the root permission. In my case, it’s 259:2 lsblk Set the “MAJ:MIN” value to /sys/power/resume sudo sh -c "echo 259:2 > /sys/power/resume" sudo nano /etc/tmpfiles.d/hibernation_resume.conf Write the lines below

#    Path                   Mode UID  GID  Age Argument
w    /sys/power/resume       -    -    -    -   259:2

I've got the menu now, but my PC restarts immediately afterwards. I'll keep looking...