Discussion:
xdg & screensavers
Norman Goldstein
2015-11-02 16:56:38 UTC
Permalink
XDG is installed on my fedora22 x86-64 desktop. I was unable to
reliably run a 3rd party screen saver until I wrote a utility to
automatically suspend the xdg screens saver. Basically, the util
1. Creates an X window
2. Calls xdg-screensaver suspend ID (ID = X ID of the X window)
3. Hangs around until it is asked to exit (usually till system shutdown).

This seems like overkill to suppress the xdg screen saver functionality.
Am I missing something on how XDG may be configured?

Thank you.
Michal Suchanek
2015-11-02 19:19:53 UTC
Permalink
XDG is installed on my fedora22 x86-64 desktop. I was unable to reliably
run a 3rd party screen saver until I wrote a utility to automatically
suspend the xdg screens saver. Basically, the util
1. Creates an X window
2. Calls xdg-screensaver suspend ID (ID = X ID of the X window)
3. Hangs around until it is asked to exit (usually till system shutdown).
This seems like overkill to suppress the xdg screen saver functionality. Am
I missing something on how XDG may be configured?
Why don't you register the 3rd party screensaver you want to run as
screensaver on your system?

Thanks

Michal
Per Olofsson
2015-11-03 19:43:45 UTC
Permalink
Hi,
Post by Norman Goldstein
XDG is installed on my fedora22 x86-64 desktop. I was unable to
reliably run a 3rd party screen saver until I wrote a utility to
automatically suspend the xdg screens saver. Basically, the util
1. Creates an X window
2. Calls xdg-screensaver suspend ID (ID = X ID of the X window)
3. Hangs around until it is asked to exit (usually till system shutdown).
This seems like overkill to suppress the xdg screen saver functionality.
Am I missing something on how XDG may be configured?
There is no "XDG screensaver". xdg-screensaver is just an interface for
whatever screensaver the desktop environment uses; e.g.,
gnome-screensaver, xscreensaver, and so on.
--
Pelle
--
Pelle
Norman Goldstein
2015-11-03 22:53:55 UTC
Permalink
It seems, then, that XDG is able to suspend the gnome screen
saver/locker, but gnome does not expose this ability in gnome's public
interface. I should be knocking on gnome's door, ... sound right?
Post by Per Olofsson
Hi,
Post by Norman Goldstein
XDG is installed on my fedora22 x86-64 desktop. I was unable to
reliably run a 3rd party screen saver until I wrote a utility to
automatically suspend the xdg screens saver. Basically, the util
1. Creates an X window
2. Calls xdg-screensaver suspend ID (ID = X ID of the X window)
3. Hangs around until it is asked to exit (usually till system shutdown).
This seems like overkill to suppress the xdg screen saver functionality.
Am I missing something on how XDG may be configured?
There is no "XDG screensaver". xdg-screensaver is just an interface for
whatever screensaver the desktop environment uses; e.g.,
gnome-screensaver, xscreensaver, and so on.
Reuben Thomas
2015-11-03 23:02:52 UTC
Permalink
On 3 November 2015 at 22:53, Norman Goldstein <***@telus.net> wrote:

It seems, then, that XDG is able to suspend the gnome screen saver/locker,
but gnome does not expose this ability in gnome's public interface. I
should be knocking on gnome's door, ... sound right?
​An alternative is to use Caffeine, which adds this functionality, based on
xdg-screensaver. (Currently it doesn't work for all DEs supported by
xdg-screensaver, but it does work in particular for GNOME!)

https://launchpad.net/caffeine​
Norman Goldstein
2015-11-04 18:32:59 UTC
Permalink
Post by Norman Goldstein
It seems, then, that XDG is able to suspend the gnome screen
saver/locker, but gnome does not expose this ability in gnome's
public interface. I should be knocking on gnome's door, ... sound
right?
​An alternative is to use Caffeine, which adds this functionality,
based on xdg-screensaver. (Currently it doesn't work for all DEs
supported by xdg-screensaver, but it does work in particular for GNOME!)
https://launchpad.net/caffeine​
Thanks for the pointer to caffeine. This works for me -- no need to
install yet a new daemon to do this.

Florian Müllner
2015-11-03 23:06:27 UTC
Permalink
Post by Reuben Thomas
It seems, then, that XDG is able to suspend the gnome screen saver/locker,
but gnome does not expose this ability in gnome's public interface.
I'm not sure what you mean by "public interface", but xdg-screensaver
calls a DBus method on org.freedesktop.ScreenSaver that GNOME
implements. Though I'm not sure why you want to use some script/method
instead of turning off Settings->Privacy->Screen Lock->Automatic
Screen Lock ...
(Also if you do want to use a script, "gnome-session-inhibit
--inhibit-only" allows you to inhibit the screen saver without
specifying a command/window ID)
Norman Goldstein
2015-11-04 05:02:37 UTC
Permalink
Post by Florian Müllner
Post by Reuben Thomas
It seems, then, that XDG is able to suspend the gnome screen saver/locker,
but gnome does not expose this ability in gnome's public interface.
I'm not sure what you mean by "public interface", but xdg-screensaver
calls a DBus method on org.freedesktop.ScreenSaver that GNOME
implements. Though I'm not sure why you want to use some script/method
instead of turning off Settings->Privacy->Screen Lock->Automatic
Screen Lock ...
When I set Automatic Screen Lock to OFF,
-- "gnome lock" kicks in when xscreensaver is set to a 11 minute wait
-- xscreensaver kicks in when xscreensaver is set to a 1 minute wait

so there seems to persist a race between xscreensaver and the gnome lock
screen.
I will file a bug report.
Post by Florian Müllner
(Also if you do want to use a script, "gnome-session-inhibit
--inhibit-only" allows you to inhibit the screen saver without
specifying a command/window ID)
This works for me, and is not something I was previously aware of.
Thanks for that. To automate this, I could put this command into
.config/autostart .

Apparently, there are many different ways to approach the screen saver
(and probably all the gnome capabilities).
Loading...