Re: "ThinkPad" key on T20 only works after suspend cycle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 24 Jan 2010, Florian Zumbiehl wrote:
> I have here a T20 with a T22 BIOS and a 2.6.32.4 kernel, plus tuxonice
> and the patch from http://bugzilla.kernel.org/show_bug.cgi?id=14858 .

Good.

> Now, all the ACPI keys/Fn-combinations do work just fine, except for
> the "ThinkPad" key, which doesn't generate any events observable with
> acpi_listen after boot. Only after I have done one suspend cycle,
> the key starts working.

Well, send me the output of

grep . /sys/bus/platform/devices/thinkpad_acpi/hotkey*

(and don't worry if it causes the kernel to complain loudly about access to
deprecated attributes).

I think the "ThinkPad" key works in CMOS NVRAM polling mode on your
thinkpad, which means there is a higher chance that it is a driver bug.

> A simple echo mem > /sys/power/state does the job, so it's not some
> side effect of some other things being done by my regular suspend
> script. Also, a soft reboot is enough to disable the key again,
> no power cycling necessary - and even suspending to disk, including
> a powerdown, does make the key work.

What happens when you unload and re-load thinkpad-acpi (rmmod and modprobe)?
Does the key stop working?

> Any hints as to how to debug or even fix this would be appreciated.

If the rmmod+modprobe breaks it, it is a sure sign that the hotkey polling
code in thinkpad-acpi is buggy (which is good, since it is something we can
fix).

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

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux