/************************************************************************************
* 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
...
}

最新文章

  1. Ubuntu下配置python完成爬虫任务(笔记一)
  2. python下的orm基本操作(1)--Mysql下的CRUD简单操作(含源码DEMO)
  3. oracle序列
  4. HDU1242 Rescue
  5. java.lang.NoClassDefFoundError: Could not initialize class ......
  6. 安装Cygwin
  7. PHP javascript 值互相引用(不用刷新页面)
  8. POJ3683 Falsita
  9. 基于storm的在线关联规则
  10. fp oo
  11. TTP 错误 404.3 - Not Found 由于扩展配置问题而无法提供您请求的页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加 MIME 映射。
  12. Python字符处理
  13. SpringBoot 整合Ehcache3
  14. 实战 EF(LINQ) 如何以子查询的形式来 Join
  15. 使用try-with-resources优雅的关闭IO流
  16. logback.xml的使用,将日志异步保存到数据库中
  17. Ubuntu pkg_resources.DistributionNotFound: The 'Scrapy==1.0.3' distribution was not found and is required by the application
  18. Windows本机搭建Redis
  19. [POI2015]Myjnie
  20. 【BZOJ】2442: [Usaco2011 Open]修剪草坪

热门文章

  1. c9.io
  2. cisco笔记
  3. 高亮显示QSS文件
  4. springBean的作用域
  5. linux 终端分屏命令
  6. hdu 5920 Wool 思路
  7. Pandas排序
  8. JDK__下载地址
  9. 一些官方的github地址
  10. svn官方版本的使用