Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12360 - problems with keyboard mappings in X when using xdm or gdm.
Summary: problems with keyboard mappings in X when using xdm or gdm.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-17 22:18 UTC by Miguel Sousa Filipe
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
head of the xinit output. (xinit.log,1005 bytes, text/plain)
2002-12-26 14:47 UTC, Miguel Sousa Filipe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Sousa Filipe 2002-12-17 22:18:31 UTC
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
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-18 05:51:18 UTC
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 ...
Comment 2 Miguel Sousa Filipe 2002-12-18 08:08:43 UTC
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.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-18 09:20:47 UTC
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.
Comment 4 Miguel Sousa Filipe 2002-12-18 12:47:31 UTC
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! 
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-18 16:07:58 UTC
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 ...
Comment 6 Miguel Sousa Filipe 2002-12-19 11:40:31 UTC
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 ...
Comment 7 Miguel Sousa Filipe 2002-12-26 14:47:43 UTC
Created attachment 6756 [details]
head of the xinit output.

notice the "couldn't load XKB keymap, failing back to pre-XKB keymap"
Comment 8 Miguel Sousa Filipe 2002-12-26 14:48:19 UTC
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.
Comment 9 Miguel Sousa Filipe 2003-01-15 12:55:53 UTC
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?
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-17 05:42:42 UTC
Hopefully it was due to the patch we dropped that cuased issues with xkb.
Good results for other similar bugs ...