Pen Tablet Huion H580 does not work

Bug #994978 reported by Yaroslav
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Wizardpen
Incomplete
Undecided
Unassigned

Bug Description

This device (lsusb):
Bus 002 Device 004: ID 5543:006e UC-Logic Technology Corp.

xorg.log:
[ 5296.419] (II) config/udev: Adding input device HV HuionH580 (/dev/input/event4)
[ 5296.419] (**) HV HuionH580: Applying InputClass "evdev tablet catchall"
[ 5296.419] (II) Using input driver 'evdev' for 'HV HuionH580'
[ 5296.419] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 5296.419] (**) HV HuionH580: always reports core events
[ 5296.419] (**) evdev: HV HuionH580: Device: "/dev/input/event4"
[ 5296.428] (--) evdev: HV HuionH580: Found 3 mouse buttons
[ 5296.428] (--) evdev: HV HuionH580: Found absolute axes
[ 5296.428] (--) evdev: HV HuionH580: Found x and y absolute axes
[ 5296.428] (--) evdev: HV HuionH580: Found absolute tablet.
[ 5296.428] (II) evdev: HV HuionH580: Configuring as tablet
[ 5296.428] (**) evdev: HV HuionH580: YAxisMapping: buttons 4 and 5
[ 5296.428] (**) evdev: HV HuionH580: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 5296.428] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:02.0/usb2/2-2/2-2:1.0/input/input19/event4"
[ 5296.428] (II) XINPUT: Adding extended input device "HV HuionH580" (type: TABLET)
[ 5296.428] (II) evdev: HV HuionH580: initialized for absolute axes.
[ 5296.428] (**) HV HuionH580: (accel) keeping acceleration scheme 1
[ 5296.428] (**) HV HuionH580: (accel) acceleration profile 0
[ 5296.428] (**) HV HuionH580: (accel) acceleration factor: 2.000
[ 5296.428] (**) HV HuionH580: (accel) acceleration threshold: 4
[ 5296.429] (II) config/udev: Adding input device HV HuionH580 (/dev/input/mouse1)
[ 5296.429] (II) No input driver/identifier specified (ignoring)
[ 5296.429] (II) config/udev: Adding input device HV HuionH580 (/dev/input/event5)
[ 5296.429] (**) HV HuionH580: Applying InputClass "evdev pointer catchall"
[ 5296.429] (**) HV HuionH580: Applying InputClass "evdev tablet catchall"
[ 5296.429] (II) Using input driver 'evdev' for 'HV HuionH580'
[ 5296.429] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 5296.429] (**) HV HuionH580: always reports core events
[ 5296.429] (**) evdev: HV HuionH580: Device: "/dev/input/event5"
[ 5296.444] (--) evdev: HV HuionH580: Found 9 mouse buttons
[ 5296.444] (--) evdev: HV HuionH580: Found scroll wheel(s)
[ 5296.444] (--) evdev: HV HuionH580: Found relative axes
[ 5296.444] (--) evdev: HV HuionH580: Found x and y relative axes
[ 5296.444] (--) evdev: HV HuionH580: Found absolute axes
[ 5296.444] (--) evdev: HV HuionH580: Found x and y absolute axes
[ 5296.444] (--) evdev: HV HuionH580: Found absolute tablet.
[ 5296.444] (II) evdev: HV HuionH580: Configuring as tablet
[ 5296.444] (II) evdev: HV HuionH580: Adding scrollwheel support
[ 5296.444] (**) evdev: HV HuionH580: YAxisMapping: buttons 4 and 5
[ 5296.444] (**) evdev: HV HuionH580: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 5296.444] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:02.0/usb2/2-2/2-2:1.1/input/input20/event5"
[ 5296.444] (II) XINPUT: Adding extended input device "HV HuionH580" (type: TABLET)
[ 5296.444] (WW) evdev: HV HuionH580: touchpads, tablets and touchscreens ignore relative axes.
[ 5296.444] (II) evdev: HV HuionH580: initialized for absolute axes.
[ 5296.445] (**) HV HuionH580: (accel) keeping acceleration scheme 1
[ 5296.445] (**) HV HuionH580: (accel) acceleration profile 0
[ 5296.445] (**) HV HuionH580: (accel) acceleration factor: 2.000
[ 5296.445] (**) HV HuionH580: (accel) acceleration threshold: 4
[ 5296.446] (II) config/udev: Adding input device HV HuionH580 (/dev/input/mouse2)
[ 5296.446] (II) No input driver/identifier specified (ignoring)
[ 5296.447] (II) config/udev: Adding input device HV HuionH580 (/dev/input/event6)
[ 5296.447] (**) HV HuionH580: Applying InputClass "evdev keyboard catchall"
[ 5296.447] (II) Using input driver 'evdev' for 'HV HuionH580'
[ 5296.447] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 5296.447] (**) HV HuionH580: always reports core events
[ 5296.447] (**) evdev: HV HuionH580: Device: "/dev/input/event6"
[ 5296.460] (--) evdev: HV HuionH580: Found 1 mouse buttons
[ 5296.460] (--) evdev: HV HuionH580: Found scroll wheel(s)
[ 5296.460] (--) evdev: HV HuionH580: Found relative axes
[ 5296.460] (--) evdev: HV HuionH580: Found absolute axes
[ 5296.460] (--) evdev: HV HuionH580: Found keys
[ 5296.460] (II) evdev: HV HuionH580: Configuring as mouse
[ 5296.460] (II) evdev: HV HuionH580: Configuring as keyboard
[ 5296.460] (II) evdev: HV HuionH580: Adding scrollwheel support
[ 5296.460] (**) evdev: HV HuionH580: YAxisMapping: buttons 4 and 5
[ 5296.460] (**) evdev: HV HuionH580: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 5296.460] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:02.0/usb2/2-2/2-2:1.2/input/input21/event6"
[ 5296.460] (II) XINPUT: Adding extended input device "HV HuionH580" (type: KEYBOARD)
[ 5296.460] (**) Option "xkb_rules" "evdev"
[ 5296.460] (**) Option "xkb_model" "pc105"
[ 5296.460] (**) Option "xkb_layout" "us"
[ 5296.461] (EE) evdev: HV HuionH580: failed to initialize for relative axes.
[ 5296.461] (II) evdev: HV HuionH580: initialized for absolute axes.
[ 5296.461] (**) HV HuionH580: (accel) keeping acceleration scheme 1
[ 5296.461] (**) HV HuionH580: (accel) acceleration profile 0
[ 5296.461] (**) HV HuionH580: (accel) acceleration factor: 2.000
[ 5296.462] (**) HV HuionH580: (accel) acceleration threshold: 4

