Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Gentoo decapitated
Date: Sun, 16 May 2010 18:26:25
Message-Id: hspdbd$htq$1@dough.gmane.org
In Reply to: Re: [gentoo-user] Gentoo decapitated by Kevin O'Gorman
1 On 05/16/2010 08:43 AM, Kevin O'Gorman wrote:
2 > On Sun, May 16, 2010 at 12:11 AM, Mick <michaelkintzios@×××××.com <mailto:michaelkintzios@×××××.com>> wrote:
3 >
4 > On Sunday 16 May 2010 02:24:10 Kevin O'Gorman wrote:
5 > > On Wed, May 12, 2010 at 3:33 PM, Dale <rdalek1967@×××××.com <mailto:rdalek1967@×××××.com>> wrote:
6 > > > Mine has xf86-* drivers as well. OP, do you have your setting in
7 > > > make.conf correctly? Mine looks like this:
8 > > >
9 > > > INPUT_DEVICES="keyboard mouse evdev"
10 > > >
11 > > > I do NOT use hal so your settings may need to be different but you do
12 > > > need the line tho.
13 > > >
14 > > > I have INPUT_DEVICES="evdev", and adding either of the others makes X go
15 > >
16 > > back to not starting at all.
17 >
18 > That's right, you will also then need to install the appropriate x86 driver;
19 > e.g. x11-drivers/xf86-input-mouse
20 >
21 >
22 > You mean like this, the way it's always been? Or is there something more specific I have to do?
23 > treat src # eix x11-drivers/xf86-input-mouse
24 > [I] x11-drivers/xf86-input-mouse
25 > Available versions: 1.5.0{tbz2} {debug}
26 > Installed versions: 1.5.0{tbz2}(09:38:05 PM 05/11/2010)(-debug)
27 > Homepage: http://xorg.freedesktop.org/
28 > Description: X.Org driver for mouse input devices
29 >
30 > treat src #
31 >
32 > BTW, the most recent boot started X without the mouse working, but these two lines appear in /var/log/Xorg.0.log
33 >
34 > line 44-47: (==) |-->Input Device "evdev"
35 > (==) |-->Input Device "<default keyboard>"
36 > (==) The core pointer device wasn't specified explicitly in the layout.
37 > Using the first mouse device.
38 >
39 >
40 > line 457: (==) MACH64(0): Silken mouse enabled
41 >
42 > (MACH64 is my video card)
43 > (My mouse is a Microsoft optical with a USB cord that I use with a PS/2 adapter and a KVM switch, which works with Live disks. I have no idea what Silken is)
44 >
45 >
46 > These are the only lines with the word "mouse" in them.
47
48 I just did the experiment of building xorg-server with the hal useflag *off*, and
49 found that neither keyboard nor mouse worked until I restored the two InputDevice
50 sections that I commented out when I switched to evdev+hal:
51
52 Section "ServerLayout"
53 Identifier "X.org Configured"
54 Screen 0 "Screen0" 0 0
55 Option "AIGLX" "false"
56 InputDevice "Mouse0" "CorePointer" <------ restored these two lines
57 InputDevice "Keyboard0" "CoreKeyboard" <-------
58 EndSection
59
60 Section "InputDevice"
61 Identifier "Keyboard0"
62 Driver "evdev"
63 Option "Device" "/dev/input/event3"
64 EndSection
65
66 Section "InputDevice"
67 Identifier "Mouse0"
68 Driver "evdev"
69 Option "Protocol" "auto"
70 Option "Device" "/dev/input/event4"
71 Option "Emulate3Buttons" "True"
72 EndSection
73
74 Note those "Device" entries. I found those devices in /dev/input/by-path/:
75
76 $ls -l /dev/input/by-path/
77 lrwxrwxrwx 1 root root 9 2010-05-16 10:40 platform-i8042-serio-0-event-kbd -> ../event3
78 lrwxrwxrwx 1 root root 9 2010-05-16 10:40 platform-i8042-serio-1-event-mouse -> ../event4
79 lrwxrwxrwx 1 root root 9 2010-05-16 10:40 platform-i8042-serio-1-mouse -> ../mouse0
80
81 "evdev" uses "event-devices", hence the name. I don't use the mouse0 device at
82 all but I'm guessing I would if I used the "mouse" driver instead of "evdev".
83
84 Starting with xorg-server-1.8 the mouse and keyboard Inputdevice sections are no
85 longer needed (not sure about synaptics, though), because the server uses evdev
86 automatically (no manual configuration like cited above) and ignores hal completely.
87
88 Using the evdev driver alone, and xorg-server built without hal, I get this:
89
90 (**) Option "CorePointer"
91 (**) Mouse0: always reports core events
92 (**) Mouse0: Device: "/dev/input/event4"
93 (II) Mouse0: Found 9 mouse buttons
94 (II) Mouse0: Found scroll wheel(s)
95 (II) Mouse0: Found relative axes
96 (II) Mouse0: Found x and y relative axes
97 (II) Mouse0: Configuring as mouse
98 (**) Option "Emulate3Buttons" "True"
99 (II) Mouse0: Forcing middle mouse button emulation on.
100 (II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
101 (**) Mouse0: (accel) keeping acceleration scheme 1
102 (**) Mouse0: (accel) acceleration profile 0
103 (II) Mouse0: initialized for relative axes.
104 (**) Option "CoreKeyboard"
105 (**) Keyboard0: always reports core events
106 (**) Keyboard0: Device: "/dev/input/event3"
107 (II) Keyboard0: Found keys
108 (II) Keyboard0: Configuring as keyboard
109 (II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
110 (**) Option "xkb_rules" "evdev"
111 (**) Option "xkb_model" "evdev"
112 (**) Option "xkb_layout" "us"