LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 10:27 PM   #1
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: Devuan, Slackware
Posts: 455

Rep: Reputation: 108Reputation: 108
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, 03:56 AM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,274
Blog Entries: 8

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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, 03:45 PM   #3
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: Devuan, Slackware
Posts: 455

Original Poster
Rep: Reputation: 108Reputation: 108
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
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 03:52 PM
Nvidia - Keep external monitor settings between reboots undoIT Linux - Hardware 4 07-12-2009 05:15 AM
Laptop and extrenal monitor. How can I make it work properly? kimothy Linux - Hardware 2 01-08-2006 12:49 AM
How to make driver's settings persist across reboots /usr/src Linux - General 3 10-20-2005 03:40 AM
how to make theA0C 7F monitor to function a touch-screen mdpniesta Linux - Hardware 0 01-25-2005 03:08 AM

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

All times are GMT -5. The time now is 08:22 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration