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

Button not showing in Ubuntu 16.10 and above #14

Closed RicardoEPRodrigues closed 6 years ago

RicardoEPRodrigues commented 7 years ago

I have installed the extension but no button shows up in the menu.

Going through lg the extension emitted no errors.

RicardoEPRodrigues commented 7 years ago

After running journalctl I found that the extension is throwing some errors:

JS ERROR: TypeError: childToShow is null
AltSwitcher<._sync@resource:///org/gnome/shell/ui/status/system.js:84:13
wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
Extension<._updateHibernate@/home/ricardo/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:111:64
wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
Extension<._updateHaveHibernate/<@/home/ricardo/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:106:13
Extension<._loginManagerCanHibernate/<@/home/ricardo/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:38:25
p91paul commented 7 years ago

sorry, I had a difficult May. Ubuntu 16.10 should have gnome-shell 3.20, which is strange since I used this extension successfully on 3.20. Have you installed a later version (3.24) from some external repository by any chance?

RicardoEPRodrigues commented 7 years ago

I'm currently using Ubuntu GNOME 17.04 that ships with shell 3.24, but the button didn't show up in 3.20 either.

c7hm4r commented 6 years ago

I could enable to show the hibernation button in Ubuntu 17.10 following the official documentation. However, I could not get the resuming to work, which is rather a problem with Ubuntu or my hardware than with this extension. In Fedora it all works ;)

p91paul commented 6 years ago

Looking at the error after @c7hm4r comment, it makes sense: if hibernation is disabled in login manager, the button won't show up (and print that error on the system log). If this issue persists after following the documentation linked above, I will reopen this.