[ltp] ACPI dead hotkey BIOS issue - report? ignore? document?
Ethan Schoonover
linux-thinkpad@linux-thinkpad.org
Fri, 4 Jan 2013 16:06:14 -0800
--089e01161bb2a4613e04d27f5fd7
Content-Type: text/plain; charset=UTF-8
On Fri, Jan 4, 2013 at 3:55 PM, Mark Wotton <mwotton@gmail.com> wrote:
> only tangentially related, but what acpi handler scripts are you
> using?
Mark,
All homemade scripts. I'm using /etc/acpi/handler.sh as little as possible,
only to monitor the bare minimum power/lid events (and pen events on my
x220 tablet):
/etc/acpi/handler.sh
case $* in
ac_adapter*) power auto ;; # unplug or plug ac cord
*LID*close) system sleep ;; # shut laptop lid
*TBLT*on*) displays tablet on ;; # rotate to tablet mode
*TBLT*off*) displays tablet off ;; # rotate to laptop mode
*0000500c) trigger Print ;; # undock tablet pen
*0000500b) trigger shift+Print ;; # dock tablet pen
esac
The scripts referenced here (with the very generic names of "power",
"system", and "displays" are here:
https://github.com/altercation/es-bin/blob/master/displays
https://github.com/altercation/es-bin/blob/master/power
https://github.com/altercation/es-bin/blob/master/system
(lib functions for above)
https://github.com/altercation/es-bin/blob/master/functions
They are stable, simple (though I may refactor them to stop sourcing the
common lib functions and/or modularize in future), and purpose built so,
for instance, the power management script is focused on this particular
thinkpad, but it wouldn't be hard to modify (only a few things are platform
specific).
> I'm running Ubuntu on a T410 - power management used to be ok
> in Gnome, but since I switched to unadorned XMonad, I don't get
> suspend-on-screen-close or hibernate-on-low battery.
>
I still have to implement a hibernate on low battery (I'll probably just
dbus myself a notification to plugin or manually bail).
Best,
Ethan
http://ethanschoonover.com/solarized
--089e01161bb2a4613e04d27f5fd7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">On Fri, Jan 4, 2013 at 3:55 PM, Mark Wotton <span dir=3D"l=
tr"><<a href=3D"mailto:mwotton@gmail.com" target=3D"_blank">mwotton@gmai=
l.com</a>></span> wrote:<br><div class=3D"gmail_extra"><div class=3D"gma=
il_quote">
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex">only tangentially related, but what acpi handler scripts a=
re you<br>
using?</blockquote><div><br></div><div>Mark,<div><br></div><div>All homemad=
e scripts. I'm using /etc/acpi/handler.sh as little as possible, only t=
o monitor the bare minimum power/lid events (and pen events on my x220 tabl=
et):</div>
<div><br></div><div>/etc/acpi/handler.sh</div><div><br></div><div><div>case=
$* in</div><div>=C2=A0 =C2=A0 ac_adapter*) power auto =C2=A0 =C2=A0 =C2=A0=
=C2=A0 =C2=A0;; # unplug or plug ac cord</div><div>=C2=A0 =C2=A0 *LID*clos=
e) =C2=A0system sleep =C2=A0 =C2=A0 =C2=A0 =C2=A0;; # shut laptop lid</div>
<div>=C2=A0 =C2=A0 *TBLT*on*) =C2=A0 displays tablet on =C2=A0;; # rotate t=
o tablet mode</div><div>=C2=A0 =C2=A0 *TBLT*off*) =C2=A0displays tablet off=
;; # rotate to laptop mode</div><div>=C2=A0 =C2=A0 *0000500c) =C2=A0 trigg=
er Print =C2=A0 =C2=A0 =C2=A0 ;; # undock tablet pen</div><div>
=C2=A0 =C2=A0 *0000500b) =C2=A0 trigger shift+Print ;; # dock tablet pen</d=
iv><div>esac</div></div></div><div><br></div><div style>The scripts referen=
ced here (with the very generic names of "power", "system&qu=
ot;, and "displays" are here:</div>
<div style><br></div><div style><a href=3D"https://github.com/altercation/e=
s-bin/blob/master/displays">https://github.com/altercation/es-bin/blob/mast=
er/displays</a><br></div><div style><a href=3D"https://github.com/altercati=
on/es-bin/blob/master/power">https://github.com/altercation/es-bin/blob/mas=
ter/power</a><br>
</div><div style><a href=3D"https://github.com/altercation/es-bin/blob/mast=
er/system">https://github.com/altercation/es-bin/blob/master/system</a><br>=
</div><div style>(lib functions for above)=C2=A0<a href=3D"https://github.c=
om/altercation/es-bin/blob/master/functions">https://github.com/altercation=
/es-bin/blob/master/functions</a></div>
<div style><br></div><div style>They are stable, simple (though I may refac=
tor them to stop sourcing the common lib functions and/or modularize in fut=
ure), and purpose built so, for instance, the power management script is fo=
cused on this particular thinkpad, but it wouldn't be hard to modify (o=
nly a few things are platform specific).</div>
<div style>=C2=A0<br></div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204=
);border-left-style:solid;padding-left:1ex"> I'm running Ubuntu on a T4=
10 - power management used to be ok<br>
in Gnome, but since I switched to unadorned XMonad, I don't get<br>
suspend-on-screen-close or hibernate-on-low battery.<br></blockquote><div><=
br></div><div style>I still have to implement a hibernate on low battery (I=
'll probably just dbus myself a notification to plugin or manually bail=
).</div>
<div style><br></div><div style>Best,</div><div style>Ethan</div><div style=
><br></div><div style><a href=3D"http://ethanschoonover.com/solarized" targ=
et=3D"_blank">http://ethanschoonover.com/solarized</a></div></div></div></d=
iv>
--089e01161bb2a4613e04d27f5fd7--