Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents autosuspend even when turned off #222

Open
DraconicNEO opened this issue Jan 26, 2023 · 8 comments
Open

Prevents autosuspend even when turned off #222

DraconicNEO opened this issue Jan 26, 2023 · 8 comments
Labels

Comments

@DraconicNEO
Copy link

Hi I have noticed an issue with this extension where it prevents autosuspend from kicking even though I turned off from the top bar which obviously isn't supposed to happen. Autosuspend is only suposed to be deactivated when caffeine is turned on.
The issue is only fixed either by closing the lid and forcing sleep (though doesn't always fix it, auto suspend sometimes stays broken) or by rebooting the system.

I've encountered this issue on Both Ubuntu 22.04 LTS (Jammy) and Pop_OS 22.04 (what I'm currently using).

Here is my current system information in case that helps.

OS: Pop!_OS 22.04 LTS x86_64 
Device: Oryx Pro oryp5 
Kernel: 6.0.12-76060006-generic 
Packages: 2763 (dpkg), 55 (flatpak) 
Shell: bash 5.1.16 
Resolution: 1920x1080 
DE: GNOME 42.3.1 
Memory: 32GB
@ludvigng
Copy link

ludvigng commented Feb 8, 2023

Same here, even disabling the extension doesn't restore it.

@qquz
Copy link

qquz commented Feb 24, 2023

same, it looks like the extensions looses control over its functionality

@Pobega
Copy link

Pobega commented Mar 10, 2023

Same issue here.

Unsure if it's related but I can't suspend manually either, something is inhibiting it.

[pobega@thelio ~]$ systemctl suspend
Operation inhibited by "pobega" (PID 1911 "gnome-session-b", user pobega), reason is "user session inhibited".
Please retry operation after closing inhibitors and logging out other users.
Alternatively, ignore inhibitors and users with 'systemctl suspend -i'.

@resiehnnes
Copy link

I have the same problem with this extension, it does prevent my laptop to go into suspend after I toggle it off.

Fedora 38
Gnome 44.5
Wayland
AMD Ryzen 7 4700U

@pakaoraki
Copy link
Collaborator

pakaoraki commented Oct 9, 2023

Thanks for reporting.
I wasn't able to experiment this bug: can you reproduce this issue ? Or is it just happening randomly ?

Can you use this commands to list the current inhibitors when the problem occurs and share the result please:

systemd-inhibit --list

and

for inhibitor in $(dbus-send --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.GetInhibitors | grep object | grep -o '".*"' | tr -d '"'); do dbus-send --print-reply --dest=org.gnome.SessionManager $inhibitor org.gnome.SessionManager.Inhibitor.GetAppId && dbus-send --print-reply --dest=org.gnome.SessionManager $inhibitor org.gnome.SessionManager.Inhibitor.GetReason | grep string; done

@resiehnnes
Copy link

@pakaoraki , thank you for your reply. It is indeed a random problem, so I will get back with the feedback as soon as I encounter it.

@johnaaronrose
Copy link

With Ubuntu 22.04 & Gnome Shell 42.9, my Desktop Mini Ryzen CPU never has screensaver displaying. Here is requested CLI output:
john@Desktop:~$ systemd-inhibit --list
WHO UID USER PID COMM WHAT >
ModemManager 0 root 852 ModemManager sleep >
NetworkManager 0 root 978 NetworkManager sleep >
UPower 0 root 1543 upowerd sleep >
Unattended Upgrades Shutdown 0 root 994 unattended-upgr shutdown >
GNOME Shell 1000 john 2153 gnome-shell sleep >
john 1000 john 2317 gsd-media-keys handle-power-key:handle-suspend-key:ha>
john 1000 john 2317 gsd-media-keys sleep >
john 1000 john 2322 gsd-power sleep >

8 inhibitors listed.

john@Desktop:~$ for inhibitor in $(dbus-send --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.GetInhibitors | grep object | grep -o '".*"' | tr -d '"'); do dbus-send --print-reply --dest=org.gnome.SessionManager $inhibitor org.gnome.SessionManager.Inhibitor.GetAppId && dbus-send --print-reply --dest=org.gnome.SessionManager $inhibitor org.gnome.SessionManager.Inhibitor.GetReason | grep string; done

PS my other extensions work Ok.

@pakaoraki
Copy link
Collaborator

@johnaaronrose Unfortunately, we do not maintain version for Gnome 42. Caffeine have been partially rewritten since, and a new mechanism have been set to avoid this issue.
It is not suppose to happen with the latest version running Gnome 44/45: I keep this issue open because some people reported the same problem with Gnome 44.

You should update Ubuntu/Gnome shell to the latest version if you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants