talonvoice / beta

Issue tracker for the private Talon Beta
10 stars 0 forks source link

Eye tracking area misaligned with multiple screens on Linux #87

Closed jcaw closed 3 years ago

jcaw commented 4 years ago

On Linux, the tracked area seems to be pegged to global (0, 0) rather than the top left of the main screen. If a second screen causes the primary screen to be offset from (0,0), the tracked area becomes misaligned. The red box shows where the eye tracker appears to be mapped to, versus the black bar for my primary screen + tracker:

tracker misalignment

Calibrating doesn't fix it - calibration will launch on the primary monitor, but the dots are aligned with the red area (so most of them are off-screen). Moving my second screen to the bottom right (so the primary screen is at (0,0)) & restarting Talon allows tracking to align properly.

From Talon, my screens:

>>> ui.screens()
[Screen(x=1080.0, y=547.0, size=(1920.0, 1080.0), mm=(531.0, 299.0)), Screen(x=0.0, y=0.0, size=(1080.0, 1920.0), mm=(299.0, 531.0))]

ui.screens()[0] is my primary screen.

lunixbochs commented 3 years ago

what's ui.main_screen() in this case?

lunixbochs commented 3 years ago

Ah, I see why this is happening. It will be fixed as part of multimonitor eye tracking / calibration at some point.

lunixbochs commented 3 years ago

Closing as a dupe of the newer https://github.com/talonvoice/talon/issues/202