/etc/acpi/power.sh overrides user scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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/
Package laptop-mode-tools:
Include scripts that call "/usr/bin/
(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.)
There is now an overview about the related bugs in the wiki. /wiki.ubuntu. com/PowerManage ment#head- ab94c99627b86e9 fbb29a09d331617 8269c3e764
https:/