Hi Pelle, I ran the command you gave me when VLC was running. It did not stop screensaver. Here is output: darkduck@darkduck-laptop:~$ sh -x /usr/bin/xdg-screensaver suspend $(xwininfo -root|grep "Window id:"| cut -d' ' -f4) + check_common_commands suspend 0x104 + [ 2 -gt 0 ] + parm=suspend + shift + [ 1 -gt 0 ] + parm=0x104 + shift + [ 0 -gt 0 ] + [ -z ] + unset XDG_UTILS_DEBUG_LEVEL + [ 0 -lt 1 ] + xdg_redirect_output= > /dev/null 2> /dev/null + mv -T ... ... + grep \.\.\. + DEBUG 1 mv -T available + [ -z ] + return 0 + MV=mv -T + echo :0.0 + sed s/:/-/g + screensaver_file=/tmp/xdg-screensaver-darkduck--0.0 + which lockfile + lockfile_command=/usr/bin/lockfile + which xprop + XPROP=/usr/bin/xprop + [ xsuspend != x ] + action= + window_id= + action=suspend + shift + [ -z 0x104 ] + window_id=0x104 + check_window_id + [ -z /usr/bin/xprop ] + DEBUG 2 Running /usr/bin/xprop -id 0x104 + [ -z ] + return 0 + /usr/bin/xprop -id 0x104 + DEBUG 3 Window 0x104 exists + [ -z ] + return 0 + detectDE + [ x = xtrue ] + [ xthis-is-deprecated != x ] + DE=gnome + xscreensaver-command -version + grep XScreenSaver + [ suspend = resume ] + perform_action suspend + result=1 + [ suspend = resume ] + [ suspend = reset ] + screensaver_gnome suspend + screensaver_suspend_loop gnome-screensaver-command --poke + lockfile + [ -n /usr/bin/lockfile ] + /usr/bin/lockfile -1 -l 10 -s 3 /tmp/xdg-screensaver-darkduck--0.0.lock + test = set + TMPDIR=/tmp + mktemp /tmp/tmp.XXXXXXXXXX + tmpfile=/tmp/tmp.Rd94CxCJjW + cat /tmp/xdg-screensaver-darkduck--0.0 + IFS_save=
+ IFS=: + read wid pid + ps -p 2214 + grep xprop + echo 0x03800281:2214 + read wid pid + IFS= + [ -s /tmp/tmp.Rd94CxCJjW ] + mv -T /tmp/tmp.Rd94CxCJjW /tmp/xdg-screensaver-darkduck--0.0 + unlockfile + rm -f /tmp/xdg-screensaver-darkduck--0.0.lock + return + result=0 + [ suspend = suspend ] + grep DPMS is Enabled + xset -q + [ suspend = suspend ] + [ 0 -eq 0 ] + exit_success + [ 0 -gt 0 ] + exit 0 darkduck@darkduck-laptop:~$ Best regards, Dmitry On 16 October 2011 17:24, Per Olofsson <[email protected]> wrote: > Hi Dmitry, > > Sorry for now answering earlier, I have been swamped with work. > > 2011-10-02 00:55, Dmitry K skrev: > > > > I am not 100% sure about xdg-screensaver and VLC. But I tried to discuss > > it at VLC forum http://forum.videolan.org/viewtopic.php?f=13&t=94579 > > <http://forum.videolan.org/viewtopic.php?f=13&t=94579> . > > You are right, VLC uses xdg-screensaver. > > > I have Mageia installed on same laptop. VLC works fine there in same > > configuration. > > The differences between Mageia and Debian installations are: > > -VLC is 1.1.11 in Mageia and 1.1.3 in Debian. Not a big difference I > think. > > -Command > > > > xdg-screensaver status > > > > returns "enabled" in Debian vs "disabled" in Mageia in freshly booted > > system. > > So then either Mageia doesn't have a screensaver by default, > or something else is wrong. > > > Now the question: why is it enabled in Debian and disabled in Mageia? I > > have not found a way to disable it in Debian for a more equal test. > > The command to disable it is > > xdg-screensaver suspend <window-id> > > where <window-id> is an X11 window id for a window to track. > This is what VLC is supposed to do. > > Could you please try running > > sh -x /usr/bin/xdg-screensaver suspend $(xwininfo -root|grep "Window id:"| > cut -d' ' -f4) > > and send me the output? > > Also check if it stops the screensaver from running. > > You can enable the screensaver again with > > xdg-screensaver resume $(xwininfo -root|grep "Window id:"| cut -d' ' -f4) > > -- > Pelle >

