Public bug reported:

Binary package hint: acpi-support

(ubuntu 8.04)

/etc/acpi/power.sh is called when switching between battery and AC. It
then includes the scripts in /etc/acpi/battery.d and /etc/acpi/ac.d .

After this it conditionally sets the laptop_mode and then hdparm -B and
-S values.

Thus power.sh overrides user scripts in /etc/acpi/battery.d and
/etc/acpi/ac.d .


A solution that would be a little bit more obvious and easyly configurable 
might be the following:

Package acpi-support:
Remove laptop_mode start/stop calls and hdparm stuff from power.sh
Remove ENABLE_LAPTOP_MODE setting from /etc/default/acpi-support. (And point to 
laptop-mode.conf for LM on battery, empty battery and AC.)

Package laptop-mode-tools:
Include scripts that call "/usr/bin/laptop_mode auto" in  in /etc/acpi/ac.d, 
battery.d, resume.d and start.d. Then its the users choice to put scripts after 
or before the laptop-mode symlinks.
(Adapt the approach from the laptop-mode-tools debian package to current ubuntu 
acpi-support)

(The current laptop-mode disk-idleing approach seems to be a left-over
from before the  ubuntu-laptop-mode package was droped for laptop-mode-
tools.)

** Affects: acpi-support (Ubuntu)
     Importance: Undecided
         Status: New

-- 
/etc/acpi/power.sh overrides user scripts
https://bugs.launchpad.net/bugs/244831
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to