LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   How to make touch input on a touchscreen+external monitor setup work properly and persist across sessions/reboots (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/how-to-make-touch-input-on-a-touchscreen-external-monitor-setup-work-properly-and-persist-across-sessions-reboots-4175611793/)

TheEzekielProject 08-11-2017 09:27 PM

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
to list all the xinput devices on my system and determined the touch controller is identified by
Code:

id=13
on my system. I then ran
Code:

xrandr
to determine the name of the touch display in my system
Code:

eDP-1
I then ran the command
Code:

xinput map-to-output 13 eDP-1
and the touchscreen fucntionality now works as expected.
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

IsaacKuo 08-12-2017 02:56 AM

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.

TheEzekielProject 08-12-2017 02:45 PM

Quote:

Originally Posted by IsaacKuo (Post 5747428)
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.

Thanks for the tip!


All times are GMT -5. The time now is 08:02 AM.