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/- Now, since we have a 5' screen, run:
Code: Select all
sudo ./LCD5-showNow run:
Code: Select all
sudo reboot2) 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/fstabNow run:
Code: Select all
sudo nano /boot/cmdline.txtChange this:
root=/dev/mmxxxxxxxx2 ----> root=PARTUUID=3exxxxxxxxx-02
And add this one:
fsck.repair=yes
On the same line.
Now:
Code: Select all
sudo reboot3 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-calibratorYou 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"
EndSectionCode: Select all
sudo nano /ect/X11/xorg.conf.d/99-calibration.confSave everything:
Code: Select all
Ctrl-X
Yes
EnterCode: Select all
sudo rebootI hope to have helped you and remember that i'm new so if I mistake somehting, please tell me and I modify the guide.