Link to product:
http://www.huion-tablet.com/product/product.php?sku=1003

Specifications:
Technology Electromagnetic Digitizer
Active Area 8" x 5"
Hand Input Resolution 2000LPI / 4000 LPI (Lines Per Inch)
Report Rate 125RPS / 200 RPS
Express keys 8 Express keys
Funtction keys 13 Funtction keys
Pressure Sensitivity 1024Levels / 2048 Levels
Reading Height 0.4"
Supply Voltage DC 5V
Input Current < 60 mA
Power Consumption 0.35 W
Interface Support USB 1.1
USB Cable Length 150CM
Compliance CE/FCC/CCC
Color Gray/Black/White or OEM
Dimensions 302mm x 208mm x 13mm
Net Weight 475g

Wizardpen does not support this tablet, the site of the manufacturer is only windows and mac drivers.

Revision history for this message
Yaroslav (konan-mail) wrote :
Download full text (5.9 KiB)

Sorry, I was able to understand, Wizardpen supports this tablet, but you need to add in the file
/etc/udev/rules.d/67-xorg-wizardpen.rules

# Huion H580
ENV{ID_VENDOR_ID}=="5543", ENV{ID_MODEL_ID}=="006e", ENV{x11_driver}="wizardpen"

After rebooting, it worked, but not fully.
Please add this tablet.

