[ltp] How to catch close lid event?
Daniel Castro
linux-thinkpad@linux-thinkpad.org
Fri, 30 Jan 2009 16:40:25 +0000
--000e0cd2984ca88fd80461b5dc8c
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
2009/1/30 Pascal Wittmann <pascalwittmann@gmx.net>
> Daniel Castro wrote:
>
>> Hello!
>>
>> Anyone knows how can I catbutton/lidch the lid close and open events?
>>
>> I have a T61 (widescreen), running Ubuntu 8.10. I would like to run some
>> scripts whenever I close and open the lid.
>>
>> Any help is much appreciated.
>>
>> Thanks!
>>
>> --
>> ________________________
>>
>> Daniel Castro, M.Sc.
>> +353 083-318-2058
>> dancasmo@gmail.com <mailto:dancasmo@gmail.com>
>> castromd@tcd.ie <mailto:castromd@tcd.ie>
>> ________________________
>>
> you can catch this event with thinkpad-acpi with the event button/lid.
>
> an example for /etc/acpi/event/lid:
> event=button/lid
> action=/etc/acpi/action/lid.sh
thanks. but not sure i understand what i have to do. create a lid file with
that content? sorry i'm not too linux savvy....
>
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>
>
--
________________________
Daniel Castro, M.Sc.
+353 083-318-2058
dancasmo@gmail.com
castromd@tcd.ie
________________________
--000e0cd2984ca88fd80461b5dc8c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<br><br><div class=3D"gmail_quote">2009/1/30 Pascal Wittmann <span dir=3D"l=
tr"><<a href=3D"mailto:pascalwittmann@gmx.net">pascalwittmann@gmx.net</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;">
Daniel Castro wrote:<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;">
Hello!<br>
<br>
Anyone knows how can I catbutton/lidch the lid close and open events?<div c=
lass=3D"Ih2E3d"><br>
<br>
I have a T61 (widescreen), running Ubuntu 8.10. I would like to run some sc=
ripts whenever I close and open the lid.<br>
<br>
Any help is much appreciated.<br>
<br>
Thanks!<br>
<br>
-- <br>
________________________<br>
<br>
Daniel Castro, M.Sc.<br>
+353 083-318-2058<br>
</div><a href=3D"mailto:dancasmo@gmail.com" target=3D"_blank">dancasmo@gmai=
l.com</a> <mailto:<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> &l=
t;mailto:<a href=3D"mailto:castromd@tcd.ie" target=3D"_blank">castromd@tcd.=
ie</a>><br>
________________________<br>
</blockquote>
you can catch this event with thinkpad-acpi with the event button/lid.<br>
<br>
an example for /etc/acpi/event/lid:<br>
event=3Dbutton/lid<br>
action=3D/etc/acpi/action/lid.sh</blockquote><div>thanks. but not sure i un=
derstand what i have to do. create a lid file with that content? sorr=
y i'm not too linux savvy....<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>
The linux-thinkpad mailing list home page is at:<br>
<a href=3D"http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpa=
d" target=3D"_blank">http://mailman.linux-thinkpad.org/mailman/listinfo/lin=
ux-thinkpad</a><br>
<br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>________________=
________<br><br>Daniel Castro, M.Sc.<br>+353 083-318-2058<br><a href=3D"mai=
lto:dancasmo@gmail.com">dancasmo@gmail.com</a><br><a href=3D"mailto:castrom=
d@tcd.ie">castromd@tcd.ie</a><br>
________________________<br>
--000e0cd2984ca88fd80461b5dc8c--