Drawing tablet pen position doesn't correspond to screen size

I have a Bosto BT-12 drawing tablet. Its resolution is 1366x768. My laptop’s resolution is 1920x1080. When I move the pen to the right on the tablet screen, the cursor moves much farther than the pen. A similar thing happens moving it down.

When the pen is at the middle of the screen the cursor isn’t at the far right on the display. It’s slightly “faster” than that, actually, and the discrepancy is different for horizontal and vertical input.

The company website doesn’t work very well and they never had drivers for Linux. I want the tablet screen and laptop screen as two different displays where the pen can only access the tablet display.

KDE Plasma has settings to make this work, but the implementation is, in my opinion, not very good, as an end-user. I can adjust what region of which screen can be accessed by the pen, but there’s no way to input precise numbers. It seems like that option existed previously, but is gone since around Plasma 6, in favor of manually adjusting a small rectangle with the mouse.

I’ve located the file these settings are stored to: kcminputrc in ~/.config, but the region adjustment is stored in relative decimals and not pixels, contrary to what the GUI configuration implies.

These lines are relevant in that file.

[Libinput][3793][30753][BYX Tablet Device Stylus]
CalibrationMatrix=1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1
InputArea=0,0,1,1
LeftHanded=false
MapToWorkspace=false
Orientation=0
OutputArea=0,0,1,1
OutputUuid=9f4cb823-1754-43e1-8965-fafed9796ba9
TabletToolPressureCurve=0.00337904,0.00289469;0.999006,0.997856;
TabletToolPressureRangeMax=1
TabletToolRelativeMode=false

While I could spend 20 minutes re-adjusting the regions to get close to a workaround to the problem, I really don’t want to do that.

KDE Plasma’s graphical calibration tool doesn’t work for this. The discrepancy is so big, that neither of the targets on the right side of the display register as being touched when I press the pen down on them.

inxi -F output:

System:
  Host: fedora Kernel: 6.17.12-300.fc43.x86_64 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.5.4 Distro: Fedora Linux 43 (KDE Plasma Desktop
    Edition)
Machine:
  Type: Laptop System: Acer product: Aspire A515-45 v: V1.52
    serial: <superuser required>
  Mobo: LN model: Calla_LC v: V1.52 serial: <superuser required>
    UEFI: INSYDE v: 1.52 date: 10/24/2023
Battery:
  ID-1: BAT1 charge: 16.6 Wh (58.6%) condition: 28.4/53 Wh (53.6%)
CPU:
  Info: 8-core model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64
    type: MT MCP cache: L2: 4 MiB
  Speed (MHz): avg: 1115 min/max: 412/1801 cores: 1: 1115 2: 1115 3: 1115
    4: 1115 5: 1115 6: 1115 7: 1115 8: 1115 9: 1115 10: 1115 11: 1115 12: 1115
    13: 1115 14: 1115 15: 1115 16: 1115
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Lucienne driver: amdgpu v: kernel
  Device-2: Chicony HD User Facing driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.21 with: Xwayland v: 24.1.9
    compositor: kwin_wayland driver: X: loaded: modesetting dri: radeonsi
    gpu: amdgpu resolution: 1: 1366x768~60Hz 2: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.2.7 renderer: AMD
    Radeon Graphics (radeonsi renoir ACO DRM 3.64 6.17.12-300.fc43.x86_64)
  API: Vulkan v: 1.4.328 drivers: radv,llvmpipe surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info x11: xdriinfo,
    xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Renoir/Cezanne HDMI/DP Audio
    driver: snd_hda_intel
  Device-2: Advanced Micro Devices [AMD] Audio Coprocessor driver: N/A
  Device-3: Advanced Micro Devices [AMD] Ryzen HD Audio
    driver: snd_hda_intel
  API: ALSA v: k6.17.12-300.fc43.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.4.9 status: active
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp3s0 state: down mac: 0c:cc:47:ea:e6:e2
  Device-2: MEDIATEK MT7921 802.11ax PCIe Wireless Network Adapter [Filogic
    330] driver: mt7921e
  IF: wlp4s0 state: up mac: be:95:eb:32:89:d6
Bluetooth:
  Device-1: Lite-On MediaTek Bluetooth MT7921 driver: btusb type: USB
  Report: btmgmt ID: hci0 state: up address: C0:35:32:A5:1A:DE bt-v: 5.3
Drives:
  Local Storage: total: 476.94 GiB used: 155.85 GiB (32.7%)
  ID-1: /dev/nvme0n1 vendor: A-Data model: IM2P33F8ABR2-512GB
    size: 476.94 GiB
Partition:
  ID-1: / size: 475.35 GiB used: 155.34 GiB (32.7%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 500.4 MiB (51.4%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.35 GiB used: 155.34 GiB (32.7%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 207.6 MiB (2.5%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 46.9 C mobo: 42.0 C gpu: amdgpu temp: 46.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 14.96 GiB used: 4.75 GiB (31.7%)
  Processes: 447 Uptime: 13h 56m Shell: fish inxi: 3.3.39
1 Like