Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611248 - x11-base/xorg-server-1.19.1 duplicate mouse events
Summary: x11-base/xorg-server-1.19.1 duplicate mouse events
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-28 19:21 UTC by Joe Harvell
Modified: 2017-03-30 03:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
xorg-server log file (Xorg.0.log,71.09 KB, text/plain)
2017-02-28 19:21 UTC, Joe Harvell
Details
emerge --info (einfo.txt,6.73 KB, text/plain)
2017-02-28 19:22 UTC, Joe Harvell
Details
output of xinput list --long (xinputlist.txt,5.68 KB, text/plain)
2017-02-28 19:23 UTC, Joe Harvell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Harvell 2017-02-28 19:21:38 UTC
Created attachment 465594 [details]
xorg-server log file

I have only one keyboard and one mouse.  Sometimes the X-server gets into a state where pressing the left mouse button generates two ButtonPress/ButtonRelease events for a single press/release:

ButtonPress event, serial 40, synthetic NO, window 0x5a00001,
    root 0x4b9, subw 0x0, time 80885247, (55,108), root:(1959,165),
    state 0x0, button 1, same_screen YES

ButtonRelease event, serial 40, synthetic NO, window 0x5a00001,
    root 0x4b9, subw 0x0, time 80885295, (55,108), root:(1959,165),
    state 0x100, button 1, same_screen YES

ButtonPress event, serial 40, synthetic NO, window 0x5a00001,
    root 0x4b9, subw 0x0, time 80885310, (55,108), root:(1959,165),
    state 0x0, button 1, same_screen YES

ButtonRelease event, serial 40, synthetic NO, window 0x5a00001,
    root 0x4b9, subw 0x0, time 80885342, (55,108), root:(1959,165),
    state 0x100, button 1, same_screen YES


Once it gets in this state, maybe the duplicate events happen 1/3 of the time.  It comes and goes.

I only see this for the left mouse button.

When I press and hold the left mouse button and release only after several seconds, then the duplicate Press/Release sequence comes after the first Release:

ButtonPress event, serial 40, synthetic NO, window 0x5a00001,
    root 0x4b9, subw 0x0, time 81126422, (114,108), root:(2018,165),
    state 0x0, button 1, same_screen YES

ButtonRelease event, serial 40, synthetic NO, window 0x5a00001,
    root 0x4b9, subw 0x0, time 81128158, (114,108), root:(2018,165),
    state 0x100, button 1, same_screen YES

ButtonPress event, serial 40, synthetic NO, window 0x5a00001,
    root 0x4b9, subw 0x0, time 81128166, (114,108), root:(2018,165),
    state 0x0, button 1, same_screen YES

ButtonRelease event, serial 40, synthetic NO, window 0x5a00001,
    root 0x4b9, subw 0x0, time 81128182, (114,108), root:(2018,165),
    state 0x100, button 1, same_screen YES


Note the times of the last 3 are all close together.

I don't think this is a hardware issue, because I am not the first person to report this (http://superuser.com/questions/750818/x11-evdev-mouse-generates-duplicate-events).  This report was from 2014.

