You are not logged in.

#1 2006-10-07 20:41:17

billy
Member
From: Slovenia
Registered: 2006-09-13
Posts: 164

Xgl Alt-gr problem

I had only Xorg running on my laptop before and the alt-gr button was working ok. I recently installed xgl  and now the button is not working:( . I saw lots of posts of this problem but no solution.

My xmodmap output is:

xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_L (0x7d),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x71),  ISO_Level3_Shift (0x7c)

As xev tells me when i press the alt-gr button is recognized as ISO_Level3_Shift:

KeyPress event, serial 31, synthetic NO, window 0x2000001,
    root 0x52, subw 0x0, time 612349931, (171,-10), root:(176,41),
    state 0x0, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

And the output from xmodmap -pke is:

[url]
http://pastebin.ca/194346
[/url]

Does anyone know the sollution to this problem?

Offline

#2 2006-10-07 20:48:58

detto
Member
Registered: 2006-01-23
Posts: 510

Re: Xgl Alt-gr problem

echo 'keycode 113 = Mode_switch' >> ~/.Xmodmap

and a

xmodmap ~/.Xmodmap

If you use GNOME it will ask you to load your ~/.Xmodmap on start and there you can activate it to load it everytime you start your gnome-session smile

Offline

#3 2006-10-07 20:56:28

billy
Member
From: Slovenia
Registered: 2006-09-13
Posts: 164

Re: Xgl Alt-gr problem

it works !!!!!  big_smile
thanks a lot!

just a few more questions:
i have gdm and xfce4. is it possible to set this rule when gdm starts? will the xfce4 lookup at the ~.Xmodmap file when it is started?

Offline

#4 2006-10-07 21:32:36

detto
Member
Registered: 2006-01-23
Posts: 510

Re: Xgl Alt-gr problem

As far as i know Xfce4 doesn't have such a feature but you can easily add an autostart. Look in your xfce menu. THere must be an option (if you use -svn version).

Offline

#5 2008-04-13 18:40:27

philefou
Member
Registered: 2006-05-23
Posts: 15

Re: Xgl Alt-gr problem

The Alt Gr is not working in Gnome for me. I'm using 3 different layout and this is my Xorg section.  The 3 layouts work and I can change keyboard layout with CTRL+Shift as well...

Section "InputDevice"
        Identifier  "Keyboard1"
        Driver      "kbd"
        Option      "AutoRepeat" "500 30"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "ca,es,us"
        Option      "XkbVariant" "fr,basic,basic"
        Option      "XkbOptions" "grp:ctrl_shift_toggle"
EndSection

Last edited by philefou (2008-04-14 00:53:04)

Offline

Board footer

Powered by FluxBB