Firefly开源社区

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

152

积分

0

威望

6

贡献

技术小白

积分
152
发表于 2015-7-17 10:20:40     
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

重启系统生效。


回复

使用道具 举报

152

积分

0

威望

6

贡献

技术小白

积分
152
发表于 2015-7-17 10:21:52     
修改后的 evdev 的完整驱动源码在

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

使用道具 举报

发表于 2015-7-17 10:32:01     
支持原创
暴走的创客!
回复

使用道具 举报

20

积分

0

威望

0

贡献

游客

积分
20
发表于 2015-10-17 11:10:51     
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 ?
回复

使用道具 举报

20

积分

0

威望

0

贡献

游客

积分
20
发表于 2015-10-17 11:52:23     
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?
回复

使用道具 举报

2918

积分

56

威望

46

贡献

高级创客

Rank: 6Rank: 6

积分
2918

优秀版主论坛元老

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

add:sudo  ./configure

please use the patch in
http://wiki.t-firefly.com/index. ... LVDS_Display_Module
回复

使用道具 举报

20

积分

0

威望

0

贡献

游客

积分
20
发表于 2015-10-17 12:33:44     
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?
回复

使用道具 举报

2918

积分

56

威望

46

贡献

高级创客

Rank: 6Rank: 6

积分
2918

优秀版主论坛元老

发表于 2015-10-19 10:35:26     
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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表