Package: acpi-support
Version: 0.103-5
Severity: normal

Maybe related to #442867

Package file /usr/share/acpi-support/screenblank called from /etc/acpi/lid.sh 
when lid is closed makes a direct call to DCOP forcing screen blanking and 
locking:

line 13: dcop --session "$session" --all-users kdesktop KScreensaverIface lock

Since lid use to be a laptop feature, and laptops use to be used (mainly) by 
just one person, it is desirable that user can configurate that behavior. 
Actually, even if all 
logged-in system users have their KDEs configured to do nothing when lid is 
closed, sessions are locked, when it is not desired behaviour.

e.g. I use to close lid a moment just to write something on a paper piece, and 
I must rewrite my password on screen locker afterwards.

Solution suggestion: change the unconditional call to DCOP to something 
user-configurable

Suggested (_very_ ugly hack) patch:

--- /usr/share/acpi-support/screenblank 2008-05-07 19:39:22.000000000 +0200
+++ /usr/share/acpi-support/screenblank.orig    2008-05-07 19:36:39.000000000 
+0200
@@ -6,7 +6,6 @@
 fi

 if [ `pidof dcopserver` ]; then
-if [ ! -e /etc/DoNotLockOnLidClosing ] ; then
        avail_sessions=`dcop --all-users --list-sessions | grep '.DCOP.*__0'`
        # send the lock command to all sessions
                for session in $avail_sessions; do
@@ -15,7 +14,6 @@
     done
     return 0
 fi
-fi

 xset dpms force off
 if [ x$RADEON_LIGHT = xtrue ]; then

Hope it helps

Noel Torres
Envite

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

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages acpi-support depends on:
ii  acpi-support-base             0.103-5    scripts for handling base ACPI eve
ii  acpid                         1.0.4-7.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.5     attempt to detect a laptop
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  lsb-base                      3.2-11     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  radeontool                    1.5-5      utility to control ATI Radeon back
ii  toshset                       1.73-1     Access much of the Toshiba laptop 
ii  vbetool                       1.0-1.1    run real-mode video BIOS code to a
ii  x11-xserver-utils             7.3+2      X server utilities

acpi-support recommends no packages.

-- no debconf information



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

Reply via email to