Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

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

1637

Credits

0

Prestige

0

Contribution

administrator

Rank: 9Rank: 9Rank: 9

Credits
1637

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

Posted at 10/12/2015 15:44:14      View:2071 | Replies:0        Print      Only Author   [Copy Link] 1#
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:

  1. Section "InputClass"
  2.         Identifier "gslX680 evdev touchscreen"
  3.         MatchProduct    "gslX680"
  4.         MatchDevicePath "/dev/input/event*"
  5.         Option "EmulateThirdButton" "true"
  6.         Option "EmulateThirdButtonTimeout" "500"
  7.         Option "EmulateThirdButtonMoveThreshold" "50"
  8.         Driver "evdev"
  9. EndSection
Copy the code

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


  1. sudo apt-get install build-essentials
  2. sudo apt-get build-dep xserver-xorg-input-evdev
Copy the code

1.3.2 Extract the source code,patch and compile

  1. sudo apt-get source xserver-xorg-input-evdev
  2. cd xserver-xorg-input-evdev-2.9.0/src
  3. GITHUB=https://github.com/TeeFirefly/xf86-input-evdev/tree/ba37709e2aab50354c9925ca1e975779a16c67dc
  4. wget $GITHUB/src/emuThird.c
  5. wget $GITHUB/src/evdev.c
  6. wget $GITHUB/src/evdev.h
  7. cd ..
  8. make -j4
Copy the code

1.3.3 Install the compiled module

  1. mv /usr/lib/xorg/modules/input/evdev_drv.so /usr/lib/xorg/modules/input/evdev_drv.so.orig
  2. cp src/.libs/evdev_drv.so /usr/lib/xorg/modules/input/evdev_drv.so
Copy the code

Reboot the system to take effect.


Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list