NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: HUION tablet
On Fri, 19 May 2023, Brett Lymn wrote:
Is somebody using it right now? Has somebody tryed it with the base
X?
It is on my work queue but I am distracted with other things at the
moment.
Well, I made it work and I can't believe it. AutoEmptyInput. This
obscure option I found by chance not documented in xorg.conf(5),
have to be turn off in the ServeLayout section. Now I remember why
I hated it so much to configure X11 years ago.
Whith this setting snippet:
Section "ServerLayout"
Identifier "xorg configured"
InputDevice "Hion Tablet"
Option "AutoEmptyInput" "off"
EndSection
Section "InputDevice"
Identifier "Hion Tablet"
Driver "usbtablet"
Option "Device" "/dev/uhid3"
Option "Type" "stylus"
Option "Mode" "Absolute"
EndSection
The usbtablet driver is loaded and the tablet is enabled:
[...]
[ 203.458] (==) Using config file: "/etc/X11/xorg.conf"
[ 203.458] (==) ServerLayout "xorg configured"
[ 203.458] (==) No screen section available. Using defaults.
[ 203.458] (**) |-->Screen "Default Screen Section" (0)
[ 203.458] (**) | |-->Monitor "<default monitor>"
[ 203.458] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 203.459] (**) |-->Input Device "Hion Tablet"
[ 203.459] (==) Automatically adding devices
[ 203.459] (==) Automatically enabling devices
[ 203.459] (==) Not automatically adding GPU devices
[...]
[ 203.461] (II) LoadModule: "usbtablet"
[ 203.462] (II) Loading /usr/X11R7/lib/modules/input/usbtablet_drv.so
[ 203.462] (II) Module usbtablet: vendor="X.Org Foundation"
[ 203.462] compiled for 1.21.1.8, module version = 1.1.0
[ 203.462] Module class: X.Org XInput Driver
[ 203.462] ABI class: X.Org XInput driver, version 24.4
[ 203.462] (II) USB Tablet driver
[...]
[ 203.673] (II) Using input driver 'usbtablet' for 'Hion Tablet'
[ 203.673] (**) Hion Tablet: always reports core events
[ 203.674] (**) Stylus: always reports core events
[ 203.674] (**) Stylus device is /dev/uhid3
[ 203.674] (**) Stylus is in absolute mode
[ 203.674] (==) Stylus: threshold = 5
[ 203.674] (==) Stylus: suppress = 2
[ 203.674] (II) XINPUT: Adding extended input device "Stylus" (type: TABLET, id 6)
[ 203.674] (**) Option "Device" "/dev/uhid3"
[ 203.674] (--) USBT tablet X=0..24384, Y=0..15240, pressure=0..8191
[ 203.674] (--) USBT Stylus pressure threshold=409, suppress=2
[...]
The parameters reported are correct, and the movements on the tablet
correspond to the screen, but when I touch the tablet with the
stylus the behaviour is odd (I can't really describe it, when using
azpainter if I move the stylus fast the lines are dotted, but in
the wm the behaivour doesn't correspond exactly as a repeated
click).
I'll experiment with the options of the driver. If other people
give some feedback with other devices, in base or pkgsrc xorg, it
will be great, I could discard if it is the server-driver
or device-driver compatibility, etc.
Note that I'm using the code of xenocara, simply ./configure and
make inside xenocara/driver/xf86-input-usbtablet
and then copying src/.libs/usbtablet_drv.so to
/usr/X11R7/lib/modules/drivers/, I haven't changed anything.
adr
Home |
Main Index |
Thread Index |
Old Index