我试图让触摸屏与活动笔支持在一个Netbook 1上工作。问题是,手写笔被检测到就像点击一样。它与触摸屏共享相同的id,所以当它在屏幕附近时,它的作用就像连续的点击。
xinput-list的输出是:
Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ HAILUCK CO.,LTD USB KEYBOARD Mouse id=11 [slave pointer (2)]
⎜ ↳ Compx 2.4G Receiver Mouse id=16 [slave pointer (2)]
⎜ ↳ Compx 2.4G Receiver Consumer Control id=17 [slave pointer (2)]
⎜ ↳ Goodix Capacitive TouchScreen id=19 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ HAILUCK CO.,LTD USB KEYBOARD id=10 [slave keyboard (3)]
↳ HAILUCK CO.,LTD USB KEYBOARD System Control id=12 [slave keyboard (3)]
↳ HAILUCK CO.,LTD USB KEYBOARD Consumer Control id=13 [slave keyboard这个问题似乎已经用这个修改过的驱动程序:https://gitlab.com/AdyaAdya/goodix-touchscreen-linux-driver解决了。
但是,在遵循该链接的自述文件中的说明之后,驱动程序使手写笔完全停止工作,尽管触摸屏仍然工作。
加载修改后的驱动程序之前,dmesg | grep -i goodix的输出是:
[ 4.771020] Goodix-TS i2c-GDIX1001:00: i2c-GDIX1001:00 supply AVDD28 not found, using dummy regulator
[ 4.771041] Goodix-TS i2c-GDIX1001:00: i2c-GDIX1001:00 supply VDDIO not found, using dummy regulator
[ 4.772795] Goodix-TS i2c-GDIX1001:00: ID 9111, version: 4020
[ 4.790648] input: Goodix Capacitive TouchScreen as /devices/pci0000:00/0000:00:15.2/i2c_designware.2/i2c-3/i2c-GDIX1001:00/input/input16跑步后
# rmmod goodix
# insmod goodix.ko正如说明所述,dmesg | grep -i goodix给了我们:
[ 4.771020] Goodix-TS i2c-GDIX1001:00: i2c-GDIX1001:00 supply AVDD28 not found, using dummy regulator
[ 4.771041] Goodix-TS i2c-GDIX1001:00: i2c-GDIX1001:00 supply VDDIO not found, using dummy regulator
[ 4.772795] Goodix-TS i2c-GDIX1001:00: ID 9111, version: 4020
[ 4.790648] input: Goodix Capacitive TouchScreen as /devices/pci0000:00/0000:00:15.2/i2c_designware.2/i2c-3/i2c-GDIX1001:00/input/input16
[ 711.634820] goodix: loading out-of-tree module taints kernel.
[ 711.634976] goodix: module verification failed: signature and/or required key missing - tainting kernel
[ 711.638265] Goodix-TS i2c-GDIX1001:00: i2c-GDIX1001:00 supply AVDD28 not found, using dummy regulator
[ 711.638303] Goodix-TS i2c-GDIX1001:00: i2c-GDIX1001:00 supply VDDIO not found, using dummy regulator
[ 711.641037] Goodix-TS i2c-GDIX1001:00: ID 9111, version: 4020
[ 711.647527] input: Goodix Capacitive TouchScreen as /devices/pci0000:00/0000:00:15.2/i2c_designware.2/i2c-3/i2c-GDIX1001:00/input/input25
[ 711.657476] input: Goodix Active Stylus Pen as /devices/pci0000:00/0000:00:15.2/i2c_designware.2/i2c-3/i2c-GDIX1001:00/input/input26正如您所看到的,它现在提到了最后一行中的“活动堆栈笔”,但是手写笔不起作用。触摸屏还能用。手写笔仍未显示在xinput list上。
如果我误解了如何运用这些指示,我也不会感到惊讶。任何想法都将不胜感激。
发布于 2020-02-02 09:47:02
根据这些输出,我怀疑问题来自于缺少libinput识别它为“平板设备”所需的手写笔的分辨率信息。
要了解更多关于我的意思,请参考专门针对这个问题的故障排除部分。
简单地说,如果您有这个问题,您需要像上面的链接所描述的那样向udev提供分辨率信息。
(我也回答了关于您发布的存储库问题)
https://unix.stackexchange.com/questions/565208
复制相似问题