Difference between revisions of "Tablet Hardware Buttons"

From ThinkWiki
Jump to: navigation, search
(+See also section. +link "How to get special keys to work".)
(See also)
Line 73: Line 73:
 
==See also==
 
==See also==
 
*[[How to get special keys to work]]
 
*[[How to get special keys to work]]
 
+
*[https://code.edge.launchpad.net/~karl.hegbloom/tabuntu/tablet-screen-rotation-support Tablet Screen Rotation Support] (Launchpad).
 
[[Category:Components]]
 
[[Category:Components]]

Revision as of 23:00, 9 February 2009

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).

Buttons

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

X61 Tablet: picture from here.

X200 Tablet: see below.

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

See also