jakeday / linux-surface

Linux Kernel for Surface Devices
2.6k stars 243 forks source link

Pen is offset when an external display is connected, and in extend #483

Open BNTFryingPan opened 5 years ago

BNTFryingPan commented 5 years ago

Tested on Surface Book 2, probably effects other devices as well though

I cant really get a screenshot of this, so i will try my best to explain it. Pretty easy to see for yourself though.

Lets say you put the pen over the middle of the main surface display, and your external monitor is configured to be to the right of the main surface display. The cursor will be about in the middle, between the 2 displays.

I think this is happening because it is calculating the location as if the resolution of all connected dislpays were part of the main display. If you got a display with the same resolution as the surface display (mine is 3000x2000 so i would need another 3000x2000 display), the cursor position would be fine vertically, but doubled horizontally

Touch is fine, and pen is fine with no external display

sphh commented 5 years ago

Same observation here on a Surface 2017. I don't think this is due to the kernel (I might be wrong), but to the X windows system. If you arrange the screens to be above each other (and not sideways), you will get a "correct" cursor position horizontally and a "doubled" vertically. This is that you can use the touchscreen for both screens. Think: One touchscreen is serving both screens (like one of those separate drawing tablets popular with designers).

I don't know if the touchscreen can be restricted to one screen. Sometimes I would like it.

BNTFryingPan commented 5 years ago

You are talking about the touchscreen though, this is the surface pen, unless you meant pen, in which case you should say pen, because assuming things is not always a good idea

teuber789 commented 5 years ago

+1

sphh commented 5 years ago

Well, it's true I said touchscreen. But the same holds at least for my pen: You can use the touchscreen/pen of the surface to reach every position on the dual screen set-up.

I don't know if the touchscreen/pen can be restricted to one screen. Sometimes I would also like to keep it on one screen.

BNTFryingPan commented 5 years ago

Our issues are slightly different, as the touchscreen works as you would expect for me, only the pen is offset