Package: laptop-mode-tools
Version: 1.34-1
Severity: wishlist
Tags: patch

Hello,

I think there is no need to touch the brightness settings when acting on lid
events. At this time after opening the lid the brightness is reset to the one
defined in the configuration file and not to the one set before the lid was
closed. These modifications will solve this.

Call laptop_mode with a second parameter in /etc/acpi/actions/lm_lid.sh:

6c6
< /usr/sbin/laptop_mode auto
---
> /usr/sbin/laptop_mode auto lid

and take use of it in /usr/sbin/laptop_mode:

1525,1526c1525,1526
< # Control LCD brightness
< if [ $CONTROL_BRIGHTNESS -eq 1 ] ; then
---
> # Control LCD brightness but only if the lid is not involved
> if [ $CONTROL_BRIGHTNESS -eq 1 -a "$2" != "lid" ] ; then

Dirk

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

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

Versions of packages laptop-mode-tools depends on:
ii  lsb-base                      3.1-24     Linux Standard Base 3.1 init scrip

Versions of packages laptop-mode-tools recommends:
ii  acpid                         1.0.4-7.1  Utilities for using ACPI power man
ii  hdparm                        7.7-1      tune hard disk parameters for high
ii  sdparm                        1.01-1     Output and modify SCSI device para

-- no debconf information

-- 
Beschuldigt mich nicht des Antisemantismus. 
Einige meiner besten Freunde sind Wörter.


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

Reply via email to