improve doc

This commit is contained in:
weidongshan
2021-03-29 19:29:11 +08:00
parent 8807b68d9d
commit 568468fb68
2 changed files with 40 additions and 0 deletions

View File

@@ -252,3 +252,23 @@ ts_test
要退出QEMU可以同时按住ctrl+a松开后再输入'x'
```
#### 5.6 改进驱动
如果在驱动程序里设置属性位:
```shell
__set_bit(INPUT_PROP_DIRECT, g_input_dev->propbit);
```
那么tslib可以自动扫描到触摸屏设备
使用tslib时就不需要设置这些环境变量
```shell
export TSLIB_TSDEVICE=/dev/input/event3
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
```

View File

@@ -252,3 +252,23 @@ ts_test
要退出QEMU可以同时按住ctrl+a松开后再输入'x'
```
#### 5.6 改进驱动
如果在驱动程序里设置属性位:
```shell
__set_bit(INPUT_PROP_DIRECT, g_input_dev->propbit);
```
那么tslib可以自动扫描到触摸屏设备
使用tslib时就不需要设置这些环境变量
```shell
export TSLIB_TSDEVICE=/dev/input/event3
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
```