[ltp] HAL and ThinkVantage

Henrique de Moraes Holschuh linux-thinkpad@linux-thinkpad.org
Fri, 24 Oct 2008 00:17:26 -0200


On Thu, 23 Oct 2008, Damjan wrote:
> Now the question is whats the correct keymap data for the ThinkVantage
> button? It's not 0x17!
> 
> The input event value for volume-up is 
> #define KEY_VOLUMEUP            115
> and in HAL we have 0x14?!?
> 
> For ThinkVantage
> #define KEY_VENDOR              0x168
> (it's hex now)
> 
> what's the HAL keymap??

Read the thinkpad-acpi docs.  It is the keymap to the thinkpad-acpi's input
device.  I.e. the "Scan code".

And the ThinkVantage key IS indeed 0x17.  This doesn't mean X.org will be
able to deal with a keycode above 255 (0xff), which is X.org brokenness, so
check if changing it from KEY_VENDOR to something else won't work around the
issue...

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