Page 1 of 1
total noob with linux needs help with touch screen please.
Posted: Sat Apr 11, 2015 1:16 pm
by quicksilver384
Hi folks I am a total noob when it comes to linux and I running an R Pi with Raspbmc installed using the Noobs installer.
I can use a keyboard a mouse with it which works with no problems, however the touch screen I have (
http://www.sainsmart.com/7-inch-tft-lcd ... a-2av.html) when used the cursor does not move as it should.
when I move my finger up and down the cursor moves left and right and when I move left and right it moves down and up.
I have connected the screen to my laptop and it does work fine just not on the Pi.
Please help.
Thanks.
John.
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 2:12 pm
by DirkS
Do you have the file /etc/X11/xorg.conf.d/99-calibration.conf on your Pi?
It contains the calibration data and looks something like
Code: Select all
Section "InputClass"
Identifier "calibration"
MatchProduct "eGalax Inc. USB TouchController"
Option "Calibration" "121 1917 317 1741"
Option "SwapAxes" "1"
EndSection
You may have to add (or change) the option 'SwapAxes'
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 2:26 pm
by quicksilver384
I have no idea. How would i find this?
Just put the sd card into laptop and search?
The swap axis bit sounds a possibility though.
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 2:28 pm
by Laurens-wuyts
Try on the raspberry:
Code: Select all
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
When changed/made press:
ctrl x
y
Enter
Laurens
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 2:40 pm
by quicksilver384
Thanks. I have tried that and at the top it has the path and file name, i have type the code from yiur first post in there but when i try to save it says "Error writing *then the file name and path* no such file or directory
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 2:52 pm
by DirkS
quicksilver384 wrote:Thanks. I have tried that and at the top it has the path and file name, i have type the code from yiur first post in there but when i try to save it says "Error writing *then the file name and path* no such file or directory
Well, I only told you how to find the file, not how to edit it...

You need root permissions to change the file.
Open a terminal window and enter the commands as given by Laurens in the post above.
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 2:54 pm
by quicksilver384
How would i open the terminal? I am on the command line screen when i exited raspbmc
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 2:57 pm
by DirkS
quicksilver384 wrote:How would i open the terminal? I am on the command line screen when i exited raspbmc
Then just enter the commands from there.
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 2:59 pm
by quicksilver384
Ahh thats where i typed it and it says error writing when i try to save
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 3:00 pm
by DirkS
quicksilver384 wrote:How would i open the terminal? I am on the command line screen when i exited raspbmc
Just realised that the cure I gave may not solve your problem.
I assumed you're using X (the GUI), but the mention of raspbmc changes all that.
You probably have to make other changes to make it work, but I'll have to check what these are.
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 3:01 pm
by DirkS
quicksilver384 wrote:Ahh thats where i typed it and it says error writing when i try to save
The directory doesn't exist because X is not installed on raspbmc.
See my post above.
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 3:07 pm
by quicksilver384
DirkS wrote:quicksilver384 wrote:How would i open the terminal? I am on the command line screen when i exited raspbmc
Just realised that the cure I gave may not solve your problem.
I assumed you're using X (the GUI), but the mention of raspbmc changes all that.
You probably have to make other changes to make it work, but I'll have to check what these are.
Ok no prob thanks for the help. I will have to keep searching google.
I am only wanting it as a media PC for the car lol
I may just have to wait for Windows 10 to come out for the PI2 and use that
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 11, 2015 3:23 pm
by DirkS
Try the instructions at
http://markamc.cybaman.net/?p=168
It would be a good idea to make a backup of your SD card first...
I may just have to wait for Windows 10 to come out for the PI2 and use that
Don't think it's worth the wait. Win10 for the Pi will be an 'IoT' version, aimed at developers. Probably not suitable for a media player.
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 25, 2015 2:29 am
by jtremble
I am trying to do something similar and i am running into the same errors.
I am sure that part of it is because the X11 dir does not have /xorg.conf.d/99-calibration in it.
So when you go to write in it, it says "No such file..."
So, how do i get these to installed here in the first place, then i can edit it?
Re: total noob with linux needs help with touch screen pleas
Posted: Sat Apr 25, 2015 9:02 am
by DirkS
jtremble wrote:So, how do i get these to installed here in the first place, then i can edit it?
Pointing to your own solution in case other users stumble upon this post:
viewtopic.php?f=41&t=107354&p=745767#p745716
Re: total noob with linux needs help with touch screen pleas
Posted: Wed Sep 23, 2015 3:35 am
by bossbss
quicksilver384 wrote:DirkS wrote:quicksilver384 wrote:How would i open the terminal? I am on the command line screen when i exited raspbmc
Just realised that the cure I gave may not solve your problem.
I assumed you're using X (the GUI), but the mention of raspbmc changes all that.
You probably have to make other changes to make it work, but I'll have to check what these are.
Ok no prob thanks for the help. I will have to keep searching google.
I am only wanting it as a media PC for the car lol
I may just have to wait for Windows 10 to come out for the PI2 and use that
you can do
sudo rm /etc/X11/xorg.conf.d
sudo mkdir /etc/X11/xorg.conf.d
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf