Tablet Hardware Buttons

From ThinkWiki
Revision as of 06:01, 15 December 2008 by Mitchell (Talk | contribs) (+X200 Tablet scancodes. Generalized intro. -broken link.)
Jump to: navigation, search

Tablet Hardware Buttons

The Thinkpad tablets includes hardware buttons located on the LCD screen bezel. They are designed to be used when the ThinkPad is converted to the tablet configuration (though they are still accessible when in the laptop configuration).

The X41 Tablet hardware buttons include:

  • Power (with sliding lock)
  • Cltr-Alt-Del [sic]
  • Page up
  • Page down
  • Enter
  • Escape
  • Screen Rotation
  • Tablet shortcut menu


Linux Support

The hardware buttons (except power) are recognized by the standard atkbd kernel driver which emits the following scancodes:

Key X41 Scancode X60 Tablet Scancode X61 Tablet Scancode X200 Tablet Scancode
Page up 0x6D NA NA NA
Page down 0x6E NA NA NA
Enter 0x69 0x69 0x69 NA
Esc 0x6B 0x6B 0x6b NA
Toolbox 0x68 0x68 0x68 0x66
Rotate 0x6C 0x6c 0x6c 0x6b
(Unlabeled) 0x67 NA 0x67 0xe0 0x12
Right NA 0x6D 0x6d NA
Left NA 0x6E 0x6e NA
Up NA 0x71 0x71 NA
Down NA 0x6F 0x6f NA

Notes:

  • X200 Tablet
    Layout: power (with sliding lock); clockwise-arrow (formerly unlabeled); rotate (two boxes and an arrow); Toolbox (the icon is now a menu); padlock.
    The padlock button seems to do nothing. It generates no scancode, and has no effect on the other buttons.
    The clockwise-arrow button returns a scancode pair. So you say $ setkeycodes e012 whatever.

The utility setkeycodes can be used to map these scancodes to keycodes. Read $ man setkeycodes for usage. For example, the following command will map the page up and page down buttons to their respective keys:

# setkeycodes 6e 109 6d 104

Models featuring this Device