XP-Pen Deco 03 support or XP-Pen support in general

Is it possible to get it to work on freebsd? Libwacom supports some XP-Pen models, but not the deco 03, though, libwacom isn't what gets tablets to work I believe.
With my personal testing experience, I can only really get tapping to work and it showing in xinput and etc. It doesn't register me moving the pen or the amount of pressure I use.

I really should have researched my tablet before buying it, I didn't even check if it had non proprietary drivers on linux. I think this is the only thing in my way in regards to making freebsd my daily driver. It's a million times more stable and logical compared to linux from what I've observed in about a month or two of light testing on an old laptop. I could get a wacom tablet or something proven to work on freebsd, but that's horribly wasteful and I couldn't really buy one until maybe a few weeks.

Linux doesn't even support it easily as well, I think the only way you can get it to work is either using official xp-pen proprietary drivers (what I use on my current pc running manjaro) or opentabletdriver which is sadly not on freebsd (but I have read that it does support my model).
 
 
I would start here: https://wiki.freebsd.org/WacomTablet

Skip this part
Code:
devd_enable="YES"
hald_enable="YES"

There are several other threads which might be helpful:

Thread wacom-intuos-pen-tablet-disconnects-on-boot-after-shutdown.93192

Thread freebsd-12-stable-wacom-bamboo-fun-cth-661-how-to.71976
I did everything in the wacom tablet page (besides the part not needed)
His issue seemed to be webcamd? Not really input I think
Wacom appears to be working for me, it can't apply to my tablet for some reason

Yeah I have all of the ports installed. Libinput debug-events only records clicking.

Basically, it's being made into a generic pointer and keyboard (for my tablet buttons) after trying to assign it wacom, which fails because it can't get abs bits (the axes). I don't know how I would fix this or if it's even possible. I can't find any records of my tablet model being supported on freebsd. I think the only options left are getting a new tablet or maybe linux emulation of opentabletdriver.
My xorg log grepped for XP is the following:
(oh yeah also I only got it to attempt applying wacom by editing my xorg.conf file and restarting)
  1. [ 30215.206] (**) |-->Input Device "XP-PEN"
  2. [ 30218.093] (II) Using input driver 'wacom' for 'XP-PEN'
  3. [ 30218.093] (**) XP-PEN: always reports core events
  4. [ 30218.093] (EE) XP-PEN: no abs bits.
  5. [ 30218.093] (EE) PreInit returned 8 for "XP-PEN"
  6. [ 30218.233] (II) config/udev: Adding input device XP-PEN DECO 03 (/dev/input/event7)
  7. [ 30218.233] (**) XP-PEN DECO 03: Applying InputClass "evdev pointer catchall"
  8. [ 30218.233] (**) XP-PEN DECO 03: Applying InputClass "libinput pointer catchall"
  9. [ 30218.233] (II) Using input driver 'libinput' for 'XP-PEN DECO 03'
  10. [ 30218.233] (**) XP-PEN DECO 03: always reports core events
  11. [ 30218.235] (II) event7 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: is tagged by udev as: Mouse
  12. [ 30218.236] (II) event7 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: device is a pointer
  13. [ 30218.238] (II) event7 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: device removed
  14. [ 30218.238] (II) libinput: XP-PEN DECO 03: Step value 0 was provided, libinput Fallback acceleration function is used.
  15. [ 30218.238] (II) libinput: XP-PEN DECO 03: Step value 0 was provided, libinput Fallback acceleration function is used.
  16. [ 30218.238] (II) libinput: XP-PEN DECO 03: Step value 0 was provided, libinput Fallback acceleration function is used.
  17. [ 30218.238] (II) XINPUT: Adding extended input device "XP-PEN DECO 03" (type: MOUSE, id 12)
  18. [ 30218.239] (**) XP-PEN DECO 03: (accel) selected scheme none/0
  19. [ 30218.239] (**) XP-PEN DECO 03: (accel) acceleration factor: 2.000
  20. [ 30218.239] (**) XP-PEN DECO 03: (accel) acceleration threshold: 4
  21. [ 30218.241] (II) event7 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: is tagged by udev as: Mouse
  22. [ 30218.242] (II) event7 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: device is a pointer
  23. [ 30218.244] (II) config/udev: Adding input device XP-PEN DECO 03 (/dev/input/event8)
  24. [ 30218.244] (**) XP-PEN DECO 03: Applying InputClass "evdev keyboard catchall"
  25. [ 30218.244] (**) XP-PEN DECO 03: Applying InputClass "Evdev keyboard"
  26. [ 30218.244] (**) XP-PEN DECO 03: Applying InputClass "libinput keyboard catchall"
  27. [ 30218.244] (II) Using input driver 'libinput' for 'XP-PEN DECO 03'
  28. [ 30218.244] (**) XP-PEN DECO 03: always reports core events
  29. [ 30218.246] (II) event8 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: is tagged by udev as: Keyboard
  30. [ 30218.247] (II) event8 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: device is a keyboard
  31. [ 30218.250] (II) event8 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: device removed
  32. [ 30218.250] (II) XINPUT: Adding extended input device "XP-PEN DECO 03" (type: KEYBOARD, id 13)
  33. [ 30218.252] (II) event8 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: is tagged by udev as: Keyboard
  34. [ 30218.253] (II) event8 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: device is a keyboard
  35. [ 30614.232] (II) event7 - XP-PEN DECO 03, class 0/0, rev 1.10/0.00, addr 3: Enabling spurious button debouncing, see https://wayland.freedesktop.org/libinput/doc/1.27.1/button-debouncing.html for details
  36. [ 31349.861] (EE) client bug: timer event3 hold: scheduled expiry is in the past (-29ms), your system is too slow
 
