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
155 stars 56 forks source link

does not work in Ubuntu 18.04 #19

Closed PandaJim closed 6 years ago

PandaJim commented 6 years ago

Please update with Gnome 3.28 support. The hibernate button does not do the function, and it seems to power off Ubuntu 18.04

p91paul commented 6 years ago

Have you tried this? https://help.ubuntu.com/17.10/ubuntu-help/power-hibernate.html

basert commented 6 years ago

For me the button suddenly disappeared. The following comes up in syslog after opening the dropdown:

May 17 19:48:08 fgr-xps gnome-shell[2044]: JS ERROR: TypeError: childToShow is null#012_sync@resource:///org/gnome/shell/ui/status/system.js:70:13#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012Extension<._updateHibernate@/home/fabian/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:111:64#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012Extension<._updateHaveHibernate/<@/home/fabian/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:106:13#012Extension<._loginManagerCanHibernate/<@/home/fabian/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:38:25
May 17 19:48:08 fgr-xps gnome-shell[2044]: JS ERROR: TypeError: childToShow is null#012_sync@resource:///org/gnome/shell/ui/status/system.js:70:13#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012Extension<._updateHybridSleep@/home/fabian/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:122:68#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012Extension<._updateHaveHybridSleep/<@/home/fabian/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:117:13#012Extension<._loginManagerCanHybridSleep/<@/home/fabian/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:80:38
May 17 19:48:09 fgr-xps gnome-shell[2044]: JS ERROR: TypeError: childToShow is null#012_sync@resource:///org/gnome/shell/ui/status/system.js:70:13#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_onCapturedEvent@resource:///org/gnome/shell/ui/status/system.js:97:17#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
p91paul commented 6 years ago

This happens when hibernation is disabled at the system level. Can you hibernate through other methods (e.g. systemctl hibernate)? Have you tried following the instructions in the ubuntu documentation (or equivalent documentation to enable hibernation on your linux distribution)?

p91paul commented 6 years ago

See https://askubuntu.com/questions/1034185/ubuntu-18-04-cant-resume-after-hibernate/1064114#1064114

VSMent commented 4 years ago

Have you tried this? https://help.ubuntu.com/17.10/ubuntu-help/power-hibernate.html

Link is no longer available (404) How to use extension with 3.28.* on Ubuntu 18.04?

VSMent commented 4 years ago

Version 3.32 seems to be working on 3.28