how to configure keyboard (solved)

Yi Liang yellowdog-newbie@lists.terrasoftsolutions.com
Sat, 5 Jul 2003 22:34:09 +0200


Hello all

I finally solved my problem. I don't know if it's a particular problem 
or if it would happen to other people...
To be honest, I haven't understand everything I did but that works.

The problem was : I could not access to extra symbol with alt + (my 
key), as I could do on OS X.
xmodmap said that my mapping was ok indeed, extra symbol were correctly 
set on the right key.
My mod1 key was Alt_R, Alt_L, and replacing them with Meta_L didn't 
work.


What I have found, on my OS X, is the mod1 was not set to Alt_L Alt_R 
as I supposed, but to Mode_switch
Then, I decided to change my xmodmap, replacing Alt_L key by Mode_switch

The detailed procedure is :
use xev command to found the keycode of your key (here, it was my Alt_ 
keys)
type "xmodmap -pke > Xmodmap" to get the current mapping in your home 
directory (/home/yourname)
Edit the saved file and replace the 'Alt_L' and/or 'Alt_R' with 
'Mode_switch' on the line corresponding to your keycode
Rename the saved file to '.Xmodmap'
Change the mod1 by typing : xmodmap -e "clear mod1"
and : xmodmap -e "add mod1 = Mode_switch"
Restart X

With this, I managed to use my keyboard with special symbol (by 
pressing alt and shift alt), as before on OS X.






> with "xmodmap -pke > myxmodmap", i can access to my mapping.
> I got lines like this :
> keycode 46 = l L ssharp bar
>
> My question is : what are the modifier to use to get the 2 others 
> symbols ?
>
> by typing "xmodmap", it list my current modifiers, but changing them 
> doesn't allow me to access the 2 additionnal symbol.
> By example, for shift, lock, control, i didn't change anything (they 
> are ok for me). I cleared the current mod1, mod2, ... mod5, and try to 
> add alt_l, alt_r, ... on the different modX, but I didn't manage to 
> access the 2 additionnal symbol.