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

Doesn't actually inhibit the screensaver in 3.6 #4

Closed
Nevon opened this issue Nov 1, 2012 · 11 comments
Closed

Doesn't actually inhibit the screensaver in 3.6 #4

Nevon opened this issue Nov 1, 2012 · 11 comments

Comments

@Nevon
Copy link

Nevon commented Nov 1, 2012

As the title implies, the screensaver isn't actually inhibited when Caffeine is active. Perhaps take a look at how lavi741 does it: https://github.com/lavi741/gnome-shell-extension-inhibit-suspend

@eonpatapon
Copy link
Owner

I'm using the same method as this extension so if it works with lavi's extension I guess it should work with mine

@Nevon
Copy link
Author

Nevon commented Nov 1, 2012

Sorry, I didn't mean to imply that it works with that extension. I haven't tested it, I just figured it might be worth looking at how other people have solved the problem.

@eonpatapon
Copy link
Owner

Ok, but actually it works for me on 3.4 or 3.6

@Nevon
Copy link
Author

Nevon commented Nov 1, 2012

That's incredibly strange. I'm on 3.6, activated Caffeine, started up a full screen YouTube video and ten minutes later, the screensaver came on.

Is there any kind of debugging I can do to help?

@eonpatapon
Copy link
Owner

Enable caffeine, then run:

eon@potiron ~> gdbus call --session --dest org.gnome.SessionManager --object-path /org/gnome/SessionManager --method org.gnome.SessionManager.GetInhibitors([objectpath '/org/gnome/SessionManager/Inhibitor9'],)

Get the inhibitor dbus path (here it is: /org/gnome/SessionManager/Inhibitor9) then run:

gdbus call --session --dest org.gnome.SessionManager --object-path /org/gnome/SessionManager/Inhibitor9 --method org.gnome.SessionManager.Inhibitor.GetReason
('Inhibit by Caffeine',)

If that works for you then the gnome-shell you are using might have a bug and ignore the inhibit dbus interface for some reason.

@Nevon
Copy link
Author

Nevon commented Nov 1, 2012

Yup. It says it's inhibited by Caffeine.

I'm specifically using Gnome-shell version 3.6.1 (the one that's in the Ubuntu 12.10 repos).

@vrubezhny
Copy link

It doesn't work for me too. Same Ubuntu 12.10/Gnome-Shell 3.6.1. But there is one more thing: Even if you configure System Settings->Brightness and Lock: to not to dim the screen and never turn the screen off, the screen still is turned off after some period of user inactivity.
So, it seems to be a problem of Gnome.

Anyway, thanks to the author for great extension. It works good for me in Ubuntu 12.04/Gnome-session 3.4.2.1

@Nevon
Copy link
Author

Nevon commented Nov 21, 2012

You may want to subscribe to the bug I created in Gnome's bugtracker. https://bugzilla.gnome.org/show_bug.cgi?id=687381

@eonpatapon
Copy link
Owner

You should report this @ the Ubuntu bugtracker, it's not a Gnome bug

@eonpatapon
Copy link
Owner

Closing this since this is not related to the extension itself

@eonpatapon
Copy link
Owner

Seems it was a gnome bug, if you have gnome-settings-daemon 3.6.2 it should work

eonpatapon pushed a commit that referenced this issue Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants