Here's the problem: running fluxbox through startx gives me a full working X with the keyboard just has I setup in /etc/X11/XF86Config ... (portuguese keymap is the case) if I run fluxbox or gnome using XDM/GDM .. the alt-gr key doesn't work.. meaning.. can't email no one since the <at> key is <alt-gr>-2. xkbwatch shows me that <alt-gr> is working has the regular <alt> key. I have this problem a long time, the first time I detected it was with kdm when I tried kde3 out... but just now that I installed gnome I realised that this still happens... My guess is some bad keyboard setup in the config scripts of GDM/XDM.. and I bet that KDM still suffers from the same problem. x11-base/xfree Latest version available: 4.2.1 Latest version installed: 4.2.1 tell me if any kind of extra information is needed to fix this! until then.. I'm starting my window manager with startx
Try to add 'xmodmap $HOME/.Xmodmap' (or whatever your modmap file is) just before 'exec $command' at the bottom of /etc/X11/Sessions/Gnome, and let me know if it fixes ...
But I don't use Xmodmap, i never used it .. the X keyboard setup in XF86Config was allways the method to configure the keyboard in X I used. The point is.. I don't have a Xmodmap file.
Ok, fact is that while /etc/X11/xinit/xinitrc that startx runs, are kept very simple, the /etc/X11/Sessions/Gnome tries to setup/guess things more. It actually calls setxkbmap a few times. Thus, either: 1) edit /etc/X11/Sessions/Gnome and comment everthing that has to do with changing the mappings using setxkbmap and see if that fixes it, 2) or try to set it yourself in .gnomerc or .xsession like so: setxkbmap -option grp:switch,grp:shift_toggle,grp_led:scroll il or whatever your setup are.
Comenting in /etc/X11/Sessions/Gnome any lines related to the keyboard setup did NOT solve the problem. I'm trying option 2) using setxkbmap .. but i don't know how to use it.. i've read the man page.. and.. didn't learn nothing... :-\ i'm trying things like: setxkbmap -symbols pt setxkbmap -keymap pt setxkbmap -layout pt all give: Couldn't interpret _XKB_RULES_NAMES property Use defaults: rules - 'xfree86' model - 'pc101' layout - 'us' Couldn't find rules file (xfree86) trying the same comands in a good(read: keymap OK) X session gives me a diferent output: Couldn't find rules file (xfree86) where is that "rules" file? :-) thanks for the help anyhow!
To be honest, I never had to hassle with LANG or keyboard mappings, so not really familiar with it. Ill read up when I get the time, and try to help you ...
That's okay.. but I bet this is in some script that's used by: XDM, KDM, GDM. i have a exam saturday.. but after that i'll dig up so "trace" the problem.. i did this before.. and i vagelly recall having strangely something to do with some directory permissions in /var.. I have to go look at it better.. the anoying part is that there are ZILLIONS of scripts that seem to be involved in seting/starting up X ...
Created attachment 6756 [details] head of the xinit output. notice the "couldn't load XKB keymap, failing back to pre-XKB keymap"
Well, I don't know why.. but this problem got agravated, now even xinit or startx will not load the correct keymap specified in /etc/X11/XF86Config. the output of xinit is attached in this file.. after this post i'll run it through strace to try and find the problem.
Keyboard mappings are back to normal, don't ask me why, don't ask me how.. haven't got a clue. should I put the state to FIXED, WONTFIX, INVALID, what?
Hopefully it was due to the patch we dropped that cuased issues with xkb. Good results for other similar bugs ...