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 )

> 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

Posts in this topic
Kiriririn   Touchscreen as touchpad - relative mouse input   Jun 16 2018, 11:28 AM
shinkamui   Thank you for this! Its an excellent start. ...   Jun 16 2018, 08:32 PM
Kiriririn   QUOTE(shinkamui @ Jun 17 2018, 05:32 AM) ...   Jun 17 2018, 03:07 AM
mithrandir   Thx. Very nice work! Now we have to get this s...   Jun 17 2018, 05:14 AM
Kiriririn   QUOTE(mithrandir @ Jun 17 2018, 02:14 PM)...   Jun 17 2018, 06:34 AM
mifritscher   Switching would be nice for applications like xour...   Jun 17 2018, 09:39 PM
mithrandir   QUOTE(mifritscher @ Jun 17 2018, 09:39 PM...   Jun 18 2018, 02:47 AM
psionlover   QUOTE(Kiriririn @ Jun 16 2018, 09:28 PM) ...   Jun 25 2018, 03:07 PM
Kiriririn   QUOTE(psionlover @ Jun 26 2018, 12:07 AM)...   Jun 26 2018, 02:51 AM
psionlover   QUOTE(Kiriririn @ Jun 26 2018, 12:51 PM) ...   Jun 27 2018, 09:07 AM
abgd   Works really well. Thanks very much for this tip.   Jul 10 2018, 05:33 PM
Varti   QUOTE(abgd @ Jul 11 2018, 03:33 AM) Works...   Jul 11 2018, 12:48 AM
Alexi Pistonrod   QUOTE(Kiriririn @ Jun 16 2018, 08:28 PM) ...   Sep 19 2018, 11:46 AM
Kiriririn   QUOTE(Alexi Pistonrod @ Sep 19 2018, 08:4...   Sep 19 2018, 03:55 PM
gemini_user_j   QUOTE(Kiriririn @ Jun 16 2018, 11:28 AM) ...   Nov 3 2018, 08:35 AM
ArchiMark   Installed, but have problem getting the button in ...   Feb 13 2019, 02:16 PM
Kiriririn   QUOTE(ArchiMark @ Feb 13 2019, 10:16 PM) ...   Feb 15 2019, 11:51 AM
ArchiMark   QUOTE(Kiriririn @ Feb 15 2019, 11:51 AM) ...   Feb 15 2019, 12:44 PM
peter   The "Easy Mode" fix worked perfectly for...   Jun 13 2019, 10:31 PM
peter   QUOTE(peter @ Jun 14 2019, 02:31 AM) The ...   Jun 17 2019, 12:35 PM


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: 16th October 2019 - 01:38 AM