[ltp] Dock/undock event

Daniel Castro linux-thinkpad@linux-thinkpad.org
Mon, 2 Feb 2009 17:48:02 +0000


--0016364587e8f3ada50461f32714
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

2009/2/1 Daniel Castro <castromd@tcd.ie>

> 2009/2/1 Henrique de Moraes Holschuh <hmh@hmh.eng.br>
>
>> On Sun, 01 Feb 2009, Daniel Castro wrote:
>> > Now I want to catch the event of docking and undocking the computer.
>> >
>> > Anyone knows what ACPI event needs to be catched? And how?
>>
>> It is not ACPI.  It is an uevent.  Either get it through udev, or HAL.
>
> i have no idea how this works. is there an easy and safe way to do this?
> (as in steps for dummys...)
> i just want to run a scripts when i dock and undock my laptop.
> i was hoping there to be an easy way... like the way /etc/acpi/lid.sh (and
> some other events) already runs so adding a call to that script it's all it
> takes...
>
sorry to bother again! any help on this would be much appreciated! thanks!

>
>
>>
>> --
>>  "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
> ________________________
>



-- 
________________________

Daniel Castro, M.Sc.
+353 083-318-2058
dancasmo@gmail.com
castromd@tcd.ie
________________________

--0016364587e8f3ada50461f32714
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote">2009/2/1 Daniel Castro <span dir=3D"ltr">&lt;<a =
href=3D"mailto:castromd@tcd.ie">castromd@tcd.ie</a>&gt;</span><br><blockquo=
te 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"gmail_quote">2009/2/1 Henrique de Moraes Holschuh <span dir=
=3D"ltr">&lt;<a href=3D"mailto:hmh@hmh.eng.br" target=3D"_blank">hmh@hmh.en=
g.br</a>&gt;</span><div class=3D"Ih2E3d"><br><blockquote class=3D"gmail_quo=
te" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt=
 0.8ex; padding-left: 1ex;">

<div>On Sun, 01 Feb 2009, Daniel Castro wrote:<br>
&gt; Now I want to catch the event of docking and undocking the computer.<b=
r>
&gt;<br>
&gt; Anyone knows what ACPI event needs to be catched? And how?<br>
<br>
</div>It is not ACPI. &nbsp;It is an uevent. &nbsp;Either get it through ud=
ev, or HAL.</blockquote></div><div>i have no idea how this works. is there =
an easy and safe way to do this? (as in steps for dummys...)<br>i just want=
 to run a scripts when i dock and undock my laptop.<br>

i was hoping there to be an easy way... like the way /etc/acpi/lid.sh (and =
some other events) already runs so adding a call to that script it&#39;s al=
l it takes... </div></div></blockquote><div>sorry to bother again! any help=
 on this would be much appreciated! thanks! <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;"><div class=
=3D"gmail_quote"><div><br></div><blockquote class=3D"gmail_quote" style=3D"=
border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; paddi=
ng-left: 1ex;">

<br>
<br>
--<div class=3D"Ih2E3d"><br>
 &nbsp;&quot;One disk to rule them all, One disk to find them. One disk to =
bring<br>
 &nbsp;them all and in the darkness grind them. In the Land of Redmond<br>
 &nbsp;where the shadows lie.&quot; -- The Silicon Valley Tarot<br>
<font color=3D"#888888"> &nbsp;Henrique Holschuh<br>
<br>
</font></div></blockquote></div><br><br clear=3D"all"><div><div></div><div =
class=3D"Wj3C7c"><br>-- <br>________________________<br><br>Daniel Castro, =
M.Sc.<br>+353 083-318-2058<br><a href=3D"mailto:dancasmo@gmail.com" target=
=3D"_blank">dancasmo@gmail.com</a><br>
<a href=3D"mailto:castromd@tcd.ie" target=3D"_blank">castromd@tcd.ie</a><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>

--0016364587e8f3ada50461f32714--