As a data point for future googlers, I had what sounds like the
same/similar problem today, my middle-button-click stopped working.

Except I found that it was working but I had to hold it down for a few
hundred ms until it reliably clicked, sometimes quickly clicking in
succession would report some clicks also, but holding it down for about
half a second was reliable (but annoying).

Anyway, long story short I issued the following set-prop for "Evdev
Middle Button Timeout (269)" and it corrected the issue, note that I
also first tried changing the property to 10 first and that didn't make
a difference, but now after having set it to zero I can increase that
property to seemingly anything and it all works fine, so I don't know
what exactly is going on there.

xinput --set-prop 11 269 0

(where 11 is the device id of my mouse (xinput without arguments will
tell you), 269 is the property being set, and 0 is the value I am
setting,

Here are the list-props when I was experiencing the problem

--------------------------------------------------------------------------------

Device 'MOSART Semi. 2.4G Keyboard Mouse':
        Device Enabled (131):   1
        Coordinate Transformation Matrix (133): 1.000000, 0.000000, 0.000000, 
0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Accel Profile (258):     0
        Device Accel Constant Deceleration (259):       1.000000
        Device Accel Adaptive Deceleration (260):       1.000000
        Device Accel Velocity Scaling (261):    10.000000
        Device Product ID (248):        1578, 16641
        Device Node (249):      "/dev/input/event5"
        Evdev Axis Inversion (262):     0, 0
        Evdev Axes Swap (264):  0
        Axis Labels (265):      "Rel X" (141), "Rel Y" (142), "Rel Horiz Wheel" 
(255), "Rel Dial" (256), "Rel Vert Wheel" (257)
        Button Labels (266):    "Button Left" (134), "Button Middle" (135), 
"Button Right" (136), "Button Wheel Up" (137), "Button Wheel Down" (138), 
"Button Horiz Wheel Left" (139), "Button Horiz Wheel Right" (140), "Button 
Side" (253), "Button Extra" (254), "Button Unknown" (251), "Button Unknown" 
(251), "Button Unknown" (251), "Button Unknown" (251)
        Evdev Scrolling Distance (267): 1, 1, 1
        Evdev Middle Button Emulation (268):    0
        Evdev Middle Button Timeout (269):      50
        Evdev Third Button Emulation (270):     0
        Evdev Third Button Emulation Timeout (271):     1000
        Evdev Third Button Emulation Button (272):      3
        Evdev Third Button Emulation Threshold (273):   20
        Evdev Wheel Emulation (274):    0
        Evdev Wheel Emulation Axes (275):       0, 0, 4, 5
        Evdev Wheel Emulation Inertia (276):    10
        Evdev Wheel Emulation Timeout (277):    200
        Evdev Wheel Emulation Button (278):     4
        Evdev Drag Lock Buttons (279):  0


--------------------------------------------------------------------------------

Here are the list-props after issuing the set-prop command above

--------------------------------------------------------------------------------
Device 'MOSART Semi. 2.4G Keyboard Mouse':
        Device Enabled (131):   1
        Coordinate Transformation Matrix (133): 1.000000, 0.000000, 0.000000, 
0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Accel Profile (258):     0
        Device Accel Constant Deceleration (259):       1.000000
        Device Accel Adaptive Deceleration (260):       1.000000
        Device Accel Velocity Scaling (261):    10.000000
        Device Product ID (248):        1578, 16641
        Device Node (249):      "/dev/input/event5"
        Evdev Axis Inversion (262):     0, 0
        Evdev Axes Swap (264):  0
        Axis Labels (265):      "Rel X" (141), "Rel Y" (142), "Rel Horiz Wheel" 
(255), "Rel Dial" (256), "Rel Vert Wheel" (257)
        Button Labels (266):    "Button Left" (134), "Button Middle" (135), 
"Button Right" (136), "Button Wheel Up" (137), "Button Wheel Down" (138), 
"Button Horiz Wheel Left" (139), "Button Horiz Wheel Right" (140), "Button 
Side" (253), "Button Extra" (254), "Button Unknown" (251), "Button Unknown" 
(251), "Button Unknown" (251), "Button Unknown" (251)
        Evdev Scrolling Distance (267): 1, 1, 1
        Evdev Middle Button Emulation (268):    0
        Evdev Middle Button Timeout (269):      0
        Evdev Third Button Emulation (270):     0
        Evdev Third Button Emulation Timeout (271):     1000
        Evdev Third Button Emulation Button (272):      3
        Evdev Third Button Emulation Threshold (273):   20
        Evdev Wheel Emulation (274):    0
        Evdev Wheel Emulation Axes (275):       0, 0, 4, 5
        Evdev Wheel Emulation Inertia (276):    10
        Evdev Wheel Emulation Timeout (277):    200
        Evdev Wheel Emulation Button (278):     4
        Evdev Drag Lock Buttons (279):  0

--------------------------------------------------------------------------------

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1581088

Title:
  Middle mouse (wheel-click) button stopped working after upgrade to
  16.04

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Since upgrading to 16.04 clicking the middle mouse button (scroll
  wheel) on my Logitech M185 stopped working.

  xev does not even show the event for clicking the wheel, while it
  shows other button clicks and scroll wheel up/down events.

  xinput list shows the USB receiver 2 times:

  ⎡ Virtual core pointer                        id=2    [master pointer  (3)]
  ⎜   ↳ Virtual core XTEST pointer                      id=4    [slave  pointer 
 (2)]
  ⎜   ↳ Logitech USB Receiver                           id=9    [slave  pointer 
 (2)]
  ⎜   ↳ Logitech USB Receiver                           id=10   [slave  pointer 
 (2)]
  ⎜   ↳ HID 046a:0023                                   id=13   [slave  pointer 
 (2)]
  ⎜   ↳ SynPS/2 Synaptics TouchPad                      id=16   [slave  pointer 
 (2)]
  ⎜   ↳ TPPS/2 IBM TrackPoint                           id=17   [slave  pointer 
 (2)]

  Listing the capabilities looks like this:

  $ xinput list 9
  Logitech USB Receiver                         id=9    [slave  pointer  (2)]
   Reporting 7 classes:
    Class originated from: 9. Type: XIButtonClass
    Buttons supported: 24
    Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel 
Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right" 
"Button Side" "Button Extra" "Button Forward" "Button Back" "Button Task" 
"Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown" "Button 
Unknown" "Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown" 
"Button Unknown" "Button Unknown" "Button Unknown"
    Button state:
    Class originated from: 9. Type: XIValuatorClass
    Detail for Valuator 0:
      Label: Rel X
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
    Class originated from: 9. Type: XIValuatorClass
    Detail for Valuator 1:
      Label: Rel Y
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
    Class originated from: 9. Type: XIValuatorClass
    Detail for Valuator 2:
      Label: Rel Horiz Wheel
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
    Class originated from: 9. Type: XIValuatorClass
    Detail for Valuator 3:
      Label: Rel Vert Wheel
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
    Class originated from: 9. Type: XIScrollClass
    Scroll info for Valuator 2
      type: 2 (horizontal)
      increment: 1.000000
      flags: 0x0
    Class originated from: 9. Type: XIScrollClass
    Scroll info for Valuator 3
      type: 1 (vertical)
      increment: -1.000000
      flags: 0x2 ( preferred )

  $ xinput list 10
  Logitech USB Receiver                         id=10   [slave  pointer  (2)]
   Reporting 6 classes:
    Class originated from: 10. Type: XIButtonClass
    Buttons supported: 7
    Button labels: "Button 0" "Button Unknown" "Button Unknown" "Button Wheel 
Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right"
    Button state:
    Class originated from: 10. Type: XIKeyClass
    Keycodes supported: 248
    Class originated from: 10. Type: XIValuatorClass
    Detail for Valuator 0:
      Label: Rel X
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
    Class originated from: 10. Type: XIValuatorClass
    Detail for Valuator 1:
      Label: Rel Y
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
    Class originated from: 10. Type: XIValuatorClass
    Detail for Valuator 2:
      Label: Rel Horiz Wheel
      Range: -1.000000 - -1.000000
      Resolution: 1 units/m
      Mode: relative
    Class originated from: 10. Type: XIScrollClass
    Scroll info for Valuator 2
      type: 2 (horizontal)
      increment: 1.000000
      flags: 0x0

  Does anyone have an idea how I can attempt to further debug that issue? Or 
maybe even a solution? Should I consider this issue a bug? Can I provide more 
info?
  ---
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC2:  toby      11625 F.... pulseaudio
   /dev/snd/controlC0:  toby      11625 F.... pulseaudio
   /dev/snd/pcmC1D0p:   toby      11625 F...m pulseaudio
   /dev/snd/controlC1:  toby      11625 F.... pulseaudio
  CurrentDesktop: GNOME
  DistroRelease: Ubuntu 16.04
  HibernationDevice: RESUME=UUID=5e3a6d2e-05f8-4d01-b80c-a9f8888200e6
  InstallationDate: Installed on 2014-04-24 (749 days ago)
  InstallationMedia: Ubuntu-GNOME 14.04 LTS "Trusty Tahr" - Release amd64 
(20140416.2)
  MachineType: LENOVO 20AL00C6GE
  Package: linux (not installed)
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic 
root=UUID=82920e97-9472-4bf4-95d3-3b07ae5eb747 ro quiet splash
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-22-generic N/A
   linux-backports-modules-4.4.0-22-generic  N/A
   linux-firmware                            1.157
  Tags:  xenial
  Uname: Linux 4.4.0-22-generic x86_64
  UpgradeStatus: Upgraded to xenial on 2016-05-02 (9 days ago)
  UserGroups: adm lpadmin sambashare sudo
  _MarkForUpload: True
  dmi.bios.date: 03/25/2014
  dmi.bios.vendor: LENOVO
  dmi.bios.version: GIET72WW (2.22 )
  dmi.board.asset.tag: Not Available
  dmi.board.name: 20AL00C6GE
  dmi.board.vendor: LENOVO
  dmi.board.version: SDK0E50510 PRO
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Not Available
  dmi.modalias: 
dmi:bvnLENOVO:bvrGIET72WW(2.22):bd03/25/2014:svnLENOVO:pn20AL00C6GE:pvrThinkPadX240:rvnLENOVO:rn20AL00C6GE:rvrSDK0E50510PRO:cvnLENOVO:ct10:cvrNotAvailable:
  dmi.product.name: 20AL00C6GE
  dmi.product.version: ThinkPad X240
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1581088/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to