para_bellum

X1 Yoga - Map stylus to touchscreen

Sep 5th, 2025 (edited)
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. On the X1 Yoga Gen 8, if you connect an external screen, the touch area assumes that it spans over *both*.
  2.  
  3. List the input:
  4. ```
  5. $ xinput list
  6. ⎡ Virtual core pointer id=2 [master pointer (3)]
  7. ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
  8. ⎜ ↳ USB HID Gaming Keyboard Consumer Control id=19 [slave pointer (2)]
  9. ⎜ ↳ SYNA8017:00 06CB:CEB2 Mouse id=9 [slave pointer (2)]
  10. ⎜ ↳ USB HID Gaming Keyboard Mouse id=22 [slave pointer (2)]
  11. ⎜ ↳ Telink Wireless Receiver Consumer Control id=25 [slave pointer (2)]
  12. ⎜ ↳ Telink Wireless Receiver Mouse id=23 [slave pointer (2)]
  13. ⎜ ↳ SYNA8017:00 06CB:CEB2 Touchpad id=10 [slave pointer (2)]
  14. ⎜ ↳ TPPS/2 Synaptics TrackPoint id=16 [slave pointer (2)]
  15. ⎜ ↳ Wacom HID 5346 Finger id=12 [slave pointer (2)]
  16. ⎜ ↳ Wacom HID 5346 Pen Pen (0x8320a638) id=28 [slave pointer (2)]
  17. ⎣ Virtual core keyboard id=3 [master keyboard (2)]
  18. ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
  19. ↳ Video Bus id=6 [slave keyboard (3)]
  20. ↳ Power Button id=7 [slave keyboard (3)]
  21. ↳ Sleep Button id=8 [slave keyboard (3)]
  22. ↳ USB HID Gaming Keyboard Consumer Control id=20 [slave keyboard (3)]
  23. ↳ USB HID Gaming Keyboard id=21 [slave keyboard (3)]
  24. ↳ Intel HID events id=14 [slave keyboard (3)]
  25. ↳ USB HID Gaming Keyboard id=18 [slave keyboard (3)]
  26. ↳ sof-hda-dsp Headphone id=13 [slave keyboard (3)]
  27. ↳ Telink Wireless Receiver Consumer Control id=26 [slave keyboard (3)]
  28. ↳ Telink Wireless Receiver id=24 [slave keyboard (3)]
  29. ↳ Telink Wireless Receiver System Control id=27 [slave keyboard (3)]
  30. ↳ Wacom HID 5346 Pen id=11 [slave keyboard (3)]
  31. ↳ AT Translated Set 2 keyboard id=15 [slave keyboard (3)]
  32. ↳ ThinkPad Extra Buttons id=17 [slave keyboard (3)]
  33. ```
  34. We are interested in the finger (id=12) and the pen (id=28).
  35. Map those to the laptop screen:
  36. `xinput --map-to-output 12 eDP-1`
  37. `xinput --map-to-output 28 eDP-1`
  38.  
  39.  
  40. You might need to install `xf86-input-wacom`, `libwacom` and/or, `wacomtablet` for them to be correctly detected by xinput.
  41.  
  42. It was already the case on Gen2: https://bbs.archlinux.org/viewtopic.php?id=234212
  43.  
  44. --------
  45. If you want to change the resolution on the screen (eg. to mirror a projector), the scaling also might need to change, say from 1920*1200 to 1920*1080. The *transformation matrix* needs to change.
  46.  
  47. Settings that work well:
  48. `xinput set-prop "Wacom HID 5346 Pen stylus" --type=float "Coordinate Transformation Matrix" 1 0 0 0 1.1 -0.05 0 0 1`
Advertisement
Add Comment
Please, Sign In to add comment