[Pkg-acpi-devel] Bug#555607: acpi-support: should support default actions for lid close/open via config options

Patrick Schoenfeld schoenfeld at debian.org
Tue Nov 10 12:36:00 UTC 2009


Package: acpi-support
Version: 0.123-1
Severity: wishlist

Hi,

today I wanted to configure my laptop to suspend to RAM when
closing the lid. This is possible with the current way how configuration
is managed, but not very beauty. I'd suggest one of the following
changes:

1. Make /etc/acpi/lid.sh call /etc/acpi/lid_close.sh when closing the
lid and lid_open.sh on opening. Make these scripts call
/etc/acpi/local/lid_{open,close}.sh.{pre,post} accordingly.
The obvious advantage of this approach is, that the lid logic
(close/open?) doesn't need to be duplicated in the scripts.
Eventually lid.sh could also be replaced by two more specific scripts,
but I don't know if that would work.

2. Add configuration options to make it possible to configure common
actions via /etc/default/acpi-support. For example it would make sense
to have an option, lets say ACTION_ON_LID_CLOSE, which could be set to
either sleep (pm-suspend), or hibernate (pm-hibernate) or none (default:
as it is now). Maybe it would make sense to call it somehow different,
because with that name none is not really correct as screen locking
would still happen (unless configured otherwise).

3. My favorite choice: Combine 1 and 2, so that its possible to
configure common actions (sleep, suspend, maybe poweroff, too) and
additionaly defining specific scripts that are only handled on
open/close of the lid.

BTW. I'd be willing to realize either of these options, depending
on what the Debian ACPI Team and upstrem think is the best
choices.

Best Regards,
Patrick
-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (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 acpi-support depends on:
ii  acpi-support-base             0.123-1    scripts for handling base ACPI eve
ii  acpid                         1.0.10-2   Utilities for using ACPI power man
ii  dmidecode                     2.9-1.1    Dump Desktop Management Interface 
ii  finger                        0.17-13    user information lookup program
ii  hdparm                        9.15-1     tune hard disk parameters for high
ii  laptop-detect                 0.13.7     attempt to detect a laptop
ii  libc6                         2.10.1-5   GNU C Library: Shared libraries
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip
ii  pm-utils                      1.2.5-4    utilities and scripts for power ma
ii  powermgmt-base                1.30+nmu1  Common utils and configs for power
ii  x11-xserver-utils             7.4+2      X server utilities

Versions of packages acpi-support recommends:
ii  dbus                          1.2.16-2   simple interprocess messaging syst
ii  hal                           0.5.13-4   Hardware Abstraction Layer
ii  nvclock                       0.8b4-1    Allows you to overclock your nVidi
ii  radeontool                    1.5-5      utility to control ATI Radeon back
ii  toshset                       1.75-1     Access much of the Toshiba laptop 

Versions of packages acpi-support suggests:
pn  laptop-mode-tools             <none>     (no description available)

-- no debconf information





More information about the Pkg-acpi-devel mailing list