At work there is not full as follows:
1) Do not react to the degree of depression, is always the same thickness of the pen, and must change.
2) The keys are left on the tablet do not work as they should, they cause very different actions.

Please help me understand these two issues.

xorg.log:
[ 7782.932] (II) config/udev: Adding input device HV HuionH580 (/dev/input/event5)
[ 7782.932] (**) HV HuionH580: Applying InputClass "evdev pointer catchall"
[ 7782.932] (**) HV HuionH580: Applying InputClass "evdev tablet catchall"
[ 7782.932] (**) HV HuionH580: Applying InputClass "wizardpen"
[ 7782.932] (II) Using input driver 'wizardpen' for 'HV HuionH580'
[ 7782.932] (II) Loading /usr/lib/xorg/modules/input/wizardpen_drv.so
[ 7782.932] (**) HV HuionH580: always reports core events
[ 7782.932] (**) Option "Device" "/dev/input/event5"
[ 7782.944] (--) HV HuionH580: MaxX:0 MaxY:136155216 MaxZ:2047
[ 7782.944] (--) HV HuionH580: aspect ratio:1.00:1
[ 7782.944] (**) HV HuionH580 is in absolute mode
[ 7782.944] (II) HV HuionH580: ScreenX = 1680, ScreenY = 1050
[ 7782.944] (**) HV HuionH580: TopX = 1506
[ 7782.944] (**) HV HuionH580: TopY = 2705
[ 7782.944] (**) HV HuionH580: BottomX = 31225
[ 7782.944] (**) HV HuionH580: BottomY = 30892
[ 7782.944] (**) HV HuionH580: TopZ (min pressure) = 0
[ 7782.944] (**) HV HuionH580: BottomZ (max pressure) = 2047
[ 7782.944] (**) HV HuionH580: always reports core events
[ 7782.980] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:02.0/usb2/2-2/2-2:1.1/input/input11/event5"
[ 7782.980] (II) XINPUT: Adding extended input device "HV HuionH580" (type: WizardPen Tablet)
[ 7782.980] (II) HV HuionH580 Increment: 1
[ 7782.980] (**) HV HuionH580: (accel) keeping acceleration scheme 1
[ 7782.980] (**) HV HuionH580: (accel) acceleration profile 0
[ 7782.980] (**) HV HuionH580: (accel) acceleration factor: 2.000
[ 7782.980] (**) HV HuionH580: (accel) acceleration threshold: 4
[ 7782.989] (II) config/udev: Adding input device HV HuionH580 (/dev/input/event4)
[ 7782.989] (**) HV HuionH580: Applying InputClass "evdev tablet catchall"
[ 7782.989] (**) HV HuionH580: Applying InputClass "wizardpen"
[ 7782.989] (II) Using input driver 'wizardpen' for 'HV HuionH580'
[ 7782.989] (II) Loading /usr/lib/xorg/modules/input/wizardpen_drv.so
[ 7782.989] (**) HV HuionH580: always reports core events
[ 7782.989] (**) Option "Device" "/dev/input/event4"
[ 7782.989] (--) HV HuionH580: MaxX:32767 MaxY:32767 MaxZ:2047
[ 7782.989] (--) HV HuionH580: aspect ratio:1.60:1
[ 7782.989] (**) HV HuionH580 is in absolute mode
[ 7782.989] (II) HV HuionH580: ScreenX = 1680, ScreenY = 1050
[ 7782.989] (**) HV HuionH580: TopX = 1506
[ 7782.989] (**) HV HuionH580: TopY = 2705
[ 7782.989] (**) HV HuionH580: ...

Read more...

Yaroslav (konan-mail)
Changed in wizardpen:
status: New → Incomplete
Revision history for this message
Yaroslav (konan-mail) wrote :
Download full text (3.3 KiB)

The driver does not work on the kernel 3.x

uname -a:
Linux konan-linux 3.5.0-6-generic #7~edgers2-Ubuntu SMP Tue Jul 24 19:43:31 UTC 2012 i686 athlon i386 GNU/Linux

