[laptop-mode] about laptop-mode
Bart Samwel
bart at samwel.tk
Mon May 4 13:12:53 CEST 2009
Hi Ritesh,
Ritesh Raj Sarraf wrote:
> On Sunday 03 May 2009 18:44:14 Bart Samwel wrote:
>> Wido wrote:
>>> Hi! my name is Guido (but you may call mi wido). I'm a debian user for
>>> a while and I've recently installed laptop-mode-tools (right now, I'm
>>> with testing). I'm a laptop user since a couple years, having now a
>>> thinkpad t61 (this is since last august).
>>> After I installed laptop-mode, I started to check all conf files and
>>> set it as I like (btw, cool files, very completes and clean), and as
>>> soon as i get all that working, I restarted the laptop mode and tried
>>> it.......nothing happened. I started digging and digging with the
>>> scripts and the acpi calls....nothing. Then, I started reading the FAQ
>>> and I got the light. I've been using hibernate for a while, so I'm not
>>> used to reboot my laptop. Actually, I tend to not reboot it at all (in
>>> case something doesn't work fine).
>>> Quick answer, the ACPI daemon script needed to be restarted in order
>>> to take the new scripts, otherwise it didn't work (trying to do some
>>> black magic, i symlinked the lm-events to the original acpi events,
>>> but that didn't worked either). After restarting acpi, everything
>>> worked fine
>> Hmmm, this sounds like acpid could use a SIGHUP at the end of the
>> installation script. Ritesh, is this something you can try and add? I'm
>> not even sure if the Debian package does that in postinst, and it does
>> sound necessary...
>>
> You mean the package's postinst script ?
> That'd solve only part of it.
> IIUC, the user reports that after customizing and restarting LMT, the changes
> weren't reflected. In that case, we'll have to reload acpid also. Good thing is
> that acpid already has a reload command in its init file which sends a HUP.
Yup, I meant that we need to signal acpid. For Debian the postinst
script should call the init file for acpid to do it (that's the clean
way, I guess), but for other distros (install.sh) it should probably be
a killall -HUP acpid or something like that, because invoking init
scripts in a distro independent way is close to impossible in my
experience. :-/
Cheers,
Bart
More information about the laptop-mode
mailing list