[Debian-eeepc-devel] Bug#474531: eeepc-acpi-scripts: Provide a way to disable suspend

Ben Armstrong synrg at sanctuary.nslug.ns.ca
Sun Apr 6 11:48:17 UTC 2008


Package: eeepc-acpi-scripts
Version: 1.0.2
Severity: wishlist

When a user boots from SD or USB key, suspending the Eee without
a kernel that has USB_PERSIST=y will corrupt files.  (See:
http://bugs.debian.org/468213).  Please provide a way to
disable suspend automatically if a filesystem is mounted
on USB and such a kernel is in use.

When we discussed this on irc we proposed this might be done
with a config variable in /etc/default/eeepc-acpi-scripts
to specify the action to take, e.g.

USB_FS_NONPERSISTENT_SUSPEND_ACTION=shutdown

with possible actions being:

none = no action (simply disables suspend)
blank = blank the screen
shutdown
suspend (dangerous! any files open to write will be corrupted)

The rationale for having a separate variable for this is
once a kernel is installed that has USB_PERSIST=y, the
normal suspend behaviour will automatically be restored.

This is distinct from the need to specify what action to
take when the user presses the power button, puts the lid
down or presses Fn-F1.  It could be argued that in this
case just having the user edit settings in /etc/acpi
is appropriate, or if that's not acceptable, some other
/etc/default variables should be used.

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

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages eeepc-acpi-scripts depends on:
ii  acpi-support-base             0.103-5    scripts for handling base ACPI eve
ii  acpid                         1.0.6-5.1  Utilities for using ACPI power man
ii  alsa-utils                    1.0.16-1   ALSA utilities
ii  pm-utils                      0.99.2-3   utilities and scripts for power ma

eeepc-acpi-scripts recommends no packages.

-- no debconf information





More information about the Debian-eeepc-devel mailing list