Previous Next Contents

2. Keyboard setup

2.1 Keyboard setupLoading a Danish keytable

Keyboard mappings are in /usr/lib/kbd/keytables/. Try typing either of these two commands to load one

/usr/bin/loadkeys /usr/lib/kbd/keytables/dk.map 
/usr/bin/loadkeys /usr/lib/kbd/keytables/dk-lat1.map
The difference between the two lines is that dk-lat1.map uses `dead' keys while dk.map doesn't. Dead keys are explained in section DeadKeys.

You can change the keymapping loaded at boot by editing the file /etc/rc.d/rc.keymap.

If this doesn't work you simply haven't installed support for international keyboards.

2.2 Getting the AltGr key to work under X

Edit the file /etc/Xconfig (under XFree86 2.0) or /etc/X11/XF86Config (underXFree86 3.x) and make sure the line

  RightAlt    ModeShift
appears in the Keyboard section. Usually you can do this by uncommenting an appropriate line.

2.3 Getting the AltGr key to work under XDead keys and accented characters

Dead keys are those who don't type anything until you hit another key. Tildes and umlauts are like this by default under Microsoft Windows and if you use the dk-lat1.map keymap under Linux.

Removing dead key functionality

Under plain Linux type

loadkeys dk.map

Invoking dead key functionality

2.4 Making ø (oslash) Ø (Ooblique) and the dollar sign work

ø (oslash) and Ø (Ooblique)

Find out what keymap you load at boot-up. You should be able to find out by typing less /etc/rc.d/rc.keymap. On my computer it is called /usr/lib/kbd/keytables/dk-lat1.map. Find the line for keycode 40 in this file and change it from

keycode  40 = cent              yen
to
keycode  40 = oslash            Ooblique
and load the keytable as described in section LoadKeys.

Note: This bug appears to have been fixed in version 0.88 of the international keytable package.

Dollar sign

The dollar sign is accessed with Shift-4 instead of AltGr-4 by default. You can fix this by changing the line

keycode   5 = four             dollar           dollar          
in the keymap file to e.g.
keycode   5 = four             asciicircum      dollar
It doesn't matter if you something else instead asciicircum if it is just a valid symbol name. See section Glyphs for a list of valid symbols.


Previous Next Contents