/etc/acpi/power.sh overrides user settings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: acpi-support
When operating a laptop on AC but within a moving vehicle, disk idleing ("laptop-mode") is needed even on AC. Not nessecarily to lett the disk spin down, but to leave the heads parked long enoght periods of time for shock protection.
(https:/
However, configuring /etc/laptop-
1) /etc/acpi/power.sh calls laptop_mode with start/stop.
2) Setting less aggressive settings than hdparm -B1 (fastest headparking and spin down) on battery get overridden because power.sh will set hdparm -B1 _after_ calling laptop_mode start. (That even overrides any longer $HDPARM -S $SPINDOWN_TIME in the line before that one.)
"/sbin/laptop_mode auto" will check configured conditions itself. Laptop-mode won't be activated unless ENABLE_
Flexible approach:
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 original 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.)
Changed in acpi-support (Ubuntu): | |
status: | New → Fix Released |
There is now an overview about the related bugs in the wiki. /wiki.ubuntu. com/PowerManage ment#head- ab94c99627b86e9 fbb29a09d331617 8269c3e764
https:/