How to make touch input on a touchscreen+external monitor setup work properly and persist across sessions/reboots
Hello all,
Just a little tip here while I was working on how to get this working properly. I have a touchscreen laptop that is regularly connected to an external monitor (not touchscreen). However, while the external monitor is connected, touch input is not properly mapped, causing the mouse cursor to move on the external monitor rather than on the touchscreen as is expected. To fix this, I ran the command Code:
xinput Code:
id=13 Code:
xrandr Code:
eDP-1 Code:
xinput map-to-output 13 eDP-1 However, this does not stick across sessions/reboots. To get it to stick so that I don't have to enter the command everytime I logout or reboot, I added it to my ~/.xsessionrc. Now touchscreen works as expected without any need to configure on every boot. I hope this can help others. -Ezekiel |
You can also use the precise input device name, in double-quotes. This may work better in the case where adding or removing a USB input device alters the xinput id numbers you expect.
|
Quote:
|
All times are GMT -5. The time now is 12:12 AM. |