XP Pen 13 tablet has swapped axes for input

Bug #2014957 reported by Steve Langasek
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libinput
New
Unknown
libinput (Ubuntu)
New
Undecided
Unassigned

Bug Description

On jammy, an XP Pen 13 tablet (shown in the hardware as "UGTABLET 11.6 inch PenDisplay") is unusable because the axes for the stylus are swapped: moving the stylus up on the screen moves the cursor to the left, moving it down moves it right, moving the stylus to the left moves the cursor up, moving it to the right moves the cursor down.

I am reporting this bug initially against Xorg, but the problem is present using either Xorg or Wayland.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xserver-xorg-core 2:21.1.3-2ubuntu2.9
ProcVersionSignature: Ubuntu 5.19.0-38.39~22.04.1-generic 5.19.17
Uname: Linux 5.19.0-38-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Sat Apr 1 02:12:10 2023
DistUpgraded: Fresh install
DistroCodename: jammy
DistroVariant: ubuntu
DpkgLog:

ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21fa]
InstallationDate: Installed on 2023-01-22 (68 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
MachineType: LENOVO 2306CTO
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.19.0-38-generic root=UUID=c415e6a8-5cd2-4d08-913d-14c00b792374 ro quiet splash vt.handoff=7
SourcePackage: xorg-server
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/25/2013
dmi.bios.release: 2.57
dmi.bios.vendor: LENOVO
dmi.bios.version: G2ET97WW (2.57 )
dmi.board.asset.tag: Not Available
dmi.board.name: 2306CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.ec.firmware.release: 1.13
dmi.modalias: dmi:bvnLENOVO:bvrG2ET97WW(2.57):bd10/25/2013:br2.57:efr1.13:svnLENOVO:pn2306CTO:pvrThinkPadX230:rvnLENOVO:rn2306CTO:rvrNotDefined:cvnLENOVO:ct10:cvrNotAvailable:skuLENOVO_MT_2306:
dmi.product.family: ThinkPad X230
dmi.product.name: 2306CTO
dmi.product.sku: LENOVO_MT_2306
dmi.product.version: ThinkPad X230
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.113-2~ubuntu0.22.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.2.5-0ubuntu0.1~22.04.1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2.9
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Steve Langasek (vorlon) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

I find recent references to being able to swap the axes with 'xinput set-prop <devid> "Evdev Axes Swap" 1. This fails for me with:

property 'Evdev Axes Swap' doesn't exist, you need to specify its type and format

Revision history for this message
Steve Langasek (vorlon) wrote :

https://unix.stackexchange.com/questions/685039/x11-how-to-invert-axis-on-touchscreen-matrix has commands that seem to work (xinput set-prop <id> "Coordinate Transformation Matrix") but the specific values listed there still have the vertical access reversed.

'xinput set-prop "UGTABLET 11.6 inch PenDisplay Pen (0)" "Coordinate Transformation Matrix" 0 1 0 1 0 0 0 0 1' appears to work but only if the tablet is configured as the top display.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds like libinput needs a quirk for this model so please report it at:
https://gitlab.freedesktop.org/libinput/libinput/-/issues

affects: xorg-server (Ubuntu) → xserver-xorg-input-libinput (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :
no longer affects: xserver-xorg-input-libinput (Ubuntu)
Changed in libinput:
status: Unknown → New
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.