Middle Mouse button emulation on trackpad? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook (https://forum.pine64.org/forumdisplay.php?fid=76) +--- Forum: General Discussion on Pinebook (https://forum.pine64.org/forumdisplay.php?fid=77) +--- Thread: Middle Mouse button emulation on trackpad? (/showthread.php?tid=6863) |
Middle Mouse button emulation on trackpad? - cvmiller - 11-23-2018 Hi All, As a long time Linux user, I am used to the Xwindows method of copy/paste (select text, middle mouse click to paste). Is there a way to emulate the middle mouse button on the trackpad on the Pinebook 1080? TIA ---- Using KDE Neon RE: Middle Mouse button emulation on trackpad? - bbraun - 11-23-2018 I've been after this too. Code: pinebook 18:26:48 ~> xinput list In this case, the emulation is already enabled, but can be toggled with: xinput set-prop 6 235 1 However, in my case, I'm not seeing the button being emulated. Running xev -event button seems to indicate the trackpad isn't reporting 2 buttons pressed simultaneously. If I have a button down event on button 1 (left), down on button 3 (right), I get no event reported for button 3. Similarly, the button up event is always for the first button down. RE: Middle Mouse button emulation on trackpad? - cvmiller - 11-25-2018 Thanks bbraun, I see similar output with xinput, but still do not see an emulated button 3 with the trackpad. I thought perhaps one had to press a key and a mouse button, but apparently that is not the case. RE: Middle Mouse button emulation on trackpad? - bbraun - 11-25-2018 To get paste working in the face of apparently no possibility of middle click emulation, I used xbindkeys and xte from xautomation. However, at least on NetBSD, I noticed xte's injected events wouldn't work if another event was in progress, such as any of the keys used to trigger xte to run (anything else worked, like spawning an xterm, just xte's fake events were ignored). I ended up creating a python script that would fork, parent exit, and the child would sleep for 0.1s and then run xte. That would give enough time for everything to clear, and the paste to be at least kinda timely. So, xbindkeys runs the python script when I enter my configured key combo, and the python script runs xte to inject the events. Kinda rube goldberg, but it seems to be working. RE: Middle Mouse button emulation on trackpad? - cvmiller - 11-26-2018 (11-25-2018, 09:53 PM)bbraun Wrote: So, xbindkeys runs the python script when I enter my configured key combo, and the python script runs xte to inject the events. Kinda rube goldberg, but it seems to be working. Sounds like you have something working, although as you say, overly complex. Too bad the track pad doesn't recognize a 3 finger tap (something I use all the time on my Chromebook). RE: Middle Mouse button emulation on trackpad? - Surehand53 - 11-27-2018 According to the tech.spec of the touchpad 3 finger guestures are actually supported. http://files.pine64.org/doc/datasheet/pinebook/11-Toucpad-HK-9058%20specification.pdf (page 5) I guess the installed touchpad/mouse driver might not support it ? RE: Middle Mouse button emulation on trackpad? - cvmiller - 11-27-2018 (11-27-2018, 02:44 AM)Surehand53 Wrote: I guess the installed touchpad/mouse driver might not support it ? Thanks. That is good news. It is easier to upgrade SW. RE: Middle Mouse button emulation on trackpad? - bbraun - 11-27-2018 (11-27-2018, 02:44 AM)Surehand53 Wrote: According to the tech.spec of the touchpad 3 finger guestures are actually supported. That document appears to be inaccurate. A three and 4 finger tap only generate a null usb report. RE: Middle Mouse button emulation on trackpad? - cvmiller - 11-29-2018 (11-27-2018, 01:22 PM)bbraun Wrote: That document appears to be inaccurate. A three and 4 finger tap only generate a null usb report. Bummers. I guess I should start reaching for my Mouse to get a middle button click. |