/************************************************************************************
 * tslib: Selected device is not a touchscreen (must support ABS_X and ABS_Y events)
 * 说明:
 *     tslib校正的时候遇到这个问题,需要修改驱动里设备的支持的属性来解决。
 *
 *                                            2017-5-25 台湾 中和区 曾剑锋
 ***********************************************************************************/

一、参考文档:
    1. 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
        ...
    }
    

 

相关文章:

  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2022-12-23
  • 2021-05-27
  • 2021-10-28
  • 2022-12-23
  • 2021-09-02
相关资源
相似解决方案