DPMS and automatic sleep inhibit API

Rémi Denis-Courmont remi at remlab.net
Sat Feb 20 00:43:46 PST 2010


Le samedi 20 février 2010 03:27:19 Aaron J. Seigo, vous avez écrit :
> On February 19, 2010, Rémi Denis-Courmont wrote:
> > This is in contrast with xdg-utils/xdg-screensaver, which does take a XID
> > parameter for suspend and resume. In theory. In practice, xdg-screensaver
> > seems broken on KDE4 and I guess on GNOME too. I guess it fails to keep
> > its DBus connection open (qdbus and dbus-snend can't do that), such that
> > the back-end discards the inhibit requests almost immediately.
> 
> do you have use cases (e.g. code) that we can test with?

The current development head of VLC media player exhibits the problem.
See also (last comment):
http://bugs.freedesktop.org/show_bug.cgi?id=26085

But VLC is not the easiest beast to build. This illustrates the problenm from 
bash:
# xdg-screensaver suspend $(xdpyinfo|sed -n -e 's,root window id:,,p')

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis


More information about the xdg mailing list