You are not logged in.

#1 2012-02-05 13:50:06

Hickin
Member
Registered: 2009-01-30
Posts: 27

Unable to use the "Alt Gr"-button

Hello,

I've just installed Arch again after being on W7 for 2 last year.
But it seems that the "Alt Gr"-button wont work properly.

I'm using LXDE and I've tried to find an answear about the problem but so far nothing.

The layout I am using is se_SV and the Alt Gr button is essencital for us sweds since it is in the combaination to typ the @-sign.

I believe that the keyboard works properly outside LXDE so I would assume that the problem envolvs around LXDE.

Any ideas?

Offline

#2 2012-02-05 15:32:15

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Unable to use the "Alt Gr"-button

See if the following is any help: http://www.hermit.org/Linux/ComposeKeys.html

You can run xev in terminal to see how the Alt Gr key is listed.  You should be able to change it if necessary with xmodmap or xkb.  You can run xmodmap -pke in terminal to see what all your keys are currently set at.

Maybe this will help as well: http://forum.mandriva.com/en/viewtopic. … 94#p798594

Offline

#3 2012-02-07 10:23:43

Hickin
Member
Registered: 2009-01-30
Posts: 27

Re: Unable to use the "Alt Gr"-button

It would seem as the system does not respond at all at the button.
I've also changed to XFCE with the same problem so the problem lies somewere else.

I am not quite sure how to use the links you provided David but using xev in the terminal gives no response when pressing the button.

I might add that the button worked quite fine until in PCLinuxOS before I installed Arch.

Offline

#4 2012-02-07 11:38:10

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Unable to use the "Alt Gr"-button

Usually xev will give some response, even if the no keycode is listed.

See what showkey displays and check for scancodes.

https://wiki.archlinux.org/index.php/Ex … board_Keys

It is possible you are encountering a kernel bug, or chose the wrong keyboard layout for your keyboard.

Last edited by David Batson (2012-02-07 11:39:20)

Offline

#5 2012-02-07 12:18:34

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Unable to use the "Alt Gr"-button

Oops! Comment not needed.

Last edited by thisoldman (2012-02-07 12:20:40)

Offline

#6 2012-02-07 21:28:13

Hickin
Member
Registered: 2009-01-30
Posts: 27

Re: Unable to use the "Alt Gr"-button

First of all thanks for the replay, I've looked into xve once more seeing how wrong I was, the button do give responses:

KeyPress event, serial 34, synthetic NO, window 0x2c00001,
    root 0x15d, subw 0x0, time 46233423, (405,25), root:(1019,454),
    state 0x10, keycode 108 (keysym 0xff7e, Mode_switch), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2c00001,
    root 0x15d, subw 0x0, time 46233515, (405,25), root:(1019,454),
    state 0x10, keycode 108 (keysym 0xff7e, Mode_switch), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

which honestly gives me nothing since I am not familiare with this tool.

I've checked the layout once more and since I can type the Swedish letters as å, ä and ö I would say the layout is fine.

Offline

#7 2012-02-08 01:59:24

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Unable to use the "Alt Gr"-button

You can use xmodmap to change the keysym for a specific keycode (such as 108).

Some info on xmodmap below:
https://bbs.archlinux.org/viewtopic.php … 81#p805481

Offline

#8 2012-06-12 19:36:53

c0m4
Member
From: Sweden
Registered: 2012-05-20
Posts: 2
Website

Re: Unable to use the "Alt Gr"-button

Is there a solution to this problem? I have the exact same setup - and the same problem: Arch with LXDE, Swedish keyboard and no working Alt Gr key.

Offline

#9 2012-06-26 22:23:06

c0m4
Member
From: Sweden
Registered: 2012-05-20
Posts: 2
Website

Re: Unable to use the "Alt Gr"-button

Solved:

The default xmodmap is useless for swedish keyboards since most keymappings looks like this:

keycode  11 = 2 quotedbl 2 quotedbl at twosuperior

This is the mapping for key the "2". The symbols after the '=' is:
2: produces '2' by typing 2 without modifier
quotedbl: produces '"' by typing 2 with shift
2: produces '2' by typing 2 with Multi_key (Alt_Gr)
quotedbl: produces '"' by typing 2 with shift+Multi_key (Alt_Gr)
The rest of the mappings is unaccesible for my keyboard. See the problem?

Changing the keycode mapping with

xmodmap -e "keycode  11 = 2 quotedbl at twosuperior"

gives

2: produces '2' by typing 2 without modifier
quotedbl: produces '"' by typing 2 with shift
at: produces '@' by typing 2 with Multi_key (Alt_Gr)
twosuperior: produces '²' by typing 2 with shift+Multi_key (Alt_Gr)

To do the same for all relevant keys I kopied the keymap

xmodmap -pke > ~/.xmodmaprc

I edited the ~/.xmodmaprc file like above for all relevant keycodes and then loaded the file with

xmodmap ~/.xmodmaprc

on startup wia the autostart script for the LXDE session

Offline

Board footer

Powered by FluxBB