tslib: Selected device is not a touchscreen (must support ABS_X and ABS_Y events)
2024-09-04 14:58:08
/************************************************************************************
* tslib: Selected device is not a touchscreen (must support ABS_X and ABS_Y events)
* 说明:
* tslib校正的时候遇到这个问题,需要修改驱动里设备的支持的属性来解决。
*
* 2017-5-25 台湾 中和区 曾剑锋
***********************************************************************************/ 一、参考文档:
. Touchscreen and Driver Installed but tslib Cannot Calibrate
https://stackoverflow.com/questions/11937287/touchscreen-and-driver-installed-but-tslib-cannot-calibrate 二、具体操作:
static int xxxxx_spi_probe(struct spi_device *client)
{
...
__set_bit(EV_KEY, input_dev->evbit);
__set_bit(EV_ABS, input_dev->evbit);
__set_bit(BTN_TOUCH, input_dev->keybit);
__set_bit(INPUT_PROP_DIRECT, input_dev->propbit); __set_bit(ABS_X, input_dev->absbit); // fix
__set_bit(ABS_Y, input_dev->absbit); // fix
...
}
最新文章
- Ubuntu下配置python完成爬虫任务(笔记一)
- python下的orm基本操作(1)--Mysql下的CRUD简单操作(含源码DEMO)
- oracle序列
- HDU1242 Rescue
- java.lang.NoClassDefFoundError: Could not initialize class ......
- 安装Cygwin
- PHP javascript 值互相引用(不用刷新页面)
- POJ3683 Falsita
- 基于storm的在线关联规则
- fp oo
- TTP 错误 404.3 - Not Found 由于扩展配置问题而无法提供您请求的页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加 MIME 映射。
- Python字符处理
- SpringBoot 整合Ehcache3
- 实战 EF(LINQ) 如何以子查询的形式来 Join
- 使用try-with-resources优雅的关闭IO流
- logback.xml的使用,将日志异步保存到数据库中
- Ubuntu pkg_resources.DistributionNotFound: The 'Scrapy==1.0.3' distribution was not found and is required by the application
- Windows本机搭建Redis
- [POI2015]Myjnie
- 【BZOJ】2442: [Usaco2011 Open]修剪草坪