[ltp] Re: ACPI dock/undock events?

David Abrahams linux-thinkpad@linux-thinkpad.org
Tue, 29 Apr 2008 16:26:14 -0400


on Mon Apr 28 2008, David Abrahams <dave-AT-boost-consulting.com> wrote:

> First, thank you both for responding, and I'm sorry that it's taken me
> so long to follow up on this.  Second, this isn't working for me with
> Ubuntu Hardy (kernel 2.6.24-16-generic).  udev does appear to be working
> in general; events show up in its log.  However, even when install the
> above rules and I set the logging level to "debug" in udev.conf, nothing
> shows up when I press the undock button.  The only thing I /do/ notice
> is lines like this in /var/log/syslog:
>
> Apr 28 15:11:49 mcbain kernel: [   76.886368] ACPI: \_SB_.GDCK - undocking
> Apr 28 15:25:47 mcbain kernel: [   52.232789] ACPI: \_SB_.GDCK - docking
> A
>
> which appears to mean that ACPI knows about the docking events.  Is
> there any way to hook these?

I eventually got this to work by using
http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_(Feisty_Fawn)_on_a_ThinkPad_X40#Installation_Notes_for_Ubuntu_8.04_Tribe_1_.28Hardy_Heron.29_by_dmoerner
as a model.  Thanks for setting me on the right path!

-- 
Dave Abrahams
Boost Consulting
http://boost-consulting.com