[vlc-devel] [PATCH] Add dpms module to switch it off while	playing
    Olivier Brunel 
    jjk at jjacky.com
       
    Fri Oct 25 21:01:06 CEST 2013
    
    
  
On 10/25/13 20:51, Rémi Denis-Courmont wrote:
>    Hello,
> 
> The DPMS extension of X11 is meant for the desktop power management component 
> to use, not for normal applications. Changing DPMS settings via xset, Xlib or 
> XCB would clobber the desktop settings, which is obviously *not* acceptable.
> 
> Normally, the desktop should automatically disarm and rearm DPMS when the 
> screensaver is inhibited and uninhibited respectively. If it does not, then it 
> is a the bug in the desktop environment. There are no ways to fix this problem 
> in VLC for lack of a proper API.
Well, as I said the right thing to do would have been to call
xdg-screensaver, but for that I would have needed to send it the window
ID, which I don't know how to get from VLC.
And since (in my specific setup) that call would pretty much call xset,
I did that directly. If the window ID can be obtained, calling
xdg-screensaver suspend/resume would be a better solution of course.
-j
    
    
More information about the vlc-devel
mailing list