Hi Michael, Michael Biebl wrote: > Michael Biebl wrote: > >> The problem is, that the bug is about adding support for laptop-tools, >> but I am missing proper justification, why this is necessary, what the >> underlying problem is and why laptop-mode-tools is the correct solution. >> > > Bart, can you elaborate a bit on this. The linked launchpad bug is a bit > hard to digest.
Sorry about the delay, I've just returned from some scheduled downtime (aka a holiday). I understand that you can't read the launchpad thing, but it's not all that important really. Let me try to explain the situation. The basic problem is the following combination of things: 1. Laptop mode tools tweaks hardware settings. Most of these are lost over suspend. So, on resume, it must re-tweak them. The settings that are lost over suspend include the ones that are required for the basic functionality of laptop mode, i.e., spinning down the hard drive. So it is *very* important that laptop mode tools is restarted on resume, or else it is entirely broken on resume. This is especially important since suspending is used most frequently on laptops which are running on battery power, exactly the target audience of laptop mode tools. 2. Until recently, the package acpi-support handled suspend itself. It has a directory of on-resume scripts in /etc/acpi/resume.d. This directory contains a script that restarts laptop mode tools. 3. The package acpi-support has since been changed to delegate suspend to pm-utils instead (by default -- the old functionality is still present). 4. The pm-utils suspend functionality does not contain a script that restarts laptop mode tools on resume. So technically: a) This is not a regression in pm-utils when viewed in isolation. The pm-utils package has never supported this. b) This is not a regression in laptop-mode-tools. Laptop mode tools has never cared about suspend. c) This IS a regression in acpi-support, because it used to do this in sarge, and now it doesn't in lenny. So it's all a bit strange -- an important regression in the functionality of acpi-support, which can only be fixed by changing pm-utils. BTW, in an earlier mail you suggested that this should actually be fixed in laptop-mode-tools. While I understand the reasoning behind this policy, and while I support this design concept in general, there are simply too many suspend methods in Linux to support, each of which have their own set of scripts which have to be tweaked. The ones I know of are hibernate, pm-utils, pmud, pbbuttonsd, and acpi-support. I'm afraid this situation needs to be resolved before such scripts can be put in the resume-action-requiring packages. :-/ On a side note, I've just received another bug report (#501804) for laptop-mode-tools mentioning exactly this -- indicated priority by the submitter as "important". I've CC'ed the submitter, as he may want do some advocacy as well. :-) Cheers, Bart -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]