mirror of
https://e.coding.net/weidongshan/linux/doc_and_source_for_drivers.git
synced 2025-12-01 12:31:01 +08:00
improve doc
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user