I also have had this happen before years ago on the same system as today (maybe around 2014), but eventually it went away (I upgrade packages frequently).  I recently did a major system upgrade.
Comment 1 Joe Harvell 2017-02-28 19:22:29 UTC
Created attachment 465596 [details]
emerge --info
Comment 2 Joe Harvell 2017-02-28 19:23:16 UTC
Created attachment 465598 [details]
output of xinput list --long
Comment 3 Joe Harvell 2017-02-28 19:24:50 UTC
jharvell@wolfhound ~ $ uname -a
Linux wolfhound 4.10.0-jchlb-2235ea3 #1 SMP PREEMPT Sat Feb 25 18:25:27 MST 2017 x86_64 Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz GenuineIntel GNU/Linux
jharvell@wolfhound ~ $ eix sys-apps/systemd
[I] sys-apps/systemd
     Available versions:  226-r2(0/2) (~)231(0/2) (~)232(0/2) **9999(0/2) {acl apparmor audit build cryptsetup curl doc elfutils (+)gcrypt gnuefi http idn importd +kdbus +kmod +lz4 lzma nat pam policykit qrcode +seccomp selinux ssl sysv-utils test vanilla xkb ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  232(21:38:23 19/02/2017)(acl gcrypt idn kmod lz4 pam policykit seccomp ssl -apparmor -audit -build -cryptsetup -curl -doc -elfutils -gnuefi -http -importd -lzma -nat -qrcode -selinux -sysv-utils -test -vanilla -xkb ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://www.freedesktop.org/wiki/Software/systemd
     Description:         System and service manager for Linux

jharvell@wolfhound ~ $ eix x11-base/xorg-server
[I] x11-base/xorg-server
     Available versions:  1.12.4-r7(0/1.12.4) 1.15.2-r4(0/1.15.2) 1.17.4(0/1.17.4) 1.18.4(0/1.18.4) [M](~)1.18.4-r1(0/1.18.4)[1] (~)1.19.1(0/1.19.1) **9999(0/9999) {debug dmx doc elogind glamor ipv6 kdrive libressl minimal nptl selinux static-libs +suid systemd tslib +udev unwind wayland xephyr xnest xorg xvfb}
     Installed versions:  1.19.1(01:20:47 20/02/2017)(glamor ipv6 suid systemd udev wayland xorg -debug -dmx -doc -kdrive -libressl -minimal -selinux -static-libs -tslib -unwind -xephyr -xnest -xvfb)
     Homepage:            https://www.x.org/wiki/
     Description:         X.Org X servers

[1] "seden" /var/lib/layman/seden
Comment 4 Joe Harvell 2017-02-28 19:29:19 UTC
The kernel version reported by uname....

Linux wolfhound 4.10.0-jchlb-2235ea3 #1 SMP PREEMPT Sat Feb 25 18:25:27 MST 2017 x86_64 Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz GenuineIntel GNU/Linux
jharvell@wolfhound

is actually just v4.10 (commit shown below).  The -jchlb-2235ea3 is just a reference to a git repo where I keep track of what kernel config I had and what the contents of my custom initramfs are.

jharvell@wolfhound ~/git/linux-build/linux $ git --no-pager show v4.10
tag v4.10
Tagger: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Sun Feb 19 14:34:08 2017 -0800

Linux 4.10
-----BEGIN PGP SIGNATURE-----

iQEcBAABAgAGBQJYqh1gAAoJEHm+PkMAQRiGMlYH/A1GkDfcx5wmdc6wuMit2vim
O/8aGsq2m+TyfjNmMR51nXroZaziW/zTtOyiBgaEEK9HAuEJhd1omq6TvLbeIoF2
QBQKUsu06jsxtYazm91XOCHBHy0uKunkSsv+NmAWBOGVtkja3pzn+qAFsfqNAx5Y
CTwNR1/fasA8OgXMRyhC3dcatY2iwXkVZ7BSut0Umcug3D69V8GbCDjqZg5hmlD2
v8yk7i58CtKezKK9pBHAE5qQyFTl5T77paLB49sLZ9PQU33uafSOm8spxzO4Z1Is
8QyHyUtdcJStRCPeOgOlFGjB+WpOKHXDA1LjshhC0P9U6AmU+hR0X5wSx8dp1s4=
=Tjmr
-----END PGP SIGNATURE-----

commit c470abd4fde40ea6a0846a2beab642a578c0b8cd
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Sun Feb 19 14:34:00 2017 -0800

    Linux 4.10
Comment 5 Matt Turner gentoo-dev 2017-03-04 01:11:38 UTC
I have absolutely no idea what the problem might be, but I doubt it's the kind of thing a distribution will be able to solve...

Okay, you're using libinput. That's good.

Please file a bug upstream: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Input/libinput and link us to it.
Comment 6 Joe Harvell 2017-03-04 02:34:40 UTC
Filed upstream.  https://bugs.freedesktop.org/show_bug.cgi?id=100057

Thanks.
Comment 7 Matt Turner gentoo-dev 2017-03-30 03:40:42 UTC
Upstream bug is RESOLVED/WONTFIX. Please reopen if something changes.