[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">&lt;<a href=3D"mailto:hmh@hmh.eng.br">hmh@hmh.eng.br</a>&gt;</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>
&gt; &gt; If you need to run it only on changes (i.e. dock/undock), key it =
on the<br>
&gt; &gt; action &quot;change&quot; and not all actions (such as &quot;add&=
quot; and &quot;remove&quot;) like you<br>
&gt; &gt; seem to be doing by not keying to an action at all...<br>
&gt;<br>
</div><div class=3D"im">&gt; So yes as you said it seems to be on change ac=
tion.<br>
&gt;<br>
&gt; Do I need to change the contents of /etc/udev/rules.d/80-thinkpad-T61.=
rules?<br>
&gt; To something like:<br>
&gt;<br>
&gt; KERNEL=3D=3D&quot;dock.0&quot;, ATTR{docked}=3D=3D&quot;1&quot;, ACTIO=
N=3D=3Dchange,<br>
&gt; RUN+=3D&quot;/etc/thinkpad/dock.sh 1&quot;<br>
&gt; KERNEL=3D=3D&quot;dock.0&quot;, ATTR{docked}=3D=3D&quot;0&quot;, ACTIO=
N=3D=3Dchange,<br>
&gt; RUN+=3D&quot;/etc/thinkpad/dock.sh 0&quot;<br>
<br>
</div>Yes, if you don&#39;t care that the script won&#39;t always run durin=
g boot.</blockquote><div>thanks... but it didn&#39;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&quot;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.&quot; -- 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--