You are not logged in.
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
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
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
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
Oops! Comment not needed.
Last edited by thisoldman (2012-02-07 12:20:40)
Offline
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
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
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
Solved:
The default xmodmap is useless for swedish keyboards since most keymappings looks like this:
keycode 11 = 2 quotedbl 2 quotedbl at twosuperiorThis 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 > ~/.xmodmaprcI edited the ~/.xmodmaprc file like above for all relevant keycodes and then loaded the file with
xmodmap ~/.xmodmaprcon startup wia the autostart script for the LXDE session
Offline