Open ghost opened 8 years ago
Thanks @0BobTheJanitor, I fixed your formatting a bit (check out the source if you'd like to see how).
I guess these "Invalid type ..." messages is just the Wacom driver trying to apply different types to each device node.
Can you send the output of sudo evtest
, which lists all the devices you have? And also the output of sudo modinfo hid-uclogic
.
/dev/input/event2: HUION PenTablet Pen
/dev/input/event3: HUION PenTablet Mouse
/dev/input/event4: HUION PenTablet Keyboard
/dev/input/event5: HUION PenTablet Consumer Control
/dev/input/event6: HUION PenTablet System Control
filename: /lib/modules/4.7.4-1-ARCH/extra/hid-uclogic.ko.gz
version: 7
license: GPL
author: Nikolai Kondrashov
author: Martin Rusko
srcversion: BB8839BDC437A3C74CFA5D2
alias: hid:b0003g*v00002179p00000053
alias: hid:b0003g*v00005543p00003031
alias: hid:b0003g*v00005543p00000045
alias: hid:b0003g*v00005543p00000081
alias: hid:b0003g*v00005543p0000004D
alias: hid:b0003g*v00005543p0000006E
alias: hid:b0003g*v0000256Cp0000006E
alias: hid:b0003g*v00005543p00000781
alias: hid:b0003g*v00005543p00000522
alias: hid:b0003g*v00005543p00000064
alias: hid:b0003g*v00005543p00000005
alias: hid:b0003g*v00005543p00000004
alias: hid:b0003g*v00005543p00000003
alias: hid:b0003g*v00005543p00000042
depends: hid,usbcore
vermagic: 4.7.4-1-ARCH SMP preempt mod_unload modversions
This seems right with the exception of missing pad device. Could you please send the output of dmesg
after plugging your tablet in? The last 100 lines should be enough. Thank you.
Alright, I suspect there is some issue with enabling abstract keyboard mode. Please send the output of uclogic-probe
for your tablet.
M 48 00 55 00 49 00 4F 00 4E 00 00 00 00 00 00 00
P 50 00 65 00 6E 00 54 00 61 00 62 00 6C 00 65 00 74 00 00 00
S 64 0E 03 40 9C A8 61 03 00 FF 07 A0 0F 08 00
S 65 04 03 20 A0
S 6E 04 03 00 30
S 79 14 03 48 00 41 00 36 00 30 00 00 00 00 00 00 00 00 00 00 00
S 7A 08 03 01 08 00 00 00 00
S 7B 0C 03 48 00 4B 00 20 00 4F 00 6E 00
Hmm, this looks correct. I'll dig at the driver source tomorrow.
Okay, thanks
Hi,
I had the pad buttons recognised and working under kernel 4.4.0-36-lowlatency. Initially I had the the same issue as #26 (fixed by creating 52-tablet.conf). Yesterday my kernel updated to 4.4.0-38 and xsetwacom --list no longer sees "HUION PenTablet Pad pad id: 13 type: PAD". Reverting back to 4.4.0-36 does not seem to fix the issue.
Have checked config in /usr/share/X11/xorg.conf.d -- both 10-evdev.conf & 52-tablet.conf but they are unchanged.
Think this is the same issue. Here is output from my machine to assist.
Hope this helps.
Thanks, @guyvdb. Your comment reinforces the need to fix this - it is not a simple misconfiguration, apparently.
However, if you can help it, @guyvdb and @0BobTheJanitor, please post the output directly into the issue comments, or at least as GitHub Gists. Pastebin and similar pastes tend to disappear quickly.
Will do on gists/ticket for output.
I am a developer. I have done some minor kernel module stuff before. I am looking at the code now to see if I can help but and still trying to find my way. If you can point me into looking at a particular direction I can see if I can help.
I noticed that there is an SSL signing error on make install on my machine.
before modules would be installed at:
Now only at:
make -C /lib/modules/4.4.0-36-lowlatency/build SUBDIRS=/home/guy/Downloads/digimend/digimend-kernel-drivers modules_install make[1]: Entering directory '/usr/src/linux-headers-4.4.0-36-lowlatency' INSTALL /home/guy/Downloads/digimend/digimend-kernel-drivers/hid-kye.ko At main.c:222:
Ok I have got xsetwacom to see the "HUION PenTablet Pad pad id: 22 type: PAD"
What I did is as follows:
@guyvdb I don't think the SSL errors affect anything apart from module signatures. The hid-uclogic module (and any other) shouldn't be installed by the out-of-tree driver under /lib/modules/xxx/kernel/drivers/hid/, only under .../extra/... The module under /lib/modules/xxx/kernel/drivers/hid/ should be the driver coming with the kernel package. You can verify that with modinfo <module_path>
. The stock kernel driver shouldn't have a version.
Otherwise I'm not sure what's happening here.
Perhaps there is some problem with module rebinding. Could you please restore the module under /lib/modules/xxx/kernel/drivers/hid/ (e.g. by "reinstalling" the kernel package), and then reconnect your tablet and post the last 100 lines from syslog (wherever it is kept on your distro).
I reinstalled the kernel package and confirmed it installed driver at /lib/modules/xxx/kernel/drivers/hid.
modinfo for kernel package driver:
filename: /lib/modules/4.4.0-38-lowlatency/kernel/drivers/hid/hid-uclogic.ko
license: GPL
author: Nikolai Kondrashov
author: Martin Rusko
srcversion: 44EA734BBBDA6BD0C1155F1
alias: hid:b0003g*v00005543p0000006E
alias: hid:b0003g*v0000256Cp0000006E
alias: hid:b0003g*v00005543p00000781
alias: hid:b0003g*v00005543p00000522
alias: hid:b0003g*v00005543p00000064
alias: hid:b0003g*v00005543p00000005
alias: hid:b0003g*v00005543p00000004
alias: hid:b0003g*v00005543p00000003
alias: hid:b0003g*v00005543p00000042
depends: hid
intree: Y
vermagic: 4.4.0-38-lowlatency SMP preempt mod_unload modversions
I confirmed that out of tree driver is still installed at /lib/modules/xxx/extra from when I built it. modinfo for the out of tree driver:
filename: /lib/modules/4.4.0-38-lowlatency/extra/hid-uclogic.ko
version: 7
license: GPL
author: Nikolai Kondrashov
author: Martin Rusko
srcversion: BB8839BDC437A3C74CFA5D2
alias: hid:b0003g*v00002179p00000053
alias: hid:b0003g*v00005543p00003031
alias: hid:b0003g*v00005543p00000045
alias: hid:b0003g*v00005543p00000081
alias: hid:b0003g*v00005543p0000004D
alias: hid:b0003g*v00005543p0000006E
alias: hid:b0003g*v0000256Cp0000006E
alias: hid:b0003g*v00005543p00000781
alias: hid:b0003g*v00005543p00000522
alias: hid:b0003g*v00005543p00000064
alias: hid:b0003g*v00005543p00000005
alias: hid:b0003g*v00005543p00000004
alias: hid:b0003g*v00005543p00000003
alias: hid:b0003g*v00005543p00000042
depends: hid
vermagic: 4.4.0-38-lowlatency SMP preempt mod_unload modversions
I then rebooted and after boot complete tail -f syslog before plugging in the tablet. Output below. I cannot figure out what is going on, as after this I rebooted and simply plugged in the tablet, xsetwacom --list reported correctly.
HUION PenTablet Pen stylus id: 22 type: STYLUS
HUION PenTablet Pad pad id: 24 type: PAD
Sep 21 20:32:04 guy-pc kernel: [ 136.444587] ieee80211 phy0: rt2x00queue_flush_queue: Warning - Queue 2 failed to flush
Sep 21 20:32:17 guy-pc kernel: [ 149.569053] usb 2-4: new full-speed USB device number 6 using xhci_hcd
Sep 21 20:32:17 guy-pc kernel: [ 149.734210] usb 2-4: New USB device found, idVendor=256c, idProduct=006e
Sep 21 20:32:17 guy-pc kernel: [ 149.734214] usb 2-4: New USB device strings: Mfr=5, Product=6, SerialNumber=0
Sep 21 20:32:17 guy-pc kernel: [ 149.734215] usb 2-4: Product: PenTablet
Sep 21 20:32:17 guy-pc kernel: [ 149.734217] usb 2-4: Manufacturer: HUION
Sep 21 20:32:17 guy-pc mtp-probe: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4"
Sep 21 20:32:17 guy-pc mtp-probe: bus: 2, device: 6 was not an MTP device
Sep 21 20:32:18 guy-pc kernel: [ 150.258021] input: HUION PenTablet Pen as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0/0003:256C:006E.0005/input/input21
Sep 21 20:32:18 guy-pc kernel: [ 150.309304] input: HUION PenTablet Pad as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0/0003:256C:006E.0005/input/input22
Sep 21 20:32:18 guy-pc kernel: [ 150.309484] uclogic 0003:256C:006E.0005: input,hidraw4: USB HID v1.11 Keypad [HUION PenTablet] on usb-0000:00:14.0-4/input0
Sep 21 20:32:18 guy-pc kernel: [ 150.309715] input: HUION PenTablet Mouse as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.1/0003:256C:006E.0006/input/input23
Sep 21 20:32:18 guy-pc kernel: [ 150.309885] uclogic 0003:256C:006E.0006: input,hiddev0,hidraw5: USB HID v1.11 Mouse [HUION PenTablet] on usb-0000:00:14.0-4/input1
Sep 21 20:32:18 guy-pc kernel: [ 150.310353] input: HUION PenTablet Keyboard as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.2/0003:256C:006E.0007/input/input25
Sep 21 20:32:18 guy-pc kernel: [ 150.361365] input: HUION PenTablet Consumer Control as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.2/0003:256C:006E.0007/input/input26
Sep 21 20:32:18 guy-pc kernel: [ 150.361490] input: HUION PenTablet System Control as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.2/0003:256C:006E.0007/input/input27
Sep 21 20:32:18 guy-pc kernel: [ 150.361653] uclogic 0003:256C:006E.0007: input,hidraw6: USB HID v1.11 Keyboard [HUION PenTablet] on usb-0000:00:14.0-4/input2
(re-formatted by @spbnick slightly)
Hmm. I looked at hid-rebind code and it shouldn't and can't do anything here. Because both the in-tree and out-of-tree drivers have the same name. I.e. it cannot rebind it. The only thing that could have happened, it seems, is that the in-kernel module remained loaded and was serving the tablet. Have you unloaded hid-uclogic after installing the driver, before reporting the issue?
I do not think so (not sure). It could of had the kernel driver loaded.
What causes the kernel to pick the out-of-tree driver over the in-tree driver? Is that hid-rebind?
If it is a driver that already exists in the kernel, then it is the modprobe configuration. The driver supplies a piece of it asking the driver from the "extra" directory to take precedence.
On Sep 21, 2016 10:37 PM, "Guy van den Berg" notifications@github.com wrote:
I do not think so (not sure). It could of had the kernel driver loaded.
What causes the kernel to pick the out-of-tree driver over the in-tree driver? Is that hid-rebind?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DIGImend/digimend-kernel-drivers/issues/47#issuecomment-248719528, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhhfuUHK8EBiggcTT0mWfOcABeoD8Byks5qsYd6gaJpZM4KBN0x .
Still, I doubt that the issue was driver not being unloaded. @0BobTheJanitor, I assume you tried rebooting after installing the driver and it didn't work, there was no Pad interface?
Sorry for the lack of response these last few days. Yes, I installed the driver then rebooted, did not work. However, I did not insmod as @guyvdb and now there is a PAD device. Thank you.
Still new to Linux, so I'm figuring my way around and learning, one new command at a time.
Thank you. I'll do some more investigation, though. It should just work.
Hello! I have the same tablet and the same issue. I'm really new to Linux but I'm more than happy to get you whatever information you need. I am running Linux 16.04 at the moment with 4.7.2-galliumos kernel. What steps should I take to get my buttons working?
My solution was to compile the source code manually and then insert the module. Get the source code and do the following:
Unplug tablet Traverse to directory where source code is found make, make install insmod /lib/modules/xxx/extra/hid-uclogic.ko (xxx is the folder of the current version) Do whatever you need to do
Or course, I had to rebind my buttons, which I just copy pasted this:
xsetwacom --set "HUION PenTablet Pad pad" Button 1 "key +ctrl +z -z -ctrl" xsetwacom --set "HUION PenTablet Pad pad" Button 2 “key e” xsetwacom --set "HUION PenTablet Pad pad" Button 3 "key +ctrl" xsetwacom --set "HUION PenTablet Pad pad" Button 8 "key +shift" xsetwacom --set "HUION PenTablet Pad pad" Button 9 "key +ctrl + -ctrl" xsetwacom --set "HUION PenTablet Pad pad" Button 10 "key +ctrl - -ctrl" xsetwacom --set "HUION PenTablet Pad pad" Button 11 "key b" xsetwacom --set "HUION PenTablet Pad pad" Button 12 "key space"
I'm not sure if this will solve your problem, but it did for me.
There's also not good UI for doing key rebinds and other xsetwacom commands either, so I'm probably going to make that sometime this or next week
EDIT: Okay, I think I get it! I will try and report back. Thanks so much! EDIT 2: Got it working perfectly. Thank you so much!! For anyone using Krita, the following mapping works well
xsetwacom --set 'HUION PenTablet Pad pad' Button 1 "key +ctrl +z -z -ctrl"
xsetwacom --set 'HUION PenTablet Pad pad' Button 2 "key e"
xsetwacom --set 'HUION PenTablet Pad pad' Button 3 "key p"
xsetwacom --set 'HUION PenTablet Pad pad' Button 8 "button 4"
xsetwacom --set 'HUION PenTablet Pad pad' Button 9 "button 5"
xsetwacom --set 'HUION PenTablet Pad pad' Button 10 "key ]"
xsetwacom --set 'HUION PenTablet Pad pad' Button 11 "key ["
xsetwacom --set 'HUION PenTablet Pad pad' Button 12 "key m"
26
So pretty much the same problem that @thomanski had in that issue, except I don't know where to go. Everything works fine, just can't get pad device to be discovered. Buttons used to work until I followed the instruction to create a 52-tablet.conf, now they don't work anymore. xinput --list, only "HUION PenTablet Pen stylus" is there, used to have a couple more, such as "HUION PenTablet Mouse", "HUION PenTablet Keyboard", but those are gone now. A quick check of Xorg.0.log gives:
What stands out is
So what gives? Is it a configuration problem, or should I install through DKMS, which I thought it was already a part of the main branch? Thanks. I'm running Arch Linux if that's important.
Also good luck @spbnick with whatever you decide to do next