FirePrime Linux--FirePrime Linux- How to add input support for touch-screen

FirePrime Linux–FirePrime Linux- How to add input support for touch-screenBy Busybee

1.1Brief
X11 Window system uses “evdev”to handle the touch even. How to add the support for the touch screen? It requires the following two steps:
1)Add X11 config file,specify evdev driver for touch screen devices.
2)Improve evdev driver supports itself for touch screen, adding support for simulate right mouse button.

1.2 Configuration
Create a new file /etc/X11/xorg.conf.d/10-evdev-gslX680.conf,add the following:

Section "InputClass"
        Identifier "gslX680 evdev touchscreen"
        MatchProduct    "gslX680"
        MatchDevicePath "/dev/input/event*"
        Option "EmulateThirdButton" "true"
        Option "EmulateThirdButtonTimeout" "500"
        Option "EmulateThirdButtonMoveThreshold" "50"
        Driver "evdev"
EndSection

1.3 Improve the touch screen support of evdev driver
The system evdev driver can not support the android touch screen input driver very well.Need to path and recompile, the following describes the detail steps:
1.3.1 Install compiling tools environment and relevant dependent libraries

sudo apt-get install build-essentials
sudo apt-get build-dep xserver-xorg-input-evdev

1.3.2 Extract the source code,patch and compile

sudo apt-get source xserver-xorg-input-evdev
cd xserver-xorg-input-evdev-2.9.0/src
GITHUB=https://github.com/TeeFirefly/xf86-input-evdev/tree/ba37709e2aab50354c9925ca1e975779a16c67dc
wget $GITHUB/src/emuThird.c
wget $GITHUB/src/evdev.c
wget $GITHUB/src/evdev.h
cd ..
make -j4

1.3.3 Install the compiled module

mv /usr/lib/xorg/modules/input/evdev_drv.so /usr/lib/xorg/modules/input/evdev_drv.so.orig
cp src/.libs/evdev_drv.so /usr/lib/xorg/modules/input/evdev_drv.so

Reboot the system to take effect.

Your article has truly stayed with me, thank you for sharing. Latest test C_HRHPC_2505 simulations has outstanding resources that are free of charge.

Thank you for the brilliant share, it really left me in awe! Valid CISSP exam questions vce provides quality resources, and they’re free for you to use.