Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [SOLVED] xorg-server: Pressing 'down'/'right ctrl' keys yields newline
Date: Thu, 13 May 2010 21:48:32
Message-Id: hshs1b$3v0$1@dough.gmane.org
In Reply to: Re: [gentoo-user] [SOLVED] xorg-server: Pressing 'down'/'right ctrl' keys yields newline by Amit Dor-Shifer
1 On 05/13/2010 03:22 AM, Amit Dor-Shifer wrote:
2 >
3 >
4 > On 05/13/10 00:54, walt wrote:
5 >> On 05/12/2010 05:25 AM, Amit Dor-Shifer wrote:
6 >>> Hi all.
7 >>> After updating world, xorg-1.5.3-r6 to 1.7.6 among others, I'm now faced with a/m issue.
8 >>> 1. left ctrl key works fine, so does the down arrow key on the numpad.
9 >>> 2. Seems like the "down" key generates a double sequence: both the "down" event and a newline.
10 >>> I've no idea how to proceed w/this. Any clues would be appreciated.
11 >>
12 >> With every version of X11, the amount of stuff in xorg.conf gets less,
13 >> as part of the xorg design. I can see from your xorg.log that you have
14 >> things in xorg.conf that shouldn't be there any longer. Specifically,
15 >> you seem to be using the keyboard and mouse drivers *and* evdev at the
16 >> same time, which is wrong -- evdev has replaced the mouse and keyboard
17 >> drivers, and you don't need an "Input device" section for either of them
18 >> now.
19
20 I should have said *I* don't need an Input device section any more :)
21
22 Actually I moved some of my custom stuff from xorg.conf to the hal config
23 files -- but hal is deprecated now and I should it back to xorg.conf again.
24 Thanks for the reminder.
25
26 >> I suggest you generate a new xorg.conf by running "X -configure" and
27 >> use the result as a good place to add a few custom things like these:
28 >> (**) Option "xkb_layout" "en_US,ru"
29 >> (**) Option "xkb_variant" ",winkeys"
30 >> (**) Option "xkb_options" "grp:shift_toggle,grp_led:scroll"
31 >>
32 >>
33 > Thanks. X -configure solved it.
34 > As long as we're at the subject:Those options you're mentioning, would they go under the ""Keyboard0" device?
35 > I Added some options there:
36 > Section "InputDevice"
37 > Identifier "Keyboard0"
38 Driver "kbd" <******* "kbd" driver is obsolete, use "evdev" or just delete this line
39 > # added - begin
40 > Option "xkb_layout" "en_US,il"
41 > Option "xkb_variant" ",winkeys"
42 > Option "xkb_options" "grp:rwin_toggle -option grp_led:scroll us,il"
43 > Option "xkb_options" "grp:lwin_toggle -option grp_led:scroll us,il"
44 > # added - end
45 > EndSection
46 >
47 > , yet I don't see evidence of them getting read in Xorg.0.log.
48 > Rather, I see the following:
49 >
50 > <Xorg.0.log>
51 > (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
52 > (**) Option "xkb_rules" "evdev"
53 > (**) Option "xkb_model" "pc104"
54 > (**) Option "xkb_layout" "en_US,ru"
55 > (**) Option "xkb_variant" ",winkeys"
56 > (**) Option "xkb_options" "grp:shift_toggle,grp_led:scroll"
57 > </Xorg.0.log>
58
59 See my comment above. Don't use the "kbd" driver. Xorg seems to use evdev by default now
60 instead of "kbd" and "mouse".
61
62 The (**) means that X is reading those lines from xorg.conf. Are you sure you are really
63 using the new xorg.conf and not the old one by mistake? Xorg.log tells you which conf file
64 it is reading.
65
66 > Also, X complains "(WW) The directory "/usr/share/fonts/TTF/" does not exist.", I actually removed that reference from /etc/x11/xorg.conf. Yes it still insists on reading it.
67 >
68 > Is there some cfg cache used by X, perhaps?
69
70 Depending on your configuration, there may be some font and/or keyboard stuff in your own
71 home directory. You may need to search or grep some subdirectories to find it if it's not
72 obvious.

Replies