You are not logged in.

#1 2017-01-20 10:49:03

d4vid
Member
Registered: 2017-01-20
Posts: 2

Middle mouse button keycode not generated (Lenovo TrackPoint)

This is about the middle button of a lenovo track point ("xinput" shows "TPPS/2 IBM TrackPoint")

I used "xev" to get the keycodes

If I press and release the middle button within around 0.5 seconds I get the following output which shows the same timestamp.

ButtonPress event, serial 37, synthetic NO, window 0x4a00001,
    root 0xd5, subw 0x0, time 7192416, (171,3), root:(722,287),
    state 0x0, button 2, same_screen YES

ButtonRelease event, serial 37, synthetic NO, window 0x4a00001,
    root 0xd5, subw 0x0, time 7192416, (171,3), root:(722,287),
    state 0x200, button 2, same_screen YES

Now I press the middle button a bit longer and I don't get any output. No keycode is generated.

The following shows the TrackPoint scancodes
"sudo evtest /dev/input/event8"

Event: time 1484909233.113623, type 1 (EV_KEY), code 274 (BTN_MIDDLE), value 1
Event: time 1484909233.113623, -------------- SYN_REPORT ------------
Event: time 1484909235.957614, type 1 (EV_KEY), code 274 (BTN_MIDDLE), value 0
Event: time 1484909235.957614, -------------- SYN_REPORT ------------

No matter how long I press the middle mouse button it just shows the expected output.
Do you know what the problem could be?

I tried this on three different lenovos and with some older linux kernel without success.
Is someone with a non-lenovo three button touchpad/trackpoint willing to test this?

Last edited by d4vid (2017-01-20 11:46:42)

Offline

#2 2017-01-20 12:35:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: Middle mouse button keycode not generated (Lenovo TrackPoint)

This is to be expected if you've configured wheel emulation.

A middle click is a click and release.  Just pressing the middle button and holding it does not generate an event, but rather puts the trackpoint in scroll mode - so pressing the trackpoint up or down will generate button 4/5 events while the middle button is held.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-01-20 14:07:38

d4vid
Member
Registered: 2017-01-20
Posts: 2

Re: Middle mouse button keycode not generated (Lenovo TrackPoint)

Thank you a thousand times! So glad someone helped me out.

I found the easiest way to make this permanent is to create a "~/.xprofile" with the following line

xinput --set-prop "TPPS/2 IBM TrackPoint" "libinput Button Scrolling Button" 0

I have not found a gui way to set this up in Xfce or Cinnamon

Offline

Board footer

Powered by FluxBB