xdg-screensaver resume sometimes hangs. Unfortunately, this appears to be somewhat random in re-occurance, so I can't say exactly how to reproduce. It seems to be tied to doing suspend/resume in a short period of time. (Note that a 'sleep 1' call in between doesn't always help.) In the following example the command shown was repeted 3 times with no changes. As quickly as the first two ended, I manually re-ran it. As I write this, the third occurance has not returned. In every case 'ps' reveals that it is the resume command that is hanging. $ xdg-screensaver suspend $WINDOWID; echo $?; xdg-screensaver status; xdg-screensaver resume $WINDOWID; echo $?; xdg-screensaver status 0 disabled 0 enabled $ xdg-screensaver suspend $WINDOWID; echo $?; xdg-screensaver status; xdg-screensaver resume $WINDOWID; echo $?; xdg-screensaver status 0 enabled 0 enabled $ xdg-screensaver suspend $WINDOWID; echo $?; xdg-screensaver status; xdg-screensaver resume $WINDOWID; echo $?; xdg-screensaver status 0 enabled Terminated 143 enabled
[tw@linux:~/portland/xdg-utils/tests] $ include/system_info distribution: suse 10.0 kde: 3.4.2 gnome: 2.12.0 xfce: not present (didn't find xfce4-session) running: gnome user: normal uname: Linux linux 2.6.13-15.10-default #1 Fri May 12 16:27:12 UTC 2006 i686 i686 i386 GNU/Linux xset data: ------------------------------------- Keyboard Control: auto repeat: on key click percent: 0 LED mask: 00000000 auto repeat delay: 500 repeat rate: 30 auto repeating keys: 00ffffffdffffbbf fadfffdfffdfe5ef ffffffffffffffff ffffffffffffffff bell percent: 50 bell pitch: 400 bell duration: 100 Pointer Control: acceleration: 2/1 threshold: 4 Screen Saver: prefer blanking: yes allow exposures: yes timeout: 0 cycle: 0 Colors: default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215 Font Path: /usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/URW,/usr/X11R6/lib/X11/fonts/truetype,/usr/X11R6/lib/X11/fonts/uni:unscaled,/opt/kde3/share/fonts Bug Mode: compatibility mode is disabled DPMS (Energy Star): Standby: 0 Suspend: 0 Off: 0 DPMS is Disabled File paths: Config file: /etc/X11/xorg.conf Modules path: /usr/X11R6/lib/modules Log file: /var/log/Xorg.0.log -------------------------------------
Adding sleep calls (as now done in tests) helps but does not solve the problem. To reproduce this bug, do $ cd xdg-utils/tests $ while [ 1 ] ; do ./testrun xdg-screensaver/t.0*; done and go have a coffee. When you get back and find that test_screensave_suspend_basic or test_screensave_resume_basic is waiting for several (>5) seconds, do $ ps -ef | grep xdg and look for xdg-screensaver resume.
This was presumably because of some race condition in the startup of gnome- screensaver (gnome-screensaver bug?) xdg-screensaver no longer exits/starts gnome-screensaver and as such this problem is assumed to have been fixed for beta 3.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.