Huion graphics tablet drivers?
Mono
Status: Contributor
Joined: 21 Jun 2012
Posts: 115
Reply Quote
Hello. I've tried to follow the directions in post #2 here:

answers.launchpad.net/wizardpen/+question/214426

But hid-ids.h and hid-quirks.c don't exist and I have gotten nowhere. Maybe something changed since kernel 3.0?

Is there a way I can apply them to the current Liquorix kernel? Maybe they can be added by default?

:: Code ::
$ inxi -bxx
System:    Host: ronin Kernel: 3.9-10.dmz.1-liquorix-amd64 x86_64 (64 bit, gcc: 4.7.3)
           Desktop: MATE 1.6.0 (Gtk 3.8.2) dm: mdm Distro: Debian GNU/Linux jessie/sid
Machine:   Mobo: ASUSTeK model: M5A99FX PRO R2.0 version: Rev 1.xx Bios: American Megatrends version: 0803 date: 08/15/2012
CPU:       Octa core AMD FX-8350 Eight-Core (-MCP-) clocked at 4008.580 MHz
Graphics:  Card: NVIDIA G73 [GeForce 7600 GS] bus-ID: 01:00.0 chip-ID: 10de:0392
           X.Org: 1.12.4 driver: nvidia Resolution: 1280x960@60.0hz
           GLX Renderer: GeForce 7600 GS/PCIe/SSE2 GLX Version: 1.4 (2.1.2 NVIDIA 304.88) Direct Rendering: No
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 ver: 2.3LK-NAPI port: a000 bus-ID: 0a:00.0 chip-ID: 10ec:8168
Drives:    HDD Total Size: 164.2GB (58.2% used)
Info:      Processes: 335 Uptime: 8:37 Memory: 5526.9/7897.9MB Runlevel: 2 Gcc sys: 4.7.3 alt: 4.4/4.6
           Client: Shell (bash 4.2.45 running in mate-terminal) inxi: 1.9.7


Incidentally I notice direct rendering has gone down again. Sigh.
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1135
Reply Quote
I managed to add the module in using the instructions. There was a few things I modified, and I found that whoever wrote that driver is using 'goto' statements *eye twitch*.

Either way, it built. Let me know if it works out for you.
Back to top
Mono
Status: Contributor
Joined: 21 Jun 2012
Posts: 115
Reply Quote
Thanks!

It seems to work, but the cursor is confined to a 78x58 pixel area in the upper left.

It spits out debug data in kern.log. It appears that pressure sensitivity and buttons are operational, it's just the cursor won't leave the upper left corner.

:: Code ::

Jul 21 21:27:49 ronin kernel: usb 11-2: new full-speed USB device number 2 using ohci_hcd
Jul 21 21:27:49 ronin kernel: usb 11-2: New USB device found, idVendor=256c, idProduct=006e
Jul 21 21:27:49 ronin kernel: usb 11-2: New USB device strings: Mfr=5, Product=6, SerialNumber=0
Jul 21 21:27:49 ronin kernel: usb 11-2: Product: P608N
Jul 21 21:27:49 ronin kernel: usb 11-2: Manufacturer: HUION
Jul 21 21:27:49 ronin kernel: input: HUION P608N as /devices/pci0000:00/0000:00:16.0/usb11/11-2/11-2:1.0/input/input13
Jul 21 21:27:49 ronin kernel: input: HUION P608N as /devices/pci0000:00/0000:00:16.0/usb11/11-2/11-2:1.1/input/input14
Jul 21 21:27:49 ronin kernel: usbcore: registered new interface driver usbmouse
Jul 21 21:27:49 ronin kernel: huiontablet: v1.0:USB HID Boot Protocol tablet driver
Jul 21 21:31:20 ronin kernel: pos_x=403,pos_y=275,pos_z=0,button=0
Jul 21 21:31:20 ronin kernel: pos_x=404,pos_y=275,pos_z=0,button=0
Jul 21 21:31:20 ronin kernel: pos_x=406,pos_y=275,pos_z=0,button=0
Jul 21 21:31:20 ronin kernel: pos_x=407,pos_y=275,pos_z=0,button=0
Jul 21 21:31:20 ronin kernel: pos_x=409,pos_y=274,pos_z=0,button=0
Jul 21 21:31:20 ronin kernel: pos_x=40a,pos_y=272,pos_z=0,button=0
Jul 21 21:31:20 ronin kernel: pos_x=40b,pos_y=271,pos_z=0,button=0
Jul 21 21:31:20 ronin kernel: pos_x=40c,pos_y=270,pos_z=0,button=0
Jul 21 21:31:20 ronin kernel: pos_x=40e,pos_y=26f,pos_z=0,button=0


To be fair, I tried to migrate this installation from LMDE to Jessie, and it ended up with some things not working.
Back to top
Mono
Status: Contributor
Joined: 21 Jun 2012
Posts: 115
Reply Quote
It does the same thing on a Mint 13 computer, so it must not be a problem on my end.
Back to top
Mono
Status: Contributor
Joined: 21 Jun 2012
Posts: 115
Reply Quote
Well, I've been looking through the code trying to make sense of this.

My screen resolution is 1280x960. The drivers specify an input range of 7fff, whereas kern.log reports a range of 7ff. The first nibble is apparently getting truncated. Now it makes sense 1280x960 / 16 = 80x60, which explains why only the upper left 1/16 of the screen is functional. So the question is where does the truncation occur? It may simply be a matter of faulty bitmasking/shifting. It may be really simple to get this working. Is it possible something you changed caused this?

If I knew how to compile the driver, I would have tried some things. for instance changing

:: Code ::
input_set_abs_params(input_dev, ABS_X, 0, 0x7fff, 0, 0);
input_set_abs_params(input_dev, ABS_Y, 0, 0x7fff, 0, 0);


to

:: Code ::
input_set_abs_params(input_dev, ABS_X, 0, 0x07ff, 0, 0);
input_set_abs_params(input_dev, ABS_Y, 0, 0x07ff, 0, 0);


May be a workaround to get full screen coverage, but you still lose the resolution of that last nibble. I can't tell where that last nibble disappears, but if I could compile the driver myself I may be able to get it working.
Back to top
Mono
Status: Contributor
Joined: 21 Jun 2012
Posts: 115
Reply Quote
I am eager to report that my graphics tablet works now on the Liquorix kernel!

It seem there was some Huion device support added at some point. I don't know whether it just came with the standard kernel or it was something that was done in Liquorix.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours