Re: ThinkVantage key on ThinkPad X61

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

 



On 1/3/08, Ben Liblit <liblit@xxxxxxxxxxx> wrote:

> The documentation leaves me confused about masks, though.  If the ACPI
> event I'm seeing is "ibm/hotkey HKEY 00000080 00001018", then what
> should I mask on in /sys/devices/platform/thinkpad_acpi/hotkey_mask?  Is
> the mask value for this key 0x00000080 or 0x00001018?  Or neither of the
> above?

Neither.  In the documentation, you'll see a table with an entry for
each key.  The table shows the "ACPI event" code (0x1018 in your
example) and the "scan code" (0x17 corresponds to that event).  The
"scan code" is the bit in the mask corresponding to that key, so you
need to make sure that it's set to one.

> For what it's worth, hotkey_recommended_mask and hotkey_mask are
> currently both 0x00fc7fff.

That's correct, and similar to my T60p, which has mask 0x8c7fff.  Your
mask indicates that codes 0x00 through 0x0e and 0x12 through 0x17 are
set.  According to the table, that means all the keys except for the
brightness and thinklight keys are being sent to the input subsystem.
My T60p is similar except that the volume and mute buttons are
additionally turned off.

Short answer: your mask is correctly adjusted.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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