You are not logged in.

#1 2009-06-05 09:46:34

robrene
Member
Registered: 2009-04-16
Posts: 168

USB Mouse clicks get registered twice, sometimes

Hello all

I am using Arch Linux on my Thinkpad T61, and I usually have a USB mouse hooked up to it (Logitech Nano).

A while ago I started to do some tweaks in order to enable the Synaptics TouchPad and get proper scrolling behaviour on the TrackPoint. However, I must have done something, because ever since, many of my USB mouse clicks get registered as a double click (not always, but often).

I started doing some troubleshooting today, by commenting out parts of my xorg.conf file (I use evdev hotplugging, but I tought maybe Xorg was registering my mouse aswell) and I even booted up without an xorg.conf once, to no avail. The problem definately does not lie there.

The only policy file I have that has anything to do with a mouse is /etc/hal/fdi/policy/mouse-wheel.fdi.

[rob@rob-thinkpad ~]$ cat /etc/hal/fdi/policy/mouse-wheel.fdi 
<match key="info.product" string="TPPS/2 IBM TrackPoint">
 <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
 <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
 <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
</match>

Also, I found multiple entries for my mouse in /proc/bus/input/devices:

[rob@rob-thinkpad ~]$ egrep "Name|Handlers" /proc/bus/input/devices 
N: Name="Macintosh mouse button emulation"
H: Handlers=mouse0 event0 
N: Name="AT Translated Set 2 keyboard"
H: Handlers=kbd event1 
N: Name="ThinkPad Extra Buttons"
H: Handlers=kbd event2 
N: Name="Power Button (FF)"
H: Handlers=kbd event3 
N: Name="Lid Switch"
H: Handlers=event4 
N: Name="Sleep Button (CM)"
H: Handlers=kbd event5 
N: Name="Video Bus"
H: Handlers=kbd event6 
N: Name="PC Speaker"
H: Handlers=kbd event7 
N: Name="SynPS/2 Synaptics TouchPad"
H: Handlers=mouse1 event8 
N: Name="Logitech USB Receiver"
H: Handlers=mouse2 event9 
N: Name="Logitech USB Receiver"
H: Handlers=kbd event10 
N: Name="TPPS/2 IBM TrackPoint"
H: Handlers=mouse3 event11 
N: Name="ThinkPad HDAPS joystick emulation"
H: Handlers=event12 js0 
N: Name="ThinkPad HDAPS accelerometer data"
H: Handlers=event13 js1

Could someone please help me solve this problem, for I have no more ideas how to go at this... Thanks

Last edited by robrene (2009-06-05 09:47:18)


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

#2 2009-06-05 10:43:15

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: USB Mouse clicks get registered twice, sometimes

Hi!

Did you look at your /var/log/Xorg* ?

If you p.e. define one mouse in Xorg.conf and one is automatically detected by HAL, you get all events twice (and normal behaviour while one of the "two" mice is unplugged by hal or for other reasons not working).

I had that, when I installed the "normal mouse drivers" package for xorg (I think it might have been xf86-input-mouse) despite the fact that the mouse has already been discovered by that evdev thing. After removing [xf86-input-mouse I guess] with pacman, everything was working fine again.

Good luck!

Last edited by whoops (2009-06-05 10:44:14)

Offline

#3 2009-06-05 11:24:54

robrene
Member
Registered: 2009-04-16
Posts: 168

Re: USB Mouse clicks get registered twice, sometimes

It seems there are multiple entries for my USB mouse in /var/log/Xorg.0.log!

(II) config/hal: Adding input device Logitech USB Receiver
(**) Logitech USB Receiver: always reports core events
(**) Logitech USB Receiver: Device: "/dev/input/event9"
(II) Logitech USB Receiver: Found 16 mouse buttons
(II) Logitech USB Receiver: Found x and y relative axes
(II) Logitech USB Receiver: Found scroll wheel(s)
(II) Logitech USB Receiver: Configuring as mouse
(**) Logitech USB Receiver: YAxisMapping: buttons 4 and 5
(**) Logitech USB Receiver: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: MOUSE)
(**) Logitech USB Receiver: (accel) keeping acceleration scheme 1
(**) Logitech USB Receiver: (accel) filter chain progression: 2.00
(**) Logitech USB Receiver: (accel) filter stage 0: 20.00 ms
(**) Logitech USB Receiver: (accel) set acceleration profile 0
(...)
(II) config/hal: Adding input device Logitech USB Receiver
(**) Logitech USB Receiver: always reports core events
(**) Logitech USB Receiver: Device: "/dev/input/event10"
(II) Logitech USB Receiver: Found 1 mouse buttons
(II) Logitech USB Receiver: Found scroll wheel(s)
(II) Logitech USB Receiver: Found keys
(II) Logitech USB Receiver: Configuring as keyboard
(II) Logitech USB Receiver: Adding scrollwheel support
(**) Logitech USB Receiver: YAxisMapping: buttons 4 and 5
(**) Logitech USB Receiver: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "de"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"

This looks pretty bad to me... The USB reciever is listed once as a mouse and once as a keyboard. Something went very awry here. This is the output after a fresh boot without xf86-input-mouse installed. The only remaining input drivers I have left from xf86 are:

[rob@rob-thinkpad ~]$ pacman -Q xf86-input-
xf86-input-evdev      xf86-input-keyboard   xf86-input-synaptics

edit
I removed xf86-input-keyboard as well now, still no change...

edit2
Aha! After some Googling and hooking up the mouse on a Windows XP machine, I noticed that this is a problem with this specific mouse. Under Windows XP, I get the same behaviour (often a double click, sometimes no click at all). It seems it is time to find the warranty papers for this baby. In case anyone ever reads this, this happened to me on a Logitech VX Nano, after about 5-10months of usage (I don't recall when I bought it exactly).

Last edited by robrene (2009-06-05 15:14:23)


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

Board footer

Powered by FluxBB