On Tue, May 08, 2007 at 08:47:49PM +0200, Brice Goglin wrote: > Marcel Sebek wrote: > > xlog.2 is just xserver log after switching to the new version. > > As you can see, the X server failed to start, > > > > Section "InputDevice" > Identifier "mouse" > Driver "evdev" > Option "CorePointer" > Option "Device" "/dev/input/psmouse" > # Option "evBits" "+1-2" > # Option "keyBits" "~272-287" > # Option "relBits" "~0-2 ~6 ~8" > # Option "Pass" "3" > # Option "CorePointer" > EndSection > > (EE) PreInit returned NULL for "mouse" > (EE) No Input driver matching `mouse' > > I guess it failed because evdev only supports device named > /dev/input/eventX (as explained in the manpage). Hmm, I missed that, previous version worked with it. > > > so I uncommented that > > commented lines in Device section and commented the line Option "Device". > > > > So in the end, you had the following lines, right? > > Section "InputDevice" > Identifier "mouse" > Driver "evdev" > Option "CorePointer" > # Option "Device" "/dev/input/psmouse" > Option "evBits" "+1-2" > Option "keyBits" "~272-287" > Option "relBits" "~0-2 ~6 ~8" > Option "Pass" "3" > Option "CorePointer" > EndSection Yes. > > And you got your mouse to work with buttons swapped? Yes. > > (**) mouse-isa0060/serio1/input0: Core Pointer > (II) mouse-isa0060/serio1/input0: Found 4 relative axes. > (II) mouse-isa0060/serio1/input0: Configuring as pointer. > (**) mouse-isa0060/serio1/input0: HWHEELRelativeAxisButtons: 6 7. > (**) mouse-isa0060/serio1/input0: WHEELRelativeAxisButtons: 4 5. > (II) mouse-isa0060/serio1/input0: Found 5 mouse buttons > (**) mouse-isa0060/serio1/input0: Configuring 4 relative axes. > (II) mouse-isa0060/serio1/input0: Configured 9 mouse buttons > (EE) No Input driver matching `mouse' > (II) XINPUT: Adding extended input device "mouse-isa0060/serio1/input0" > (type: MOUSE) > (II) XINPUT: Adding extended input device "evdev brain" (type: evdev brain) > (II) XINPUT: Adding extended input device "ps2-kbd" (type: KEYBOARD) > (**) mouse-isa0060/serio1/input0: 4 valuators. > (**) ../../src/evdev_btn.c (166): Registering 9 buttons. > (II) mouse-isa0060/serio1/input0: Init > (II) evdev brain: Rescanning devices (2). > (II) mouse-isa0060/serio1/input0: On > (II) mouse-isa0060/serio1/input0: Off > (II) UnloadModule: "evdev" > > I am not familiar with evdev, but the above does not look very good to > me. Are you sure that your evdev options are correct? Or did you just > copy the manpage example? I tried the new module with old config with just changing the device to /dev/input/event5 (which is the file which is linked by /dev/input/psmouse), buttons got swapped too, X log was the same. Perhaps there is a configuration which would work. I have quite strange mouse, two normal buttons, one extra button, one wheel-button. The extra button has number 6 (in xev output) with both modules. With the old version, wheel button (middle) is 2 and right is 3, and with the new version, wheel is 3 and right is 2. In input-events output, the extra button is named BTN_SIDE. -- Marcel Sebek
Attachment:
signature.asc
Description: Digital signature