Backup
Posts: 9
Joined: Fri Aug 24, 2018 8:19 am

[SOLVED] TOUCHSCREEN 5' problem and RPi reboot error

Thu Nov 08, 2018 11:24 pm

Hello,
It's been 2 days that I'm getting mad about some problems the RPi screen is giving to me.
I am a beginner, so some terms can be wrong, but more than anything I would like to provide a guide to those who don't unerstand so much about this.
I report everything I did to make it work, in order to make your life easier.

WHICH PROBLEMS I ENCOUNTED:
1) image resolution was less than the screen itself
2) at reboot, desktop won't start, but it entered in safe-mode (asking to press "Enter" to start)
3) Touchscreen didn't work on 0.5mm on each side
4) the pen doesn't matched with the pointer on the screen

SOLUTIONS:
1) To solve this problem, many guides suggest to add some lines to "config.txt". I have actually solved the problem using the drivers from another brand (I ended up thinking that all those products are made by the same company and are all the same).

This is what you have to do:
- Once installed Raspbian, SSH into it ad write, line by line:

Code: Select all

sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
This will delete any previous folder of such drivers, download the newest one, gives the access to the folder and enter in that one.

- Now, since we have a 5' screen, run:

Code: Select all

sudo ./LCD5-show
This way, it will install 5' drivers.

Now run:

Code: Select all

sudo reboot
Once done, you should be able to see that the screen will be used 100%.

2) I have also noted that those drivers make the reboot very instable, so that the OS won't start again but you have to press "Enter" every time. This is annoying, also because you need a keyboard. (This iss the error: "Cannot open access to console. The root account is locked see sulogin(8) man page for more details.")
To solve the problem, edit "cmdline.txt".

First of all, see which partition is used for the startup:

Code: Select all

cat /etc/fstab
what you need to find is PARTUUID (usually (mine) the one which starts with "-02").

Now run:

Code: Select all

sudo nano /boot/cmdline.txt
to edit the file.

Change this:
root=/dev/mmxxxxxxxx2 ----> root=PARTUUID=3exxxxxxxxx-02
And add this one:
fsck.repair=yes
On the same line.

Now:

Code: Select all

sudo reboot
and the Desktop should boot automatically.

3 e 4) This is the most annoying thing because you can't click on the home bar.
We have to download a program to calibrate the touchscreen and insert the data in a proper file, so that such a configuration will be permanent, otherwise at every boot it will reset.

So, SSH into the Rpi and run

Code: Select all

sudo apt-get install -y xinput-calibrator
to download the software.

You should find it into Menu/Prefernces/TouchScreen Calibration (clicking on RPi icon)
Now you have to click on 4 crosses with the pen .
Done,it will present to you a window with numbers: copy this part

Code: Select all

Section "InputClass"
Identifier "calibration"
MatchProduct "eGalax Inc. USB TouchController"
Option "Calibration" "1960 248 151 1783"
EndSection
Go to,

Code: Select all

sudo nano /ect/X11/xorg.conf.d/99-calibration.conf
and paste the lines into this last file (sostituendo se già presenti) queste righe lì dentro.

Save everything:

Code: Select all

Ctrl-X
Yes
Enter
and then:

Code: Select all

sudo reboot
Now everything should work
I hope to have helped you and remember that i'm new so if I mistake somehting, please tell me and I modify the guide.

Return to “Troubleshooting”