linux-surface
linux-surface copied to clipboard
Surface Book 2 + Surface Pen: rotation fix found
I am using Ubuntu 19.10 with a custom kernel (I need zfs) and after many tries I now have a fully working pen thanks to the fix found here: https://github.com/StollD/linux-surface-fix-eraser
I don't use libwacom at all (took me some time to figure that out), this is purely IPTS based:
:~$ xinput ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Microsoft Surface Keyboard Consumer Control id=8 [slave pointer (2)] ⎜ ↳ Microsoft Surface Keyboard Touchpad id=9 [slave pointer (2)] ⎜ ↳ ipts 045E:0021 id=11 [slave pointer (2)] ⎜ ↳ ipts 045E:0021 Virtual Stylus Pen (0) id=17 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Video Bus id=6 [slave keyboard (3)] ↳ Microsoft Surface Keyboard id=7 [slave keyboard (3)] ↳ ipts 045E:0021 id=10 [slave keyboard (3)] ↳ gpio-keys id=12 [slave keyboard (3)] ↳ gpio-keys id=13 [slave keyboard (3)] ↳ ipts 045E:0021 Virtual Stylus id=14 [slave keyboard (3)] ↳ Microsoft Surface Keyboard Consumer Control id=15 [slave keyboard (3)] ↳ Surface Pen Keyboard id=16 [slave keyboard (3)]
I will now try a kernel with minimal patches applied as I noticed a lot of warnings about files that would be created by the patch already existing in the kernel source tree. My builds are based on the Ubuntu sources, not upstream.
I'd still like pinch to zoom on the touchpad (ok on the touchscreen). Two finger scroll etc. works fine.