[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#378543: middle and right buttons are swapped



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).

> 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

And you got your mouse to work with buttons swapped?

(**) 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?

Brice




Reply to: