[laptop-mode] [PATCH] Laptop mode hangs indefinately when battery polling is used
Matthijs Kooijman
matthijs at stdin.nl
Mon Jul 13 09:18:53 CEST 2009
--eFEGTXlkC27u8x2g
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi Ritesh,
> > /usr/share/laptop-mode-tools/module-helpers/lm-polling-daemon \
> > < /dev/null > /dev/null 2> /dev/null &
>=20
> Since we are disconnecting it from all the descriptors, do we need the "&=
" ?
Yes, since otherwise the script would wait right there until the polling
daemon terminates (ie, forever).
> Also, this would have not been correct if we were using echo to print=20
> messages. But since we use a logger now, it won't affect us.
Right. However, the only way for the polling daemon to use stdout would be =
to
not capture laptop_mode's output in the init script. You can't do both.
However, using a logger is the proper way anyway, since it would be weird (=
and
not all too useful) for a daemon to output to the console on which it happe=
ned
to be started (which could be no console at all, if it was started from an
ACPI event handler, for example!).
Gr.
Matthijs
--eFEGTXlkC27u8x2g
Content-Description: Digital signature
Content-Disposition: inline
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://mailman.samwel.tk/pipermail/laptop-mode/attachments/20090713/75c54966/attachment.pgp>
--eFEGTXlkC27u8x2g--
More information about the laptop-mode
mailing list