Regression 16.04 LTS to 18.04 LTS: Contour Design RollerMouse double click button no longer results in a double click event

Bug #1767660 reported by Christoffer Holmstedt
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
libinput (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

https://gitlab.freedesktop.org/libinput/libinput/issues/204

---

### Expected behaviour
My "Contour Design RollerMouse Free 2" has a specific button for double click. This button should with one physical click result in double click (button press, button release, button press and button release).

This works as expected without issues in Ubuntu 16.04 LTS 4.4.0-119-generic #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018 x86_64

### Experienced behaviour
Only one mouse click is registered (button press and button release). Tested with "xev" and "xinput test"

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-20-generic 4.15.0-20.21
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sat Apr 28 16:26:08 2018
InstallationDate: Installed on 2018-04-27 (1 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: linux-signed
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Christoffer Holmstedt (christoffer-holmstedt) wrote :
Revision history for this message
Christoffer Holmstedt (christoffer-holmstedt) wrote :

I read up on https://www.kernel.org/doc/Documentation/input/input.txt and tested with "evtest" for the RollerMouse and can see that the kernel emits proper events, as far as I understand.

### Single left click button
Event: time 1525013249.812780, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1525013249.812780, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1525013249.812780, -------------- SYN_REPORT ------------
Event: time 1525013249.936782, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1525013249.936782, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1525013249.936782, -------------- SYN_REPORT ------------

### Double click button
Event: time 1525013251.656770, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1525013251.656770, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1525013251.656770, -------------- SYN_REPORT ------------
Event: time 1525013251.660700, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1525013251.660700, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1525013251.660700, -------------- SYN_REPORT ------------
Event: time 1525013251.664778, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1525013251.664778, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1525013251.664778, -------------- SYN_REPORT ------------
Event: time 1525013251.668782, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1525013251.668782, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1525013251.668782, -------------- SYN_REPORT ------------

What is inbetween what the kernel emits to /dev/input/eventX and what is registered by "xev" and "xinput"?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-signed (Ubuntu):
status: New → Confirmed
Revision history for this message
James Seiters (cichlasoma) wrote :

I have the same problem except for the model of my hardware is:
Contour Design RollerMouse Red plus

DistroRelease: Kubuntu 18.04
Uname: Linux 4.15.0-20-generic x86_64
Architecture: amd64
CurrentDesktop: ubuntu:KDE
InstallationDate: Installed on 2018-04-29
InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Release amd64

Revision history for this message
Christoffer Holmstedt (christoffer-holmstedt) wrote :

As far as I understand from my testing with xev, xinput test and evtest there is no issue with the kernel but instead the problem is somewhere inside xorg.

affects: linux-signed (Ubuntu) → xorg (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please check if the bug still occurs in Ubuntu 18.10:
http://cdimage.ubuntu.com/daily-live/current/

If it does then please report the bug to upstream here:
  https://gitlab.freedesktop.org/libinput/libinput/issues/new
and tell us what the new bug ID is.

affects: xorg (Ubuntu) → libinput (Ubuntu)
Changed in gnome-shell (Ubuntu):
status: New → Confirmed
summary: - Regression 16.04 LTS to 18.04 LTS: rollermouse double click button no
- longer result in double click "event"
+ Regression 16.04 LTS to 18.04 LTS: "Contour Design RollerMouse Free 2"
+ double click button no longer results in a double click event
summary: - Regression 16.04 LTS to 18.04 LTS: "Contour Design RollerMouse Free 2"
- double click button no longer results in a double click event
+ Regression 16.04 LTS to 18.04 LTS: Contour Design RollerMouse double
+ click button no longer results in a double click event
Changed in gnome-shell (Ubuntu):
status: Confirmed → Incomplete
Changed in libinput (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Christoffer Holmstedt (christoffer-holmstedt) wrote :

@vanvugt: Ok, thanks for the information I will test 18.10 when it is officially released.

Revision history for this message
Arne Hanssen (kingel) wrote :

This bug affects me too, starting with 18.04 and did not disappear after upgrading to 18.10. I'm using xubuntu 64-bit desktop version.

Revision history for this message
Sean Chu (sean1985zc2) wrote :

This affects me too:
RollerMouse Red
Kubuntu 18.10

Revision history for this message
Jul (jul39) wrote :

This affects me too.

I have reported the bug on gitlab : https://gitlab.freedesktop.org/libinput/libinput/issues/204

Revision history for this message
Christoffer Holmstedt (christoffer-holmstedt) wrote :

@vanvugt I tried to add the upstream link to launchpad but I just get errors. The URL is not recognized by launchpad. (https://gitlab.freedesktop.org/libinput/libinput/issues/204)

description: updated
Changed in libinput (Ubuntu):
status: Incomplete → Confirmed
no longer affects: gnome-shell (Ubuntu)
Revision history for this message
Christoffer Holmstedt (christoffer-holmstedt) wrote :

For 18.10 with libinput 1.12.x there is a workaround now. Download https://gitlab.freedesktop.org/libinput/libinput/blob/master/quirks/30-vendor-contour.quirks and save it as /etc/libinput/local-overrides.quirks, restart your computer.

The fix is for RollerMouse Free 2 and RollerMouse Red. If you have any other version of the rollermouse please run "sudo udevadm info /dev/input/eventX" where X is the proper event number for your rollermouse. If you don't know the event number run "sudo libinput list-devices". From the udevadm command find the ID_MODEL_ID and put it in the local-overrides.quirks file as MatchProduct value. Also, please post the ID_MODEL_ID as well as ID_SERIAL so it can be added upstream as well.

Why it has worked before 18.04 is unknown as the quirks system didn't exist in the 1.10.x series of libinput. Maybe it has something to do with change from Unity to Gnome. If libinput 1.12 or later series gets backported to Ubuntu 18.04 LTS it will start to work again.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

A customer would like to get this working on Ubuntu 18.04 LTS. However libinput is not part of the standard HWE backport stack, so I guess the likelihood to get the quirk support for 18.04 LTS is fairly low I guess?

I'm going to try my own backport (of the whole libinput 1.12 package) from https://launchpad.net/~timo-jyrinki/+archive/ubuntu/libinput the next time I visit. soname seems to be the same so maybe it'd be drop-in compatible.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

The 1.12.6 in disco and my PPA should have the quirk installed by default for Contour Design RollerMouse Free 2 and Re:d so it should just work. Hence marking as Fix Released for development release and leaving it up to stable maintainers to decide whether something should/could be done for 18.04.

Changed in libinput (Ubuntu):
status: Confirmed → Fix Released
Changed in libinput (Ubuntu Bionic):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

That bug would be good to fix for bionic but desktop team as the owner of the component doesn't want to commit to that so deleting the bionic target and tagging rls-bb-notfixing (it doesn't mean it can't/will not be fixed though)

no longer affects: libinput (Ubuntu Bionic)
tags: added: rls-bb-notfixing
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

FYI a person contacted me about Red v3 and support for that is now included in upstream, https://gitlab.freedesktop.org/libinput/libinput/blob/master/quirks/30-vendor-contour.quirks

If you have other models with other USB ids and find this bug report, please follow his example and contribute a section to that quirks file either via the "Issues" or "Merge Requests" feature on that linked site.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.