[ltp] A new udev rule gives me 3min startup delay
Daniel Castro
linux-thinkpad@linux-thinkpad.org
Wed, 26 Aug 2009 17:12:46 +0100
--001517588b5ab7d7eb04720db8a3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
2009/8/26 Henrique de Moraes Holschuh <hmh@hmh.eng.br>
> On Wed, 26 Aug 2009, Daniel Castro wrote:
> > > If you need to run it only on changes (i.e. dock/undock), key it on the
> > > action "change" and not all actions (such as "add" and "remove") like
> you
> > > seem to be doing by not keying to an action at all...
> >
> > So yes as you said it seems to be on change action.
> >
> > Do I need to change the contents of
> /etc/udev/rules.d/80-thinkpad-T61.rules?
> > To something like:
> >
> > KERNEL=="dock.0", ATTR{docked}=="1", ACTION==change,
> > RUN+="/etc/thinkpad/dock.sh 1"
> > KERNEL=="dock.0", ATTR{docked}=="0", ACTION==change,
> > RUN+="/etc/thinkpad/dock.sh 0"
>
> Yes, if you don't care that the script won't always run during boot.
thanks... but it didn't work that way...
>
>
> --
> "One disk to rule them all, One disk to find them. One disk to bring
> them all and in the darkness grind them. In the Land of Redmond
> where the shadows lie." -- The Silicon Valley Tarot
> Henrique Holschuh
>
>
--
________________________
Daniel Castro, M.Sc.
+353 083-318-2058
dancasmo@gmail.com
castromd@tcd.ie
________________________
--001517588b5ab7d7eb04720db8a3
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div class=3D"gmail_quote">2009/8/26 Henrique de Moraes Holschuh <span dir=
=3D"ltr"><<a href=3D"mailto:hmh@hmh.eng.br">hmh@hmh.eng.br</a>></span=
><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(=
204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class=3D"im">On Wed, 26 Aug 2009, Daniel Castro wrote:<br>
> > If you need to run it only on changes (i.e. dock/undock), key it =
on the<br>
> > action "change" and not all actions (such as "add&=
quot; and "remove") like you<br>
> > seem to be doing by not keying to an action at all...<br>
><br>
</div><div class=3D"im">> So yes as you said it seems to be on change ac=
tion.<br>
><br>
> Do I need to change the contents of /etc/udev/rules.d/80-thinkpad-T61.=
rules?<br>
> To something like:<br>
><br>
> KERNEL=3D=3D"dock.0", ATTR{docked}=3D=3D"1", ACTIO=
N=3D=3Dchange,<br>
> RUN+=3D"/etc/thinkpad/dock.sh 1"<br>
> KERNEL=3D=3D"dock.0", ATTR{docked}=3D=3D"0", ACTIO=
N=3D=3Dchange,<br>
> RUN+=3D"/etc/thinkpad/dock.sh 0"<br>
<br>
</div>Yes, if you don't care that the script won't always run durin=
g boot.</blockquote><div>thanks... but it didn't work that way... <br><=
/div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(=
204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<font color=3D"#888888"><br>
--<br>
</font><div><div></div><div class=3D"h5"> =A0"One disk to rule them al=
l, One disk to find them. One disk to bring<br>
=A0them all and in the darkness grind them. In the Land of Redmond<br>
=A0where the shadows lie." -- The Silicon Valley Tarot<br>
=A0Henrique Holschuh<br>
<br>
</div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>___________=
_____________<br><br>Daniel Castro, M.Sc.<br>+353 083-318-2058<br><a href=
=3D"mailto:dancasmo@gmail.com">dancasmo@gmail.com</a><br><a href=3D"mailto:=
castromd@tcd.ie">castromd@tcd.ie</a><br>
________________________<br>
--001517588b5ab7d7eb04720db8a3--