LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 08-11-2017, 09:27 PM   #1
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
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
 
Old 08-12-2017, 02:56 AM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
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.
 
Old 08-12-2017, 02:45 PM   #3
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Original Poster
Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by IsaacKuo View Post
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Notifications in GNOME persist between sessions. How to make them not do that? arizonagroovejet Linux - Desktop 2 08-11-2016 02:52 PM
Nvidia - Keep external monitor settings between reboots undoIT Linux - Hardware 4 07-12-2009 04:15 AM
Laptop and extrenal monitor. How can I make it work properly? kimothy Linux - Hardware 2 01-07-2006 11:49 PM
How to make driver's settings persist across reboots /usr/src Linux - General 3 10-20-2005 02:40 AM
how to make theA0C 7F monitor to function a touch-screen mdpniesta Linux - Hardware 0 01-25-2005 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration