为了获得完整的功能,我试图将Huion H610 Pro (8192)连接到我的Arch上。目前,它只被lsusb (ID 256 c:006e)所识别,并且不与任何驱动程序相关联。问题似乎是,libinput不承认这片平板电脑,尽管声明是支持的,而其他人成功地做到了这一点。
当按下按钮、笔在范围内或触摸工作空间时,物理设备的LED就会亮起来。在使用笔在平板上绘图时,也有来自sudo usbhid-dump -es -m 256c:006e
的输出,但是在转储中没有从平板上按下按钮的响应。输出与改进网页疑难解答预期的一样。
我尝试过从Arch Linux官方存储库安装以下驱动程序:xf86- installing、xf86-input、xf86-input及其相应的库。
我也尝试过Arch非官方存储库:digimend-内核驱动程序,向导。
这些都不管用。我可能需要做更多的工作,而不仅仅是安装它们,例如给予一个比另一个更多的优先权,但我没有找到任何关于这方面的来源。我也尝试过各种不同的安装组合,尽管它们似乎并不妨碍彼此。
我尝试遵循这个答案在AskUbuntu上的步骤,并成功地设置了一个指向hidraw的符号链接,但是我无法让Xorg将这个符号链接的输入事件连接到一个InputDevice和相应的驱动程序。
Anyone知道如何设置udev规则和xorg,以便将该设备适当地连接到驱动程序(最好是libinput或wacom)?
故障排除
dmesg输出一旦连接:
$ sudo dmesg
[ 162.687139] usb 1-10: new full-speed USB device number 5 using xhci_hcd
[ 162.828474] usb 1-10: config 1 has an invalid interface number: 1 but max is 0
[ 162.828478] usb 1-10: config 1 has no interface number 0
[ 162.832150] input: NUVOTON WPM USB as /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:0416:A316.0006/input/input20
[ 162.887749] hid-generic 0003:0416:A316.0006: input,hidraw5: USB HID v1.10 Device [NUVOTON WPM USB] on usb-0000:00:14.0-10/input1
[ 166.053899] usb 1-10: USB disconnect, device number 5
[ 166.377593] usb 1-10: new full-speed USB device number 6 using xhci_hcd
[ 166.576102] uclogic 0003:256C:006E.0007: device parameters not found
[ 166.576105] uclogic 0003:256C:006E.0007: tablet enabling failed
[ 166.576170] uclogic 0003:256C:006E.0008: No inputs registered, leaving
[ 166.576221] uclogic 0003:256C:006E.0008: hidraw5: USB HID v1.11 Device [HID 256c:006e] on usb-0000:00:14.0-10/input1
[ 166.588904] uclogic 0003:256C:006E.0007: device parameters not found
[ 166.588907] uclogic 0003:256C:006E.0007: tablet enabling failed
添加到udev以创建sysmlink的行,如前所述:(修改后的复制重写/usr/lib/share/udev/rues.d/wacom.Rule)
/etc/udev/rules.d.d/wacom.Regulations
### Add support for HUION tablet here:
ATTRS{idVendor}=="256c", ATTRS{idProduct}=="006e", SYMLINK+="input/tablet-huion"
# Check and repossess the device if a module other than the wacom one
# is already bound to it.
ATTRS{idVendor}=="256c", ACTION=="add", RUN+="check_driver wacom $devpath $env{ID_BUS}"
/etc/x11/xorg.con.d/99-huion.conf
Section "InputClass"
Identifier "Huion_on_wacom_class"
Driver "wacom"
#MatchIsTablet "on" # disabled because I don't think this is recognized
#MatchProduct "HUION" # same as IsTablet
MatchDevicePath "/dev/input/tablet-huion" # using symlink from udev
#MatchUSBID "256c:006e" # tried this too, to no avail
EndSection
我提交了一个关于DIGImend的github的问题:这里提供了更多的故障排除细节。
发布于 2018-01-07 08:07:32
部分答复:
从判断
uclogic 0003:256C:006E.0007: device parameters not found
uclogic 0003:256C:006E.0007: tablet enabling failed
uclogic 0003:256C:006E.0008: No inputs registered, leaving
uclogic 0003:256C:006E.0008: hidraw5: USB HID v1.11 Device [HID 256c:006e] on usb-0000:00:14.0-10/input1
uclogic 0003:256C:006E.0007: device parameters not found
uclogic 0003:256C:006E.0007: tablet enabling failed
看起来,hid-uclogic
驱动程序不适用于您的平板电脑。特别是,它没有注册内核输入设备,这就是为什么您没有看到任何经过HID层的事件。
(作为提醒,事件链是: USB (内核) -> HID (内核) -> input (内核) -> X 86-input/X 86- (X驱动程序) -> X)。
要尝试的事情:
hid-uclogic
内核模块,看看你是否得到至少一些自动翻译的HID事件,由默认内核转换器。显然,需要一个特殊的驱动程序,所以它不会完美,或者根本无法工作,但它可能至少部分可用。hid-uclogic
更新为较新的版本,使用out of tree 核补丁或内核驱动程序更多调试帮助:一旦获得内核输入层设备,就可以使用evtest
,对于X事件可以使用xev
或xinput
。我建议在libinput
上使用evdev
,因为它是一种更老、更稳定的方法。
https://unix.stackexchange.com/questions/415258
复制相似问题