Apparently it's somewhat possible to compile opentabletdriver since freebsd has .net support?

Trying to compile it (with dotnet build in the otd directory) gives me:
/home/chungs/Downloads/OpenTabletDriver/OpenTabletDriver.Daemon/OpenTabletDriver.Daemon.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.freebsd-x64. No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, localNugetFeed, nuget.org /home/chungs/Downloads/OpenTabletDriver/OpenTabletDriver.Console/OpenTabletDriver.Console.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.freebsd-x64. No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, localNugetFeed, nuget.org /home/chungs/Downloads/OpenTabletDriver/OpenTabletDriver.Benchmarks/OpenTabletDriver.Benchmarks.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.freebsd-x64. No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, localNugetFeed, nuget.org /home/chungs/Downloads/OpenTabletDriver/OpenTabletDriver.UX.Wpf/OpenTabletDriver.UX.Wpf.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.freebsd-x64. No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, localNugetFeed, nuget.org /home/chungs/Downloads/OpenTabletDriver/OpenTabletDriver.UX.Gtk/OpenTabletDriver.UX.Gtk.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.freebsd-x64. No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, localNugetFeed, nuget.org /home/chungs/Downloads/OpenTabletDriver/OpenTabletDriver.UX.MacOS/OpenTabletDriver.UX.MacOS.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.freebsd-x64. No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, localNugetFeed, nuget.org

That's an entire different subject though.
If someone can figure out how to compile it, it could easily be made into a port and a lot more drawing tablet models would be available to freebsd.
 
I got the tablet to work with a xorg.conf edit
Section "InputDevice"

Identifier "XP-PEN"
Driver "wacom"
Option "Device" "/dev/input/event8"
Option "Type" "stylus"
Option "USB" "on"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
InputDevice "XP-PEN" "SendCoreEvent"
EndSection

