Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Graphics Administration Guide: HP 9000 Workstations and Servers > Chapter 6 X Windows Configuration Details

Using the Keyboards

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

There are now two keyboards available for Hewlett-Packard workstations. In addition to the 46021 keyboard, a personal computer-style keyboard, C1429 is also available. This new keyboard is also known as the "Enhanced Vectra" keyboard.

Understanding the Keyboards

If an application is reading input directly from the keyboard, it receives a keycode when a key is pressed. Equivalent keys on the two keyboards are those that generate the same keycode. If an equivalent key does not exist, there is no way to generate the corresponding keycode.

In an X Window System environment, keycodes are mapped into key symbols by the X library. The key symbols are stored in a keysym table. Application programs then reference these key symbols when accessing keys.

Figure 6-1 Keycap, Keycode, and Keysym Relationships

Keycap, Keycode, and Keysym Relationships

Equivalent keys are those keys that are mapped to the same key symbol. One advantage of this mapping is that if a key does not physically exist on a keyboard, its equivalent key symbol can be mapped to some other key through the corresponding keycode.

Default Keyboard Mapping

The default keyboard mapping supplied with the X Window environment maps the C1429 keyboard to the same key symbols that are used for the 46021 keyboard. This allows existing X client programs that expect to receive input from a 46021 keyboard to be used with either keyboard. However, the result is that some keys on the C1429 keyboard are mapped to key symbols that do not match the engravings on their keycaps.

Equivalent Keys

Some applications may expect to use keys that exist on one of the keyboards but not the other. In most cases, if a key does not exist on the keyboard in use, it is still possible to use some other key that is equivalent. To do this, it is necessary to know which keys are equivalent on the two keyboards.

There are 14 keys on the C1429 keyboard that generate keycodes equivalent to keys on the 46021 keyboard, but have different engravings on the keycaps. Some have the same key symbol on both keyboards, while others do not. These C1429 keys, their 46021 equivalents, and the corresponding symbol names are shown in the following table.

Table 6-14 Title not available (Equivalent Keys )

C1429 Keycap

46021 Keycap

Default Key Symbol

XPCmodmap Symbol

f9

blank1

F9

F9

f10

blank2

F10

F10

f11

blank3

F11

F11

f12

blank4

F12

F12

Print Screen/SysRq

Menu

Menu

Print

Scroll Lock

Stop

Cancel

Scroll_Lock

Pause/Break

Break/Reset

Break/Reset

Pause/Break

Page Up

Prior

Prior

Num Lock

System/User

System/User

Num_Lock

End

Select

Select

End

Page Down

Next

Next

Enter

Return

Return

Return

Alt (left)

Extend Char (left)

Meta_L

Alt_L

Alt (right)

Extend Char (right)

Meta_R

Alt_R

 

Changing Key Mapping

X provides the means to change the key mapping, if you so desire. One way to accomplish this is by running the xmodmap client program. Hewlett-Packard provides two files in the directory /usr/lib/X11 to use with xmodmap. One, XPCmodmap, causes xmodmap to change the key mapping to match the keycap engravings on the C1429 keyboard. The other, XHPmodmap, causes xmodmap to change the key mapping to match the keycap engravings on the 46021 keyboard, which are the defaults. This allows either keyboard to be used with applications that expect the other keyboard, although only one mapping can be used at any given time. When the mapping is changed, the X Server notifies all clients that are executing at that time. Some clients may load the new mapping from the server right away, but others may have to be restarted in order to recognize the new mapping. For more information about using the xmodmap client, see the xmodmap man page.

C1429 Keyboard

Execute the following command to change the mapping of the keys shown above to match the engravings on the C1429 keycaps.

/usr/bin/X11/xmodmap  /usr/lib/X11/XPCmodmap

46021 Keyboard

Execute the following command to change the mapping to match the 46021 keyboard.

/usr/bin/X11/xmodmap  /usr/lib/X11/XHPmodmap

Comparing the Keyboards

The 46021 keyboard has 107 keys, while the C1429 keyboard has 101 keys. There are 7 keys on the 46021 keyboard whose keycodes cannot be generated by any key on the C1429 keyboard, and whose key symbols cannot be generated when using the default keymap for the C1429 keyboard. The missing keys are:

  • Clear Line

  • Clear Display

  • Insert Line

  • Delete Line

  • Print/Enter

  • , (on number pad)

  • Tab (on number pad)

, and Tab exist elsewhere on the C1429 keyboard, and the others are not needed by most applications. Applications that do need one or more of them must assign their key symbols to the keycodes of existing keys. The xmodmap client can be used to determine the keycode-to-key symbol mapping of existing keys, and it can also be used to assign the key symbol to the desired keycode. These keys use HP specific key symbol names whose correct spelling can be found in the file /usr/lib/X11/XKeysymDB.

The right Ctrl key on the C1429 keyboard generates a keycode that has no equivalent on the 46021 keyboard. This key has the same effect as the left Ctrl key by default.

Keys not mentioned above exist on both keyboards, and have the same key symbols.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.