I have laptop HP EliteBook 8440p which has point stick and it's great. But unlike Thinkpad it had only two button. I want to emulate middle button and scroll whell on top of it. Is it possible? I've tried following configuration: $ xinput list-props 11 Device 'PS/2 Generic Mouse': Device Enabled (125): 1 Coordinate Transformation Matrix (127): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 Device Accel Profile (246): 0 Device Accel Constant Deceleration (247): 1.000000 Device Accel Adaptive Deceleration (248): 1.000000 Device Accel Velocity Scaling (249): 10.000000 Evdev Axis Inversion (250): 0, 0 Evdev Axes Swap (252): 0 Axis Labels (253): "Rel X" (135), "Rel Y" (136) Button Labels (254): "Button Left" (128), "Button Middle" (129), "Button Right" (130), "Button Wheel Up" (131), "Button Wheel Down" (132), "Button Horiz Wheel Left" (133), "Button Horiz Wheel Right" (134) Evdev Middle Button Emulation (255): 1 Evdev Middle Button Timeout (256): 50 Evdev Wheel Emulation (257): 1 Evdev Wheel Emulation Axes (258): 6, 7, 4, 5 Evdev Wheel Emulation Inertia (259): 10 Evdev Wheel Emulation Timeout (260): 200 Evdev Wheel Emulation Button (261): 2 Evdev Drag Lock Buttons (262): 0 Debian sid.
if you mean emulate a middle button and then use that emulation as scroll trigger, then no, that won't work. evdev internally deals with real button numbers, not logical button numbers.
And no plans to remove this restriction?
probably not, sorry. starting to emulate on top of emulated buttons opens a can of worms that I'd rather not deal with.
https://bugs.freedesktop.org/show_bug.cgi?id=39174 may be this would be useful.
Deduplicating, one bug for this topic is enough. *** This bug has been marked as a duplicate of bug 39174 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.