Gentoo Archives: gentoo-user

From: Fred Elno <raptor@××××××××.fr>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Xorg-server and my mouse
Date: Fri, 10 Apr 2009 06:47:16
Message-Id: 697a83d19198f67883af9ebdded1f634.squirrel@drakonix.fr
In Reply to: [gentoo-user] Re: Xorg-server and my mouse by Hartmut Figge
1 > Dale:
2 >
3 >>Did my etc-update and went to log into KDE. No keyboard. No
4 >>mouse. No nothing. I knew the new xorg-server update was going to make
5 >>me change a few things but I thought I would be ABLE to change the
6 >>thing.
7 >
8 > *g*
9 >
10 > Today 'emerge --sync' followed by 'emerge -uDN world' changed my xorg to
11 > 1.5. After 'startx' i had my usual icewm screen but no working mouse or
12 > keyboard.
13 >
14 >>I had to unplug the computer then add softlevel=boot to get to
15 >>where I could even fix the stupid thing.
16 >
17 > I preferred ssh from another computer. ;)
18 >
19 >>While I was trying to recover and reading, it appears I have to update
20 >>my kernel for this thing to work.
21 >
22 > That depends. Look in 'sudo make menuconfig' at Device Drivers->Input
23 > device support for Event interface. If available and unchecked, select
24 > it and recompile your kernel.
25 >
26 > I had done so because it was mentioned in the 'Xorg 1.5 Upgrade Guide',
27 > http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml
28 >
29 > Wasn't enough, though.
30 >
31 > ----- Xorg.0.log -----
32 > (EE) Failed to load module "evdev" (module does not exist, 0)
33 > ---------------
34 >
35 > But 'modprobe evdev' succeeded. *g*
36 >
37 > After pulling out some hairs and examining 'emerge -pv xorg-server'
38 > closer i changed
39 >
40 > ----- /etc/make.conf -----
41 > INPUT_DEVICES="keyboard mouse"
42 > ----------------
43 >
44 > to
45 >
46 > ----- /etc/make.conf -----
47 > INPUT_DEVICES="keyboard mouse evdev"
48 > ---------------
49 >
50 > and recompiled xorg-server. Now i had working mouse and keyboard under X.
51 >
52 > Then i noticed that my german keyboard layout was gone. The Upgrade
53 > Guide was not very clear in this point. At least for me.
54 >
55 I have the same problem for my French keyboard layout, so here is what I do:
56 Change my section InputDevice in /etc/X11/xorg.conf from:
57
58 Section "InputDevice"
59 Identifier "Keyboard0"
60 Driver "kbd"
61 Option "AutoRepeat" "500 30"
62 Option "XkbRules" "xorg"
63 Option "XkbModel" "pc105"
64 Option "XkbLayout" "fr"
65 EndSection
66
67 To this:
68
69 Section "InputDevice"
70 Identifier "Keyboard0"
71 Option "AutoRepeat" "500 30"
72 Option "CoreKeyboard"
73 Option "XkbLayout" "fr"
74 Option "XkbModel" "evdev"
75 Option "XkbRules" "xorg"
76 Driver "evdev"
77 EndSection
78
79 After that I have to find the fdi file for my keyboard and change it according to
80 my xorg.conf:
81 Here is what I have in the fdi file:
82
83 $ nano /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi
84 <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
85 <deviceinfo version="0.2">
86 <device>
87 <match key="info.capabilities" contains="input.keymap">
88 <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
89 </match>
90
91 <match key="info.capabilities" contains="input.keys">
92 <merge key="input.xkb.rules" type="string">xorg</merge>
93
94 <!-- If we're using Linux, we use evdev by default (falling back to
95 keyboard otherwise). -->
96 <merge key="input.xkb.model" type="string">keyboard</merge>
97 <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
98 string="Linux">
99 <merge key="input.xkb.model" type="string">evdev</merge>
100 </match>
101
102 <merge key="input.xkb.layout" type="string">fr</merge>
103 <merge key="input.xkb.variant" type="string" />
104 </match>
105 </device>
106 </deviceinfo>
107
108 After that killing X, then restarting hald daemon and when I restart X
109 I have my French Layout back.
110
111 Hope it's help
112
113 > Time for a break, so i decided to disable hal for a while, drink some
114 > coffee and smoke some pipes. ;)
115 >
116 > ----- /etc/X11/xorg.conf -----
117 > Section "ServerFlags"
118 > Option "AutoAddDevices" "false"
119 > EndSection
120 > ---------------
121 >
122 > Now i have commented out these lines because i found a way for my german
123 > keyboard layout. Hm, just noticed that i have also to do something for
124 > my compose key. Sigh.
125 >
126 > Hartmut
127 >
128 >
129 >
130
131
132 =====================================
133 * Site web: http://www.drakonix.fr *
134 =====================================

Replies

Subject Author
[gentoo-user] Re: Xorg-server and my mouse Hartmut Figge <h.figge@×××.de>