OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Touchscreen as touchpad - relative mouse input
Kiriririn
post Jun 16 2018, 11:28 AM
Post #1





Group: Members
Posts: 67
Joined: 19-January 18
Member No.: 816,673



A video is worth 1000 words:

https://www.youtube.com/watch?v=bsJn3eMvG7w

tl;dw this technique changes the touchscreen from an absolute mode touchscreen (which is too fiddly for full linux desktop use) into a relative mode touchpad like on most laptops


Easy mode:
  1. sudo apt install xserver-xorg-input-mtrack
  2. Edit /usr/share/X11/xorg.conf.d/40-libinput.conf, find:
    CODE
    Section "InputClass"
            Identifier "libinput touchscreen catchall"
            MatchIsTouchscreen "on"
            MatchDevicePath "/dev/input/event*"
            Driver "libinput"
    EndSection

    Replace with:
    CODE
    Section "InputClass"
            Identifier "libinput touchscreen catchall"
            MatchIsTouchscreen "on"
            MatchDevicePath "/dev/input/event*"
            Driver "mtrack"
            Option "ScrollDistance" "40"
            Option "FingerLow" "1"
            Option "FingerHigh" "2"
            Option "Sensitivity" "1.8"
            Option "BottomEdge" "0"
            Option "SwipeDistance" "100"
            Option "ScaleDistance" "40"
            Option "ButtonMoveEmulate" "false"
            Option "ClickTime" "25"
            Option "MaxTapMove" "55"
            Option "EdgeBottomSize" "0"
    EndSection
  3. sudo systemctl restart sddm or reboot
  4. Recommended to disable acceleration in the LXQT mouse settings GUI
Hard mode:

(Instead of installing mtrack from debian repos, there is an improved version that must be built from source...)
  1. Config edit as above
  2. Enter a suitable empty directory
  3. Install the standard debian build tools
  4. sudo apt install xserver-xorg-dev libmtdev-dev xutils-dev
  5. git clone https://github.com/p2rkw/xf86-input-mtrack
  6. cd into the downloaded folder
  7. ./configure --prefix=/usr
  8. dpkg-buildpackage -uc -us
  9. cd ..
  10. sudo dpkg -i xserver-xorg-input-mtrack_0.5.0_arm64.deb
  11. sudo systemctl restart sddm or reboot
  12. Recommended to disable acceleration in the LXQT mouse settings GUI
Go to the top of the page
 
+Quote Post
shinkamui
post Jun 16 2018, 08:32 PM
Post #2





Group: Members
Posts: 21
Joined: 6-June 18
Member No.: 823,980



Thank you for this! Its an excellent start. Still needs some tweaking, but you've more than got the ball rolling on a very popular request!

Go to the top of the page
 
+Quote Post
Kiriririn
post Jun 17 2018, 03:07 AM
Post #3





Group: Members
Posts: 67
Joined: 19-January 18
Member No.: 816,673



QUOTE(shinkamui @ Jun 17 2018, 05:32 AM) *
Thank you for this! Its an excellent start. Still needs some tweaking, but you've more than got the ball rolling on a very popular request!


Yeah still need to figure out a way to do dragging that doesn't emit a click before doing so, though I reckon this will either require two fingers or add click latency

Edit: it's possible but fiddly by holding with one finger and moving a second
Go to the top of the page
 
+Quote Post
mithrandir
post Jun 17 2018, 05:14 AM
Post #4





Group: Members
Posts: 116
Joined: 7-January 18
Member No.: 815,997



Thx. Very nice work!
Now we have to get this switchable via hotkey... Which seems not no be that easy because of the currently required restart.

Are the different mouse clicks (right,left,middle) already handled somehow? What about scrolling?
Go to the top of the page
 
+Quote Post
Kiriririn
post Jun 17 2018, 06:34 AM
Post #5





Group: Members
Posts: 67
Joined: 19-January 18
Member No.: 816,673



QUOTE(mithrandir @ Jun 17 2018, 02:14 PM) *
Thx. Very nice work!
Now we have to get this switchable via hotkey... Which seems not no be that easy because of the currently required restart.

Are the different mouse clicks (right,left,middle) already handled somehow? What about scrolling?


