You are not logged in.

#1 2024-04-03 21:41:18

zekebsatx
Member
Registered: 2016-01-29
Posts: 72

Duplicate WACOM tablet entries in xsetwacom

After updating to plasma 6, the script I use to rotate my Wacom Intuos Pro tablet (180* for a lefty) stopped working.

Here is my script:

#!/bin/bash

#Wacom Intuos
xsetwacom --set "Wacom Intuos Pro S Pen stylus" rotate half
xsetwacom --set "Wacom Intuos Pro S Pen eraser" rotate half
xsetwacom --set "Wacom Intuos Pro S Finger touch" rotate half

Looking deeper, it was failing because there were two devices with that name listed by xsetwacom:

$ xsetwacom --list devices
Wacom Intuos Pro S Pad pad              id: 13  type: PAD       
Wacom HID 525C Pen stylus               id: 16  type: STYLUS    
Wacom HID 525C Pen eraser               id: 27  type: ERASER    
Wacom Intuos Pro S Pen stylus           id: 14  type: STYLUS    
Wacom Intuos Pro S Pen eraser           id: 15  type: ERASER    
Wacom Intuos Pro S Pen stylus           id: 22  type: STYLUS    
Wacom Intuos Pro S Pen eraser           id: 28  type: ERASER    
Wacom Intuos Pro S Pen cursor           id: 29  type: CURSOR    
Wacom Intuos Pro S Pad pad              id: 24  type: PAD       
Wacom HID 525C Finger touch             id: 17  type: TOUCH     
Wacom Intuos Pro S Finger touch         id: 26  type: TOUCH     
Wacom Intuos Pro S Finger touch         id: 23  type: TOUCH  

I have two different physical tablets (one at work and one at home) so this may reflect two different actual devices. Previously there was just one entry shared by both.
Callling xsetwacom to set rotation by ID works, but I have to call the ID of the one attached (work or home), so this is not ideal.

How can I best resolve this, and ideally set rotation to half automatically whenever either tablet is plugged in (or I rotate my screen).

Offline

Board footer

Powered by FluxBB