It can now fully hover and draw and whatnot, the only issue to me is that it's not registering pressure. Everything else about the tablet works though including the buttons.
I'm not sure how I would fix this.
The XP-PEN input device does have a pressure curve in xinput list-props. Evtest shows that event9 has pressure events, but they don't seem to work at least in testing. Even if I set event9 (which is the digitizer) to use wacom drivers
Gimp also refuses to switch to any of the devices, pressure doesn't seem to work in anything like krita as well.

Getting it to register mouse movement at all is a massive accomplishment though I'm very happy I got it working
 
Try with GIMP or InkScape. Hint: you need to configure it (pressure sensitivity) in the program, it isn't detected automatically.
 
I got the tablet to work with a xorg.conf edit
Section "InputDevice"

Identifier "XP-PEN"
Driver "wacom"
Option "Device" "/dev/input/event8"
Option "Type" "stylus"
Option "USB" "on"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
InputDevice "XP-PEN" "SendCoreEvent"
EndSection

It can now fully hover and draw and whatnot, the only issue to me is that it's not registering pressure. Everything else about the tablet works though including the buttons.
I'm not sure how I would fix this.
The XP-PEN input device does have a pressure curve in xinput list-props. Evtest shows that event9 has pressure events, but they don't seem to work at least in testing. Even if I set event9 (which is the digitizer) to use wacom drivers
Gimp also refuses to switch to any of the devices, pressure doesn't seem to work in anything like krita as well.

Getting it to register mouse movement at all is a massive accomplishment though I'm very happy I got it working
I have the same XP-PEN Deco 03 tablet and have been having the same difficulty to get it to work on Freebsd. Not sure what I am doing wrong I can't even get it to work as a pointer as you have. I tried using your xorg configuration above on my machine but it didn't seem to do anything for me. I have all the packages installed that were mentioned previously in other posts as well. Can you please explain a little bit more about how you went about configuring it to work. Thanks in advance.
 
I never got pen pressure to work on mine either. Erase does work from the pen along with the two buttons.
Do you have the same model? My stylus doesn't have an eraser

Try with GIMP or InkScape. Hint: you need to configure it (pressure sensitivity) in the program, it isn't detected automatically.
I haven't tried inkscape, but I have krita and gimp. In gimp (my preferred image editor and drawing app) it can enable my stylus as an input device set as screen, but when I draw, it doesn't switch to the pen as I'm drawing. This could very well be why the pressure isn't working.
I think that way because uh
Evtest doesn't log button presses from the stylus, but these button presses do work, evtest only really logs hovering and only on event8. This means I can't trust it to tell me if pressure is working or not. Or at least I think that way.
But no event in evtest (like 9, 10, etc) logs anything relating to pressure. The only really thing telling me about a pressure curve is really xinput list-props XP-PEN

I have the same XP-PEN Deco 03 tablet and have been having the same difficulty to get it to work on Freebsd. Not sure what I am doing wrong I can't even get it to work as a pointer as you have. I tried using your xorg configuration above on my machine but it didn't seem to do anything for me. I have all the packages installed that were mentioned previously in other posts as well. Can you please explain a little bit more about how you went about configuring it to work. Thanks in advance.
Did you put it in /etc/X11/xorg.conf? Did you reload xorg after changing it? Changing the event to something else might work as well, checking your devices with libinput list-devices also gives you an idea. It should be set to the same event as XP-PEN mouse or tablet, etc. I can only get it to work with 8-10, this is another strange thing because changing it doesn't seem to change the function of the stylus.
Reading (or posting here) your xorg log with "cat /var/log/Xorg.0.log | grep -i XP" is also useful. When I first was getting it to work, the main issue was that the stylus wasn't being loaded with wacom, I wouldn't have known this without reading the logs. (but today when I was messing around with it, apparently it worked fine hovering without being loaded by wacom??? It's so strange)
Check xsetwacom list devices as well

Sorry if I can't be much help from there though, I'm confused at how I even got it to work. But I'm definitely open to helping with what I can if you have any more questions
It's also comforting knowing that I'm not the only person trying to get this specific tablet to work
 
Back
Top