Not sure how you'd go about switching it, personally I don't see a need for any other mode than this but your needs may be different

Right click is two finger tap, scrolling is two finger scroll, left click is just tap, left click drag is hold then move a second finger, not sure about middle mouse but it should be configurable as 3 finger tap or similar

Scrolling a bit shit and left click drag doesn't work unless you install the latest version ('hard mode' above)
Go to the top of the page
 
+Quote Post
mifritscher
post Jun 17 2018, 09:39 PM
Post #6





Group: Members
Posts: 14
Joined: 28-February 18
Member No.: 818,513



Switching would be nice for applications like xournal or other painting applications. Perhaps this possible by not replacing, but addding the driver and then disable always one of them via xinput?

Bit its ndeed a good start!
Go to the top of the page
 
+Quote Post
mithrandir
post Jun 18 2018, 02:47 AM
Post #7





Group: Members
Posts: 116
Joined: 7-January 18
Member No.: 815,997



QUOTE(mifritscher @ Jun 17 2018, 09:39 PM) *
Switching would be nice for applications like xournal or other painting applications. Perhaps this possible by not replacing, but addding the driver and then disable always one of them via xinput?

Bit its ndeed a good start!


Tried yesterday, but no success so far. Some applications, i.e.,Chrome work better with the "simple" touch interface. Also for the desktop itself the simple interface seems better with a window manager optimized for touch (unsure which one to use). But many applications or parts of it are nearly unusable without control of the mouse pointer. Therefore switching would be great.
Go to the top of the page
 
+Quote Post
psionlover
post Jun 25 2018, 03:07 PM
Post #8





Group: Members
Posts: 34
Joined: 25-June 18
Member No.: 825,001



QUOTE(Kiriririn @ Jun 16 2018, 09:28 PM) *
A video is worth 1000 words:

https://www.youtube.com/watch?v=bsJn3eMvG7w

tl;dw this technique changes the touchscreen from an absolute mode touchscreen (which is too fiddly for full linux desktop use) into a relative mode touchpad like on most laptops

Thanks very much, this makes the gebian much better to handle. I only don't get a grip on the dragging, sometimes it works but mostly not.
Go to the top of the page
 
+Quote Post
Kiriririn
post Jun 26 2018, 02:51 AM
Post #9





Group: Members
Posts: 67
Joined: 19-January 18
Member No.: 816,673



QUOTE(psionlover @ Jun 26 2018, 12:07 AM) *
QUOTE(Kiriririn @ Jun 16 2018, 09:28 PM) *
A video is worth 1000 words:

https://www.youtube.com/watch?v=bsJn3eMvG7w

tl;dw this technique changes the touchscreen from an absolute mode touchscreen (which is too fiddly for full linux desktop use) into a relative mode touchpad like on most laptops

Thanks very much, this makes the gebian much better to handle. I only don't get a grip on the dragging, sometimes it works but mostly not.


The most consistent dragging is by holding one finger and moving another.

Annoyingly the synaptics-style 'double tap but drag rather than releasing the second tap' gesture doesn't work right in mtrack as it emits the first tap, preventing dragging anything that might react to a single tap.
Go to the top of the page
 
+Quote Post
psionlover
post Jun 27 2018, 09:07 AM
Post #10





Group: Members
Posts: 34
Joined: 25-June 18
Member No.: 825,001



QUOTE(Kiriririn @ Jun 26 2018, 12:51 PM) *
The most consistent dragging is by holding one finger and moving another.

Dooesn't work with my version of fingers dry.gif But found a more consistent workaround for my fingers: Alt + tap-drag biggrin.gif
Go to the top of the page
 
+Quote Post
abgd
post Jul 10 2018, 05:33 PM
Post #11





Group: Members
Posts: 3
Joined: 28-June 18
Member No.: 825,183



Works really well. Thanks very much for this tip.
Go to the top of the page
 
+Quote Post
Varti
post Jul 11 2018, 12:48 AM
Post #12





Group: Admin
Posts: 905
Joined: 30-April 08
From: Italy
Member No.: 21,713



QUOTE(abgd @ Jul 11 2018, 03:33 AM) *
Works really well. Thanks very much for this tip.

