Hi Leo, Leo L. Schwab wrote: > On Thu, Feb 19, 2009 at 10:46:52AM +0100, Bart Samwel wrote: >> I'm just wondering about how I'm going to >> prevent *double* calls to laptop-mode-tools here -- or perhaps it just >> doesn't matter if I add locking so that simultaneous calls don't bite >> eachother. >> > I've already noticed this fight going on, which is one of the > reasons I uninstalled acpid entirely. Without looking at it in detail, I > think the packages acpid and/or acpi-support may need to be marked as > conflicting with pm-utils, since they both process the same class of events, > and both are written expecting to be the exclusive processor thereof.
Trouble with acpi-support (which I maintain for Debian as well -- which makes it even more of a shame that I didn't know what was going on) is that it has two functions: (a) converting hotkey ACPI events into virtual key presses (b) suspend (legacy) I heard that the Ubuntu guys are moving the hotkey support into pm-utils, but until that happens, lots of laptops need acpi-support (and therefore also acpid etc.) to make their hotkeys work. But here's the really good part: the suspend code now delegates its work to pm-utils by default! And that means that acpi-support and pm-utils cannot conflict! I've been contemplating for a while to split the legacy acpi-support suspend part and the hotkeys part into a separate package. Your suggestion makes it clear to me that this is not an optional thing, I really need to do this ASAP. > In the case of laptop_mode, it seems to avoid doing redundant work > by keeping track of its current state, so I would expect it could be invoked > any number of times without clobbering things. It does. But I don know what happens if the script gets called multiple times at the same time -- I'll probably have to do something with lock files to fix this. Cheers, Bart -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org