xorg.log:
[ 3724.585] (II) config/udev: Adding input device HV HuionH580 (/dev/input/mouse0)
[ 3724.585] (II) No input driver specified, ignoring this device.
[ 3724.585] (II) This device may have been added with another device file.
[ 3724.586] (II) config/udev: Adding input device HV HuionH580 (/dev/input/event3)
[ 3724.586] (**) HV HuionH580: Applying InputClass "evdev tablet catchall"
[ 3724.586] (**) HV HuionH580: Applying InputClass "wizardpen"
[ 3724.586] (II) LoadModule: "wizardpen"
[ 3724.587] (II) Loading /usr/lib/xorg/modules/input/wizardpen_drv.so
[ 3724.587] (II) Module wizardpen: vendor="X.Org Foundation"
[ 3724.587] compiled for 1.10.1, module version = 0.8.1
[ 3724.587] Module class: X.Org XInput Driver
[ 3724.587] ABI class: X.Org XInput driver, version 12.3
[ 3724.587] (EE) module ABI major version (12) doesn't match the server's version (16)
[ 3724.587] (II) UnloadModule: "wizardpen"
[ 3724.587] (II) Unloading wizardpen
[ 3724.587] (EE) Failed to load module "wizardpen" (module requirement mismatch, 0)
[ 3724.587] (EE) No input driver matching `wizardpen'
[ 3724.591] (II) config/udev: Adding input device HV HuionH580 (/dev/input/mouse1)
[ 3724.591] (II) No input driver specified, ignoring this device.
[ 3724.591] (II) This device may have been added with another device file.
[ 3724.592] (II) config/udev: Adding input device HV HuionH580 (/dev/input/event4)
[ 3724.592] (**) HV HuionH580: Applying InputClass "evdev pointer catchall"
[ 3724.592] (**) HV HuionH580: Applying InputClass "evdev tablet catchall"
[ 3724.592] (**) HV HuionH580: Applying InputClass "wizardpen"
[ 3724.592] (II) LoadModule: "wizardpen"
[ 3724.592] (II) Loading /usr/lib/xorg/modules/input/wizardpen_drv.so
[ 3724.592] (II) Module wizardpen: vendor="X.Org Foundation"
[ 3724.592] compiled for 1.10.1, module version = 0.8.1
[ 3724.592] Module class: X.Org XInput Driver
[ 3724.592] ABI class: X.Org XInput driver, version 12.3
[ 3724.592] (EE) module ABI major version (12) doesn't match the server's version (16)
[ 3724.592] (II) UnloadModule: "wizardpen"
[ 3724.592] (II) Unloading wizardpen
[ 3724.592] (EE) Failed to load module "wizardpen" (module requirement mismatch, 0)
[ 3724.592] (EE) No input driver matching `wizardpen'
[ 3724.593] (II) config/udev: Adding input device HV HuionH580 (/dev/input/event5)
[ 3724.593] (**) HV HuionH580: Applying InputClass "evdev keyboard catchall"
[ 3724.593] (**) HV HuionH580: Applying InputClass "evdev tablet catchall"
[ 3724.593] (**) HV HuionH580: Applying InputClass "wizardpen"
[ 3724.594] (II) LoadModule: "wizardpen"
[ 3724.594] (II) Loading /usr/lib/xorg/modules/input/wizardpen_drv.so
[ 3724.594] (II) Module wizardpen: vendor="X.Org Foundation"
[ 3724.594] compiled for 1.10.1, module version = 0.8.1
[ 3724.594] Module class: X.Org XInput Driver
[ 3724.594] ABI class: X.Org XInput driver, version 12.3
[ 3724.594] (EE) module ABI major version (12) doesn't match the server's version (16)
[ 3724.594] (...

Read more...

Changed in wizardpen:
status: Incomplete → New
Revision history for this message
Yaroslav (konan-mail) wrote :
Changed in wizardpen:
status: New → Incomplete
Revision history for this message
william2018 (huion-brooks) wrote :

1
  Copy huiontablet.c to [kernel]/drivers/hid

2
  Open Makefile ,before the end of file ,you can write

obj-$(CONFIG_HID_HUIONTABLET) += huiontablet.o

3
  Open Kconfig,after "drivers/hid/usbhid/Kconfig" (about Line 60),add

config HID_HUIONTABLET
 tristate "Huion tablet"
 depends on INPUT
 ---help---
 Support for Huion tablet.

4
  Open hid-ids.h,before endif(about Line 675),add
#define USB_VENDOR_ID_HUIONTABLET 0x256C
#define USB_VENDOR_ID_HUIONTABLET2 0x5543
#define USB_DEVICE_ID_HUIONTABLET 0x0005
#define USB_DEVICE_ID_HUIONTABLET2 0x006E

5
  Enter the folder [kernel]/drivers/hid/usbhid,open hid-quirks.c,in hid_blacklist struct,before { 0, 0 },add
        { USB_VENDOR_ID_HUIONTABLET,USB_DEVICE_ID_HUIONTABLET, HID_QUIRK_IGNORE},
        { USB_VENDOR_ID_HUIONTABLET,USB_DEVICE_ID_HUIONTABLET2, HID_QUIRK_IGNORE},
        { USB_VENDOR_ID_HUIONTABLET2,USB_DEVICE_ID_HUIONTABLET, HID_QUIRK_IGNORE},
        { USB_VENDOR_ID_HUIONTABLET2,USB_DEVICE_ID_HUIONTABLET2, HID_QUIRK_IGNORE},

about Line 90

6 make menuconfig

  open console and enter the kernel folder,
  make menuconfig
select Device Drivers-> HID Devices-> Huion tablet

Warning:This guide is according to Linux version 3.0,you can modify according to the actual circumstance

Huion Install Guide
http://www.huiontablet.com/developer/huion_guide.txt

source code
http://www.huiontablet.com/developer/huiontablet.c

official website/feedback
http://www.huiontablet.com

Revision history for this message
robvn (rvnues) wrote :

I tried this with kernel 13.9.9 and got this compiling error:

  CC [M] drivers/hid/huiontablet.o
drivers/hid/huiontablet.c: In function 'usb_mouse_irq':
drivers/hid/huiontablet.c:100:3: error: implicit declaration of function 'err' [-Werror=implicit-function-declaration]
   err ("can't resubmit intr, %s-%s/input0, status %d",
   ^
cc1: some warnings being treated as errors
make[2]: *** [drivers/hid/huiontablet.o] Error 1
make[1]: *** [drivers/hid] Error 2
make: *** [drivers] Error 2

Revision history for this message
robvn (rvnues) wrote :

An update. I tried to compile linux 13.9.9 with
" -Werror-implicit-function-declaration \" removed from the
KBUILD_CFLAGS in the Makefile in the linux main directory.

A websearch suggested that this change might help to get the module
compiled. Still this would not make things easier in the long run.

Especially as the module did not compile :(

.......
Kernel: arch/x86/boot/bzImage is ready (#1)
  Building modules, stage 2.
  MODPOST 3148 modules
ERROR: "err" [drivers/hid/huiontablet.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
.......

It would be great when this module will be part of the kernel.

Thanks,

Revision history for this message
robvn (rvnues) wrote :

Ok. This driver does not work, also after repairing the compilation error. The tablet working area does not relate to that of the screen.

Good news is that the hid-huion driver proposed for linux kernel 3.11 by Martin Rusko works fine (see https://patchwork.kernel.org/patch/2624521/). I compiled it into kernel 3.9.9 and now I have a great tablet to work with.

Revision history for this message
elclanrs (elclanrs) wrote :

robvn, could you share your patched kernel debs? I'm having the same problem, I already downloaded 3.9 and patched it, then compiled it and installed it. "uname -a" reports new kernel but tablet doesn't work. I can see the identifier in "lsusb" but it's not listed in "xinput list"l; it doesn't appear in myPaint or GIMP or any other aplpication. I'm not sure what's wrong...

Revision history for this message
elclanrs (elclanrs) wrote :

I got it working! Silly me, I patched the kernel but didn't add the "CONFIG_HID_HUION" to the config. It works beautifully with Martin Rusko's patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.