Package: acpi-support
Version: 0.109-1
Severity: minor
Tags: patch

hallo,

locking the screen with the running xscreensaver on lid close does not work
here, the shell function getXconsole does not find my x-server.
(it is running just as /usr/bin/X, not with any commandline parameters,
so the greps there never match)

but /etc/acpi/lid.sh already iterates over /tmp/.X11-unix - which would
be the wrong thing to do if using getXconsole.

just using the function getXuser like /etc/acpi/sleep.sh fixes it for me.

(I am not using any kde or gnome powersaving functions, my laptop runs a
windowmaker environment)


--- lid.sh~     2008-05-16 20:53:23.000000000 +0200
+++ lid.sh      2008-05-16 20:53:23.000000000 +0200
@@ -15,7 +15,7 @@
 then
     for x in /tmp/.X11-unix/*; do
        displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
-       getXconsole;
+       getXuser;
        if [ x"$XAUTHORITY" != x"" ]; then
            export DISPLAY=":$displaynum"           
            . /usr/share/acpi-support/screenblank
@@ -27,7 +27,7 @@
     fi
     for x in /tmp/.X11-unix/*; do
        displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
-       getXconsole;
+       getXuser;
        if [ x"$XAUTHORITY" != x"" ]; then
            export DISPLAY=":$displaynum"
            grep -q off-line /proc/acpi/ac_adapter/*/state


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-sdinet37-aurora (SMP w/2 CPU cores)
Locale: LANG=en_US.ISO-8859-1, LC_CTYPE=de_DE.ISO-8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages acpi-support depends on:
ii  acpi-support-base             0.109-1    scripts for handling base ACPI eve
ii  acpid                         1.0.6-5.1  Utilities for using ACPI power man
ii  dmidecode                     2.9-1      Dump Desktop Management Interface 
ii  finger                        0.17-12    user information lookup program
ii  hdparm                        8.6-1      tune hard disk parameters for high
ii  laptop-detect                 0.13.6     attempt to detect a laptop
ii  libc6                         2.7-11     GNU C Library: Shared libraries
ii  lsb-base                      3.2-12     Linux Standard Base 3.2 init scrip
ii  nvclock                       0.8b3-1    Allows you to overclock your nVidi
ii  powermgmt-base                1.30       Common utils and configs for power
ii  toshset                       1.73-2     Access much of the Toshiba laptop 
ii  vbetool                       1.0-3      run real-mode video BIOS code to a
ii  x11-xserver-utils             7.3+2      X server utilities

Versions of packages acpi-support recommends:
ii  radeontool                    1.5-5      utility to control ATI Radeon back

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to