Celejar wrote:
On Mon, 14 May 2007 16:52:21 +0200
Bart Samwel <[EMAIL PROTECTED]> wrote:
Celejar wrote:
Package: laptop-mode-tools
Version: 1.32-1
Severity: normal
When my system is booted while on battery power, laptop-mode stops the
batt-stop services, but since it runs as @S20, services such as anacron
and cron, which run as @S89, get restarted.
Nice catch! I'll change the init script sequence number to @S99 or
something, that ought to fix it, right?
Makes sense to me. The only thing I'm not sure about is the
'acpi-support' script, which is also @S99. It also refers to something
called 'laptop mode' [0]. Any connection to this package? Does it make
a difference which one starts first?
Oooh, I hadn't noticed that this package has been backported from
Ubuntu. The thing is, this package depends on specific tweaks to the
default laptop-mode-tools settings that are only in the Ubuntu version
of the package, and of course nobody checked this, or notified me that
laptop mode tools operation was supposed to be preempted by some other
package from now on. No offense guys, but a quick note would definitely
have helped. :-) Anyway, I'll probably have to go and backport the stuff
from Ubuntu (so as not to confuse acpi-support users), and live with the
fact that acpi-support's laptop mode control is broken in etch.
A summary of the current state of affairs:
- Laptop mode installs as @S20 and happily starts, regardless of the
settings in /etc/default/acpi-support.
- Acpi-support @S99 then calls "/usr/sbin/laptop_mode start" or
"/usr/sbin/laptop_mode stop", which have been ineffective since version
1.20 (of January 25, 2006). (I just love the fact that acpi-support in
Ubuntu also still calls this script. This whole attempt to control
laptop mode tools is broken, I'll probably have come up with some
patches for that as well...)
- Therefore, acpi-support's efforts to control laptop mode have no
effect at all. Especially not on Debian, where the setting in
/etc/default/acpi-support is not honoured.
Fun, fun, fun. I'll be trying to release laptop-mode-tools 1.33
(upstream) tomorrow, and I'll make sure that the Debian version matches
what acpi-support expects. Then I'll try to provide patches for
acpi-support so that it works with what laptop-mode-tools expects. :-)
Cheers,
Bart
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]