[laptop-mode] about laptop-mode
Wido
wido.gg at gmail.com
Thu May 14 19:47:24 CEST 2009
--0016e64c1beab715780469e2eb55
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
maybe the script could look for what daemon is using and act as needed, i'm
thinking a ps-ef | grep with a case-esac. Kind of dirty but it works
if [[ ! `ps ax | grep -v grep | grep -q acpid` ]]; then
DAEMON=acpid
elif [[ ! `ps ax | grep -v grep | grep -q ampd` ]]; then
DAEMON=apmd
elif [[ ! `ps ax | grep -v grep | grep -q pbbuttonss` ]]; then
DAEMON=pbbuttonss
else [[ ! `ps ax | grep -v grep | grep -q pmud` ]]; then
DAEMON=pmud
fi
/etc/init.d/${DAEMON} restart
2009/5/14 Ritesh Raj Sarraf <rrs at researchut.com>
> On Sunday 03 May 2009 18:44:14 Bart Samwel wrote:
> > 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...
>
> Currently we have 4 power management daemon.
>
> acpid | apmd | pbbuttonsd | pmud
>
> acpid being the most commonly used. Are there users using the other ones ?
>
> Ritesh
> --
> Ritesh Raj Sarraf
> RESEARCHUT - http://www.researchut.com
> "Necessity is the mother of invention."
>
>
--
Wido
--0016e64c1beab715780469e2eb55
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
maybe the script could look for what daemon is using and act as needed, i&#=
39;m thinking a ps-ef | grep with a case-esac. Kind of dirty but it works<b=
r><br><br>if [[ ! `ps ax | grep -v grep | grep=C2=A0 -q acpid` ]]; then<br>=
=C2=A0=C2=A0=C2=A0 DAEMON=3Dacpid<br>
elif [[ ! `ps ax | grep -v grep | grep=C2=A0 -q ampd` ]]; then<br>
=C2=A0=C2=A0=C2=A0 DAEMON=3Dapmd<br>elif [[ ! `ps ax | grep -v grep | grep=
=C2=A0 -q pbbuttonss` ]]; then<br>
=C2=A0=C2=A0=C2=A0 DAEMON=3Dpbbuttonss<br>else [[ ! `ps ax | grep -v grep |=
grep=C2=A0 -q pmud` ]]; then<br>
=C2=A0=C2=A0=C2=A0 DAEMON=3Dpmud<br>fi<br><br>/etc/init.d/${DAEMON} restart=
<br><br><br><div class=3D"gmail_quote">2009/5/14 Ritesh Raj Sarraf <span di=
r=3D"ltr"><<a href=3D"mailto:rrs at researchut.com">rrs at researchut.com</a>&=
gt;</span><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px s=
olid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class=3D"im">On Sunday 03 May 2009 18:44:14 Bart Samwel wrote:<br>
</div><div class=3D"im">> Hmmm, this sounds like acpid could use a SIGHU=
P at the end of the<br>
> installation script. Ritesh, is this something you can try and add? I&=
#39;m<br>
> not even sure if the Debian package does that in postinst, and it does=
<br>
> sound necessary...<br>
<br>
</div>Currently we have 4 power management daemon.<br>
<br>
acpid | apmd | pbbuttonsd | pmud<br>
<br>
acpid being the most commonly used. Are there users using the other ones ?<=
br>
<div><div></div><div class=3D"h5"><br>
Ritesh<br>
--<br>
Ritesh Raj Sarraf<br>
RESEARCHUT - <a href=3D"http://www.researchut.com" target=3D"_blank">http:/=
/www.researchut.com</a><br>
"Necessity is the mother of invention."<br>
<br>
</div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>Wido<br>
--0016e64c1beab715780469e2eb55--
More information about the laptop-mode
mailing list