汇顶科技触摸屏驱动手写笔与触摸屏共享id

汇顶科技触摸屏驱动手写笔与触摸屏共享id

我正在尝试让触摸屏在 One Netbook 1s 上支持有源手写笔。问题是检测到手写笔就像点击一样。它与触摸屏共享相同的 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

如果我误解了如何应用这些指示,我不会感到惊讶。任何想法,将不胜感激。

答案1

根据这些输出,我怀疑问题来自于手写笔缺少将libinput其识别为“平板电脑设备”所需的分辨率信息。

要了解更多关于我的意思,请参阅故障排除部分专门讨论这个问题。

简而言之,如果您确实遇到此问题,则需要提供解决方案信息,udev如上面的链接所述。

(我也回复了关于您发布的存储库问题

相关内容