View previous topic :: View next topic |
Author |
Message |
adsicks n00b

Joined: 08 Sep 2012 Posts: 37 Location: Oklahoma, USA
|
Posted: Sun Apr 17, 2016 1:40 pm Post subject: Problem with mouse 'ghost' clicks in X windows? [SOLVED] |
|
|
I have scoured I the Internet trying to fix a problem I have been having with ghost or bounce clicks causing fake double clicks in X windows for about a month. Most people wind up being convinced they have a hardware problem. Playing around with xev as well as a javascript mouse event page almost had me convinced. But as I was digging into the man pages I remembered I could just snoop the raw events with:
Code: | cat /dev/input/mice |
After doing this I am convinced my hardware is fine. After several clicks, even some that caused bogus double clicks, I can confirm the were no extra clicks at that level of the driver.
Does anyone know of a workaround for th[/code]is problem?
Last edited by adsicks on Wed Apr 20, 2016 7:44 am; edited 1 time in total |
|
Back to top |
|
 |
acmondor n00b

Joined: 08 Aug 2014 Posts: 38 Location: Canadian Prairies
|
Posted: Sun Apr 17, 2016 3:14 pm Post subject: |
|
|
Back in January I encountered a very similar problem and at first I could not believe it was a hardware issue. However, I eventually installed x11-apps/xev to monitor things and xev did eventually show that my mouse was generating the clicks (usually a double click when I pressed a button only once). So, I took it mouse apart, cleaned it and adjusted the button springs (required a careful dismantling of the buttons) and I'm happy to report that my 'ghost' click problem was cured. This mouse is used every day and it's been 'ghost' click free since the hardware tune up (about 3 months ago), so I definitely think your mouse could be the suspect. |
|
Back to top |
|
 |
adsicks n00b

Joined: 08 Sep 2012 Posts: 37 Location: Oklahoma, USA
|
Posted: Sun Apr 17, 2016 4:57 pm Post subject: |
|
|
This is exactly what I thought too until I went down to the kernel level and looked at the garbage in:
Code: |
cat /dev/input/mice |
My mouse click made a distinct backspace in the garbage. clicking while watching /dev/input carefully produced random double click events in X and in a javascript test when the actually even shown in /dev/input/mice was dead on to my clicks and consistent.....
What do you trust, the kernel or X?
This is a brand new mouse....
My old ancient Logitech/Dell mouse works fine.
Maybe to really test it to be sure I can write a script that counts the times that ASCII shows up in that node? |
|
Back to top |
|
 |
Buffoon Veteran


Joined: 17 Jun 2015 Posts: 1074 Location: EU or US
|
Posted: Sun Apr 17, 2016 5:41 pm Post subject: |
|
|
Are you using evdev or mouse driver? |
|
Back to top |
|
 |
acmondor n00b

Joined: 08 Aug 2014 Posts: 38 Location: Canadian Prairies
|
Posted: Sun Apr 17, 2016 11:46 pm Post subject: |
|
|
adsicks wrote: | This is exactly what I thought too until I went down to the kernel level and looked at the garbage in:
Code: |
cat /dev/input/mice |
My mouse click made a distinct backspace in the garbage. clicking while watching /dev/input carefully produced random double click events in X and in a javascript test when the actually even shown in /dev/input/mice was dead on to my clicks and consistent.....
What do you trust, the kernel or X?
This is a brand new mouse....
My old ancient Logitech/Dell mouse works fine.
Maybe to really test it to be sure I can write a script that counts the times that ASCII shows up in that node? |
When I run:
Code: |
cat /dev/input/mice |
or this for more meaningful output:
Code: |
cat /dev/input/mice | hexdump -C |
I only get output from mouse movements. Mouse clicks do nothing. To see the actual mouse clicks (and movement) from the kernel I did this (something I did not know back in January when I experienced the problem):
Code: |
cat /dev/input/by-id/usb-055d_1031-event-mouse | hexdump -C |
Note:
Code: |
ls -l /dev/input/by-id/usb-055d_1031-event-mouse
lrwxrwxrwx 1 root root 9 Apr 17 10:34 /dev/input/by-id/usb-055d_1031-event-mouse -> ../event4 |
So this also works:
Code: |
cat /dev/input/event4 | hexdump -C |
I recently wrote some code to deal with joystick buttons and in the process I learnt that input devices like mice and joystick send out an event each time there is a change in the hardware (eg button press or movement). These events are what's encoded in the hex data displayed when using the above command.
As far as which I would trust (kernel or X), I would probably say the kernel, assuming the mouse doesn't require a new driver that may not be fully proven. I also personally wouldn't assume the brand new mouse is problem free, unless it has been proven to be so in another computer or with another OS. |
|
Back to top |
|
 |
acmondor n00b

Joined: 08 Aug 2014 Posts: 38 Location: Canadian Prairies
|
Posted: Sun Apr 17, 2016 11:53 pm Post subject: |
|
|
Buffoon wrote: | Are you using evdev or mouse driver? |
In my case it's evdev, even though both are installed. I confirmed that using this:
Code: | # ps -e | grep X
root 3128 3122 0 10:35 tty7 00:00:47 /usr/bin/X ....
# lsof -p 3128 | grep -e evdev -e mouse
X 3128 root mem REG 8,3 100192 4994654 /usr/lib64/libevdev.so.2.1.10
X 3128 root mem REG 8,3 61088 4720453 /usr/lib64/xorg/modules/input/evdev_drv.so |
|
|
Back to top |
|
 |
MarioCorleone Guru


Joined: 29 Jun 2003 Posts: 327
|
Posted: Mon Apr 18, 2016 3:16 am Post subject: |
|
|
A buddy and I have come to the conclusion that this has to do with synaptics. He is running kubuntu with a synaptics touchpad, and I am running gentoo (obviously) E-0.20 with a synaptics clickpad. We both noticed "sensitive" "erratic jumping" "ghost double click" just extremely sensitive. I recall an update about a month ago or so, and that is when this all started, I'm in the process of downgrading synaptics and will report back ASAP. _________________ -Mario |
|
Back to top |
|
 |
adsicks n00b

Joined: 08 Sep 2012 Posts: 37 Location: Oklahoma, USA
|
Posted: Wed Apr 20, 2016 7:42 am Post subject: |
|
|
I added "libinput keyboard mouse" to my INPUT_DEVICES (left synaptics and evdev in) and did a:
Code: | emerge -1av @x11-module-rebuild |
and it is fixed.
Libinput support is in everything now due to Wayland I think is why....
I'm glad because I like my new mouse
Notes:
I looked at it with hexdump -C also... |
|
Back to top |
|
 |
|