LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-07-2017, 10:44 PM   #1
justinschw
LQ Newbie
 
Registered: Mar 2015
Location: Texas
Distribution: Debian
Posts: 8

Rep: Reputation: Disabled
Need help configuring xorg for my touchscreen


Hey everyone,

I am trying to set up ubuntu on my Eeepc 91T. I am so close to figuring this out but my google searches are starting to come up empty and I am posting here as a last resort because I just know there is an X11 expert who can tell me exactly what is wrong...

Here is my xinput list:
Code:
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ IDEACOM  IDC 6680                       	id=9	[slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad              	id=11	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Video Bus                               	id=6	[slave  keyboard (3)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=8	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=10	[slave  keyboard (3)]
    ↳ Asus EeePC extra buttons                	id=12	[slave  keyboard (3)]
    ↳ USB 2.0 Camera: USB 2.0 Camera          	id=13	[slave  keyboard (3)]
The one we are interested in here is "IDEACOM IDC 6680" (ID 9).
When I run "xinput --test 9" and tap around on the screen, nothing shows.

Now when I run "evtest" I get the following output:
Code:
/dev/input/event0:	Lid Switch
/dev/input/event1:	Sleep Button
/dev/input/event2:	Power Button
/dev/input/event3:	AT Translated Set 2 keyboard
/dev/input/event4:	Video Bus
/dev/input/event5:	IDEACOM  IDC 6680
/dev/input/event6:	IDEACOM  IDC 6680
/dev/input/event7:	SynPS/2 Synaptics TouchPad
/dev/input/event8:	Asus EeePC extra buttons
/dev/input/event9:	HDA Intel MID Mic
/dev/input/event10:	HDA Intel MID Headphone
/dev/input/event11:	USB 2.0 Camera: USB 2.0 Camera
Notice the IDEACOM IDC 6680 has two event files.
If I do an evtest on event5 I get a whole bunch of output. But on event6 I get nothing.

Now on to the Xorg.0.log which is attached. You will see that in the logs there were two event files created (as seen above) but XINPUT is apparently using event6 which isn't doing anything.

Any help would be highly appreciated... I have been on this for weeks.

Thanks!
Attached Files
File Type: log Xorg.0.log (35.6 KB, 50 views)
 
Old 11-08-2017, 02:22 AM   #2
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Hi, try to setup the Xorg config file first: https://wiki.archlinux.org/index.php/xorg#Touchscreen
 
Old 11-08-2017, 11:00 AM   #3
justinschw
LQ Newbie
 
Registered: Mar 2015
Location: Texas
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: Disabled
I figured this out. Here is my config for others who may face the same problem.

/usr/share/X11/xorg.conf.d/99-calibration.conf:
Code:
Section "InputClass"
	Identifier	"calibration"
	MatchProduct	"IDEACOM  IDC 6680"
	Driver	"evdev"
EndSection
/etc/X11/XSession.d/98x11-common_touchscreen:
Code:
xinput set-prop 9 294 260 7800 380 8000
Thanks guys.
 
Old 11-08-2017, 01:34 PM   #4
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
What distribution of linux are you using? I have a touchscreen that I used evdev to calibrate in Debian 8, but I had to change how I did it in Debian 9 because evdev went away.

I didn't create any xorg conf file, though. I just did a calibration startup script command to calibrate it.

Code:
# This works in Debian 9 Stretch
xinput set-prop "Fujitsu Takamisawa USB Touch Panel" "libinput Calibration Matrix" 1.07 0 -.05 0 1.09 -.07 0 0 1
Code:
# This works in Debian 8 Jessie
xinput set-prop "Fujitsu Takamisawa USB Touch Panel" "Evdev Axis Calibration" 850 16083 1000 15853
In my case, the touch screen was functional out-of-box. I only used the extra command line simply to calibrate it. In both cases, I dialed in the numbers by trial and error.
 
Old 11-08-2017, 03:18 PM   #5
justinschw
LQ Newbie
 
Registered: Mar 2015
Location: Texas
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by IsaacKuo View Post
What distribution of linux are you using? I have a touchscreen that I used evdev to calibrate in Debian 8, but I had to change how I did it in Debian 9 because evdev went away.

I didn't create any xorg conf file, though. I just did a calibration startup script command to calibrate it.

Code:
# This works in Debian 9 Stretch
xinput set-prop "Fujitsu Takamisawa USB Touch Panel" "libinput Calibration Matrix" 1.07 0 -.05 0 1.09 -.07 0 0 1
Code:
# This works in Debian 8 Jessie
xinput set-prop "Fujitsu Takamisawa USB Touch Panel" "Evdev Axis Calibration" 850 16083 1000 15853
In my case, the touch screen was functional out-of-box. I only used the extra command line simply to calibrate it. In both cases, I dialed in the numbers by trial and error.
I am using Lubuntu. I am not sure why that would be any different from debian. I remember it looking like in my 10-evdev (or something along those lines) there were restrictions on whether or not the device would register with a given driver; in the logs it looked like my touchscreen wasn't registering as those devices, but in my added file there was no such restriction. I don't know much about xorg to be honest.

For calibration I just used "xinput --test" and touched the edges of my screen to see what the min/max values are for X and Y, and from there I just tweaked them until the pointer was directly under my finger.
 
Old 11-08-2017, 03:36 PM   #6
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
Which release of Lubuntu? I don't know which releases of Ubuntu have evdev. Don't be surprised if your solution breaks on a more current or future release of Ubuntu, though. Where Debian goes, so tends Ubuntu.

As for why Lubuntu would be different from Debian - Lubuntu is based on Ubuntu, which started off pretty close to Debian and is currently pretty close to Debian. There was a long time, though, when Ubuntu was doing some weird stuff like Upstart and Mir. But generally, Ubuntu is pretty close to Debian.
 
Old 11-09-2017, 06:20 AM   #7
justinschw
LQ Newbie
 
Registered: Mar 2015
Location: Texas
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: Disabled
Lubuntu 17.10. After installation the xserver-xorg-input-evdev package was not automatically included; I had to install that one manually. From the logs it looked like libinput was trying to match my touchscreen, though.

I normally use debian but the last time I installed debian there were some packages that were very out of date and had some annoying bugs that made it hard to use VPN from the network manager applet.
 
Old 11-09-2017, 10:55 AM   #8
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
Quote:
Originally Posted by justinschw View Post
Lubuntu 17.10. After installation the xserver-xorg-input-evdev package was not automatically included; I had to install that one manually. From the logs it looked like libinput was trying to match my touchscreen, though.
Ah. I see it is indeed still in the Debian 9 repositories, it just isn't installed by default. Maybe I could have just installed it after my dist-upgrade from Debian 8 to Debian 9, rather than learn a new way to calibrate it. Oh well!

Quote:
I normally use debian but the last time I installed debian there were some packages that were very out of date and had some annoying bugs that made it hard to use VPN from the network manager applet.
That's how it goes with Debian Stable. It should be pretty current right now, since Debian 9 was released not long go. But inevitably, it will gradually get out of date until the next Debian Stable release.
 
Old 11-09-2017, 12:38 PM   #9
justinschw
LQ Newbie
 
Registered: Mar 2015
Location: Texas
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by IsaacKuo View Post
Ah. I see it is indeed still in the Debian 9 repositories, it just isn't installed by default. Maybe I could have just installed it after my dist-upgrade from Debian 8 to Debian 9, rather than learn a new way to calibrate it. Oh well!

But you still would need a driver for the touchscreen (as a pointer device) before you can calibrate it right? For me xinput wasn't even creating an entry for that input event (5 in my case) since there was no driver loaded for it. Once I loaded evdev everything fell into place. If you aren't using evdev you must be using some other driver...
 
Old 11-09-2017, 01:42 PM   #10
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
Yeah, libinput handled it out-of-box. The only tweaking I needed to do was to adjust the calibration because the out-of-box calibration is way off.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xorg.conf for touchscreen (imx53) dirtyfishtank Linux - Embedded & Single-board computer 0 11-26-2013 02:44 PM
How to example ELO touchscreen xorg.conf ? donnied Linux - Hardware 1 12-26-2008 08:51 AM
Touchscreen/Xorg/Driver Question phantom_cyph Linux - Hardware 3 11-19-2008 07:48 AM
ibm touchscreen xorg davidcollins001 Linux - Hardware 0 04-17-2008 01:40 PM
xorg + udev + touchscreen strangeness with devices kev000 Linux - Hardware 0 04-08-2008 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:51 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