On Mon, May 19, 2008 at 22:36:36 +0200, Julien Barnier wrote: > Hi, > > I recently made a «dist-upgrade» on my Thinkpad T21 laptop under > Debian testing (xerver-xorg v7.3+10, kernel 2.6.24-6). > > Since then I have a very strange behavior of the «Alt-Gr» key under X > (works fine in a terminal outside of X). The key has an effect, but > not the good one. If I want to make a «#» I get a «#» plus a > linefeed. The pipe does not work at all. > > Thanks in advance for any help, > > Julien > > > Here is the content of the relevant xorg.conf section : > > ,---- > | Section "InputDevice" > | Identifier "Generic Keyboard" > | Driver "kbd" > | Option "XkbRules" "xorg" > | Option "XkbModel" "pc105" > | Option "XkbLayout" "fr" > | Option "XkbVariant" "latin9" > | EndSection > `----
I tried this configuration and it works for me. AltGr+3 produces "#" and AltGr+6 produces "|". I run Sid, but you should have the same versions of xserver-xorg-input-kbd (1:1.2.2-3) and xkb-data (1.2~cvs.20080501.1-1) if your Lenny system is up-to-date. I do have a newer kernel (2.6.25), but I think this is an Xorg issue and not a kernel problem. > Here is the result of xev on a AltGr keypress, and a AltGr+3 keypress : > > ,---- > | KeyPress event, serial 21, synthetic NO, window 0xe00001, > | root 0x46, subw 0x0, time 5134475, (622,377), root:(623,378), > | state 0x0, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen > YES, > | XLookupString gives 0 bytes: > | XmbLookupString gives 0 bytes: > | XFilterEvent returns: False [...] > | KeyPress event, serial 24, synthetic NO, window 0xe00001, > | root 0x46, subw 0x0, time 5135793, (622,377), root:(623,378), > | state 0x0, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen > YES, > | XLookupString gives 0 bytes: > | XmbLookupString gives 0 bytes: > | XFilterEvent returns: False > | > | KeyPress event, serial 24, synthetic NO, window 0xe00001, > | root 0x46, subw 0x0, time 5135897, (622,377), root:(623,378), > | state 0x88, keycode 12 (keysym 0x23, numbersign), same_screen YES, > | XLookupString gives 1 bytes: (23) "#" > | XmbLookupString gives 1 bytes: (23) "#" > | XFilterEvent returns: False That looks OK to me; I see the same with your configuration when I press the same keys. [...] > Here is the result of xmodmap -pke : [...] > | keycode 12 = quotedbl 3 numbersign cedilla numbersign cedilla This should work, numbersign is on Level3. > | keycode 15 = minus 6 bar brokenbar bar brokenbar This should work, bar (i.e. "|") is on Level3. > | keycode 113 = ISO_Level3_Shift [...] I compared my output for "xmodmap -pke" with yours. The only thing that diff turns up is that I have shifted Multi_key from keycode 227 to keycode 116 (where you have Super_R). I don't think this should make any difference. Can you post your modifier map, i.e. the output of "xmodmap -pm"? Maybe we find a clue in the Xorg log, e.g. with something liek this: egrep -i -A2 -B2 'keyb|kbd|xkb|xinput' /var/log/Xorg.0.log Which X terminal or other program do you use that show the keyboard problem? What is you locale setting? -- Regards, | http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]