tslib: Selected device is not a touchscreen (must support ABS_X and ABS_Y events)

时间:2023-03-09 09:16:33
tslib: Selected device is not a touchscreen (must support ABS_X and ABS_Y events)
/************************************************************************************
* 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://*.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
...
}