** Description changed:

  Binary package hint: vlc
  
  In karmic , while playing videos , VLC does not inhibit screensaver.
  
  This is a regression from the behavior in jaunty.
  
  ProblemType: Bug
  Architecture: i386
  CheckboxSubmission: 417990aadff2335cd485c57bb06c8968
  CheckboxSystem: 5484a8dd99f006173bd2ac53fa4837c2
  Date: Sun Sep 13 19:58:49 2009
  DistroRelease: Ubuntu 9.10
  Package: vlc 1.0.1-2ubuntu1
  ProcEnviron:
-  LANGUAGE=en_US.UTF-8
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
+  LANGUAGE=en_US.UTF-8
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.31-10.32-generic
  SourcePackage: vlc
  Uname: Linux 2.6.31-10-generic i686
+ 
+ **************************
+ **** SRU Justification ****
+ **************************
+ 
+ ** Impact of bug **
+ The legacy inhibit API was removed from gnome-screensaver, as the 
gnome-session inhibit API is the preferred way to inhibit the screensaver. The 
legacy API required applications to "poll" the screensaver regularly to 
simulate user activity. The new API requires applications to register 
inhibitors, which will exist until they are removed, or the application exits.
+ 
+ xdg-screensaver is used by a lot of desktop-neutral applications
+ including games and VLC, and this wraps the legacy gnome-screensaver API
+ in GNOME. This means that screensaver inhibiting is currently broken in
+ GNOME for any application which hasn't been ported to the new inhibit
+ API.
+ 
+ ** Description of changes **
+ The existing legacy API still exists in gnome-screensaver, but is currently 
just a stub. I've added code to this which resets the IDLETIME counter, by 
simulating fake keypresses using XTEST. The code is already used in 
gnome-session and totem, and this method of resetting IDLETIME is also used in 
other applications.
+ 
+ Resetting IDLETIME will prevent gnome-session from setting the session
+ idle (which prevents the screensaver from activating), and will also
+ prevent gnome-power-manager from dimming the display.
+ 
+ ** Regression potential **
+ Minimal. The additional functionality is quite self-contained, and the 
existing interface doesn't work at all anyway. The chosen method of resetting 
IDLETIME is already used.
+ 
+ ** TEST CASE **
+  Using the following versions of gnome-screensaver in turn, perform the steps 
detailed below
+ 
+ - 2.28.0-0ubuntu3.1 (karmic-security)
+ - 2.28.0-0ubuntu3.2 (karmic-proposed)
+ 
+ 1) Open gnome-screensaver-preferences, set the timeout to 1 minute and check 
"Activate screensaver when computer is idle"
+ 2) Create a script in your home folder called "gss-test.sh", and containing 
the following:
+ 
+    #!/bin/sh
+ 
+    while true; do
+        gnome-screensaver-command --poke
+        sleep 30
+    done
+ 
+ 3) Run the script (sh ~/gss-test.sh), and wait
+ 
+ With version 2.28.0-0ubuntu3.1 of gnome-screesaver, the screensaver will 
activate after 1 minute.
+ With version 2.28.0-0ubuntu3.2, the screensaver will not activate as long as 
the script is still running.
+ 
+ 4) Exit the script by pressing CTRL+C in the terminal

-- 
gnome-screensaver-command --poke no longer inhibits screensaver
https://bugs.launchpad.net/bugs/428884
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to