Introduction; Step 1: Retrieve Keymap Sources; Step 2: Modify Keymap And Symbols - HP T5135 - Compaq Thin Client Introduction Manual

Creating and compiling custom keymaps for linux
Hide thumbs Also See for T5135 - Compaq Thin Client:
Table of Contents

Advertisement

Introduction

HP thin clients running the ThinConnect operating system use compiled keymaps to reduce the amount
of flash disk space required to support a large set of international keyboards. This white paper
describes the basic steps involved in creating custom keymaps for keyboards that are not supported
by default under ThinConnect.
The examples in this white paper are based on Debian Etch and Xorg 7.1. All work should be
completed from a system based on Debian Etch, such as the HP t5735. The resultant keymaps from
the examples have been validated on the HP t5735 and HP t5135 running ThinConnect (S2ST0070).

Step 1: Retrieve keymap sources

From the command prompt, execute the following command:
1.
wget http://ftp.de.debian.org/debian/pool/main/x/xkb-data-legacy/xkb-
data-legacy_1.0.1.orig.tar.gz
If that URL no longer exists, search http://packages.debian.org for the package xkb-
data-legacy and download the .orig.tar.gz file.
Go to the directory /home/user and extract the .orig.tar.gz file using tar –xzf <file>.
2.

Step 2: Modify keymap and symbols

In this simple example, you will replace the $ in a US keymap with the sign for yen, ¥.
First go to the directory /home/user/xkb-data-legacy-1.0.1. This is the base directory
1.
(<base>) for the remainder of the example.
Open the file <base>/keymap/xfree86 for editing.
2.
This file provides declarations for most types of keymaps. In this example, the "us" keymap is
used as a base.
Copy the xkb_keymap "us" section and paste it directly below the '};' line that closes out the
3.
"us" keymap. Since there cannot be two default keymaps, remove the "default" header from
the new keymap, and rename it "my_map" as shown below:
xkb_keymap "my_map" {
xkb_keycodes
xkb_types
xkb_compatibility { include "default"
xkb_symbols
xkb_geometry
};
At this point you have a keymap identical to the us keymap.
Now change the xkb_symbols line to match the following:
4.
xkb_symbols
This will change the keymap so that it uses the symbols declaration "my_keys" in the symbols file
"us". However, this symbols declaration does not exist yet; the next step is to create it.
{ include "xfree86"
{ include "default"
{ include "us(pc105)"
{ include "pc"
{ include "us(my_keys)" };
};
};
};
};
};
2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the T5135 - Compaq Thin Client and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

T5145 - thin client - towerCreating and compiling custom keymaps for linux

Table of Contents