I had some trouble to get my Swedish keyboard to work with the altGr-button in X11.
I finely solved the issue and just wanted to share my solution.
created the dir and file:
cd /etc/X11; mkdir xorg.conf.d
cd xorg.conf.d; >30-keyboard.conf
edit the file and put the following in it:
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "on"
Option "XkbLayout" "se"
Option "XkbModel" "pc105"
EndSection
thanks fore an awesome dist. <3