Thanks from me too, I'll definitively use it once I'll install Gemian.

Varti
Go to the top of the page
 
+Quote Post
Alexi Pistonrod
post Sep 19 2018, 11:46 AM
Post #13





Group: Members
Posts: 3
Joined: 4-May 18
Member No.: 822,088



QUOTE(Kiriririn @ Jun 16 2018, 08:28 PM) *
A video is worth 1000 words:

https://www.youtube.com/watch?v=bsJn3eMvG7w

tl;dw this technique changes the touchscreen from an absolute mode touchscreen (which is too fiddly for full linux desktop use) into a relative mode touchpad like on most laptops


Easy mode:
  1. sudo apt install xserver-xorg-input-mtrack
  2. Edit /usr/share/X11/xorg.conf.d/40-libinput.conf, find:
    CODE
    Section "InputClass"
            Identifier "libinput touchscreen catchall"
            MatchIsTouchscreen "on"
            MatchDevicePath "/dev/input/event*"
            Driver "libinput"
    EndSection

    Replace with:
    CODE
    Section "InputClass"
            Identifier "libinput touchscreen catchall"
            MatchIsTouchscreen "on"
            MatchDevicePath "/dev/input/event*"
            Driver "mtrack"
            Option "ScrollDistance" "40"
            Option "FingerLow" "1"
            Option "FingerHigh" "2"
            Option "Sensitivity" "1.8"
            Option "BottomEdge" "0"
            Option "SwipeDistance" "100"
            Option "ScaleDistance" "40"
            Option "ButtonMoveEmulate" "false"
            Option "ClickTime" "25"
            Option "MaxTapMove" "55"
            Option "EdgeBottomSize" "0"
    EndSection
  3. sudo systemctl restart sddm or reboot
  4. Recommended to disable acceleration in the LXQT mouse settings GUI
Hard mode:

(Instead of installing mtrack from debian repos, there is an improved version that must be built from source...)
  1. Config edit as above
  2. Enter a suitable empty directory
  3. Install the standard debian build tools
  4. sudo apt install xserver-xorg-dev libmtdev-dev xutils-dev
  5. git clone https://github.com/p2rkw/xf86-input-mtrack
  6. cd into the downloaded folder
  7. ./configure --prefix=/usr
  8. dpkg-buildpackage -uc -us
  9. cd ..
  10. sudo dpkg -i xserver-xorg-input-mtrack_0.5.0_arm64.deb
  11. sudo systemctl restart sddm or reboot
  12. Recommended to disable acceleration in the LXQT mouse settings GUI




Thanks for this , applied it and it is great however there seem to be many many options we can use to tweak the driver and I am not clear how to click and drag accurately.

How much have you experimented with the settings?
Go to the top of the page
 
+Quote Post
Kiriririn
post Sep 19 2018, 03:55 PM
Post #14





Group: Members
Posts: 67
Joined: 19-January 18
Member No.: 816,673



QUOTE(Alexi Pistonrod @ Sep 19 2018, 08:46 PM) *
Thanks for this , applied it and it is great however there seem to be many many options we can use to tweak the driver and I am not clear how to click and drag accurately.

How much have you experimented with the settings?


For click and drag, touch and hold with one finger, then add a second finger anywhere on the screen and drag with the second finger, keeping the first finger stationary

Unfortunately the 'synaptics-style' click and drag (where you double tap but start dragging on the second tap) doesn't work reliably as it emits a click from the first tap (presumably to avoid input lag)
Go to the top of the page
 
+Quote Post
gemini_user_j
post Nov 3 2018, 08:35 AM
Post #15





Group: Members
Posts: 39
Joined: 9-August 18
Member No.: 827,849



QUOTE(Kiriririn @ Jun 16 2018, 11:28 AM) *
[*]Edit /usr/share/X11/xorg.conf.d/40-libinput.conf, find:

This is amazing!

I have two practical questions, if anyone knows:

1) Is it possible to switch between original behaviour, and the one you enabled by switching between two versions or the file I quoted above?

2) Is it possible to flip the scrolling direction?
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th August 2019 - 12:14 PM