Package: xscreensaver
Version: 4.21-2
Severity: normal
Tags: patch

Hi,

xscreensaver turns off the funky graphics if it detects that the monitor
is off. Unfortunately, this checking happens not often enough.
Currently, it happens after 0.6*cycle time, so if you cycle your demo
every 20min, it might take up to 12 minutes to detect that the monitor
is turned off. I have a laptop, and when running on battery, I turn off
the monitor (by closing the lid) to save power. I expect xscreensaver to
detect this quicker.

The attaced patch fixed the checking cycle time at 30s (which was the
former minimum).

Thanks for including it, if possible.

Greetings,
Joachim

PS: This might fix bug #286664

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10.otto
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages xscreensaver depends on:
ii  libatk1.0-0          1.8.0-4             The ATK accessibility toolkit
ii  libc6                2.3.2.ds1-20        GNU C Library: Shared libraries an
ii  libglade2-0          1:2.4.2-2           library to load .glade files at ru
ii  libglib2.0-0         2.6.3-1             The GLib library of C routines
ii  libgtk2.0-0          2.6.2-4             The GTK+ graphical user interface 
ii  libice6              4.3.0.dfsg.1-12.0.1 Inter-Client Exchange library
ii  libjpeg62            6b-10               The Independent JPEG Group's JPEG 
ii  libpam0g             0.76-22             Pluggable Authentication Modules l
ii  libpango1.0-0        1.8.1-1             Layout and rendering of internatio
ii  libsm6               4.3.0.dfsg.1-12.0.1 X Window System Session Management
ii  libx11-6             4.3.0.dfsg.1-12.0.1 X Window System protocol client li
ii  libxext6             4.3.0.dfsg.1-12.0.1 X Window System miscellaneous exte
ii  libxml2              2.6.16-6            GNOME XML library
ii  libxmu6              4.3.0.dfsg.1-12.0.1 X Window System miscellaneous util
ii  libxpm4              4.3.0.dfsg.1-12.0.1 X pixmap library
ii  libxrandr2           4.3.0.dfsg.1-12.0.1 X Window System Resize, Rotate and
ii  libxrender1          0.8.3-7             X Rendering Extension client libra
ii  libxt6               4.3.0.dfsg.1-12.0.1 X Toolkit Intrinsics
ii  xlibs                4.3.0.dfsg.1-12     X Keyboard Extension (XKB) configu
ii  zlib1g               1:1.2.2-4           compression library - runtime

-- no debconf information
1592,1594c1592,1598
<   p->watchdog_timeout = p->cycle * 0.6;
<   if (p->watchdog_timeout < 30000) p->watchdog_timeout = 30000;	  /* 30 secs */
<   if (p->watchdog_timeout > 3600000) p->watchdog_timeout = 3600000; /*  1 hr */
---
>   /* Watchdog timer set to 30s, anything else is too slow to reacte a
>    * appropriately on monitor-turn-offs on barrery running laptops */
>   p->watchdog_timeout = 30000; /* 30 secs */
>   // oritinal code:
>   //  p->watchdog_timeout = p->cycle * 0.6;
>   //  if (p->watchdog_timeout < 30000) p->watchdog_timeout = 30000;	  /* 30 secs */
>   //  if (p->watchdog_timeout > 3600000) p->watchdog_timeout = 3600000; /*  1 hr */

Reply via email to