FirePrime Linux 如何增加触摸屏输入的支持

1 FirePrime Linux 如何增加触摸屏输入的支持

1.1 简介

X11 窗口系统使用 evdev 输入驱动来处理触摸屏的触摸事件。要增加触摸屏的支持,需要以下两个步骤:

  • 增加 X11 配置文件,指定对触摸屏设备使用 evdev 驱动。
  • 完善 evdev 驱动本身对触摸屏的支持,并加入模拟鼠标右键的支持。

1.2 配置

创建新文件 /etc/X11/xorg.conf.d/10-evdev-gslX680.conf ,加入以下内容:

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 完善 evdev 驱动的触摸屏支持

系统的 evdev 驱动无法很好地支持安卓的触摸屏输入驱动,需要打补丁并重新编译,以下介绍详细步骤:

1.3.1 安装编译工具环境和相关的信赖库

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

1.3.2 提取源码、打补丁和编译

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 安装编译好的模块

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

重启系统生效。

修改后的 evdev 的完整驱动源码在

https://github.com/TeeFirefly/xf86-input-evdev

支持原创

Support Need:

When I run to this step: make -j4
It show error: make: *** No targets specified and no makefile found. Stop.

Did I lose what steps ?

update:

add:sudo ./configure
then make -j4 is ok

I finish all steps, but still failure
my “10.1寸LVDS顯示屏 Firefly-RK3288 FirePrime(拍下三天後發貨)” still not work,
at Firefly-RK3288.

Is the code support RK3288?

zadeh 发表于 2015-10-17 11:52
update:

add:sudo ./configure

please use the patch in
http://wiki.t-firefly.com/index.php/Firefly-RK3288/Peripherals/en#10.1-Inches_LVDS_Display_Module

Thanks your replay!
" 1.The name of official firmware to support the AUO LVDS Display Module with the words “B101EW05”, such as Firefly-RK3288_PAD_B101EW05_Android4.4_201501281108.7z
2. After updating the code, follow the instructions in the patch, and support the use of 10.1-inch screen.Patch (with captions) "

but “Firefly-RK3288_PAD_B101EW05_Android4.4_201501281108.7z” seems is the android version,
do you have ubuntu’s patch?

zadeh 发表于 2015-10-17 12:33
Thanks your replay!
" 1.The name of official firmware to support the AUO LVDS Display Module with t …

linux kernel patch is the same as android kernel.