5″ DSI LCD supports IMG system such as Raspbian, Ubuntu MATE, Snappy Ubuntu Core, OSMC, and Windows 10 IOT Core and so on.
For latest Ubuntu Desktop OS, you need to change the boot config file by running following command:
sudo nano /boot/firmware/config.txt
Above command will open the config.txt file, add following words into the file if you can find them:
display_auto_detect=1
use # to comment out following line in config.txt
dtoverlay=vc4-kms-v3d
make above line like this:#dtoverlay=vc4-kms-v3d
To install OS on Raspberry Pi, Please follow as below:
Firstly, Download IMG system in your computer from the raspberry pi official website: https://www.raspberrypi.org/downloads/
Secondly, Unzip the IMG system, and open your imager writer (recommend win32diskimager from: https://sourceforge.net/projects/win32diskimager/);
Thirdly, Insert the SD card into the card reader, and connect with computer, and select the image system and the device, and then click “write”, as below:
Fourthly, Insert the SD card into raspberry pi board and assemble 5″ DSI touch screen as below:
At last, Power up wait for the system to start (Note: Do not even touch your raspberry pi board when power is on or your hand has static charge):
The touch screen can be used as a mouse device. When we need to input text data to Raspberry Pi board, normally we have to connect a USB keyboard to Pi and this is really inconvenient.
Is there any solution which can use the touch screen itself to work as a text input device same as mobile phone?The answer is Yes. You can install a virtual keyboard to replace the USB keyboard.
Here are the instructions:Step 1) Install matchbox-keyboard by typing following commands in your pi terminal:
sudo apt update
sudo apt upgrade
sudo apt install matchbox-keyboard
Step 2) Click RaspberryPi icon in the top-left corner as following:
Step 3) Click Accessories->Keyboard as following:
You will see a pop-up virtual keyboard as following:
📷If you have want more detail about matchbox-keyboard installation, read this link:https://osoyoo.com/2019/04/09/osoyoo-7inch-hdmi-touchscreen-keyboard-matchbox-keyboard/
ADVANCED COURSEHow to adjust virtual resolution:The physical resolution is 800*480, but you can adjust the resolution form 800×480 to 1920×1080. Open micro SD card which you have installed IMG system and then open “/boot/config.txt” via Notepad++, and find the following lines:
If you like 1920*1080, you can adjust it as below and save this file:
framebuffer_width=1920framebuffer_height=1080
Note: If you use Raspberry Pi 4, you also need to comment the lines in “/boot/config.txt” : #dtoverlay=cv4-fkms-V3D. as following:
LCD displays have an optimum viewing angle, and depending on how the screen is mounted it may be necessary to change the orientation of the display to give the best results. By default, the Raspberry Pi display and Raspberry Pi are set up to work best when viewed from slightly above, for example on a desktop. If viewing from below, you can physically rotate the display, and then tell the system software to compensate by running the screen upside down.
To flip the display, run following command firstly:sudo nano /boot/config.txt
According to the rotation you want to flip, please choose to add the lines in this file:1) For 0 degree rotation: (no additional entries – default setting)
2) For 90 degree rotation (top to right):display_lcd_rotate=1dtoverlay=rpi-ft5406, touchscreen-swapped-x-y=1, touchscreen-inverted-x=1
3) For 180 degree rotation (upside down):display_lcd_rotate=2dtoverlay=rpi-ft5406, touchscreen-inverted-x=1, touchscreen-inverted-y=1
4) For 270 degree rotation (top to left):display_lcd_rotate=3dtoverlay=rpi-ft5406, touchscreen-swapped-x-y=1, touchscreen-inverted-y=1
After you added the two lines, press Ctrl-X then Y, Then “Enter” to save the file and then type sudo reboot to restart Raspberry Pi.This will flip the LCD and the touch screen, compensating for the physical orientation of the display
How to adjust the brightness:The following operations are based on Raspbian
(1) Run the following command in terminal to switch user permission as administrator
sudo su root
(2) Run the follwing command to adjust brightness of display (change the number 100 to any number from 0 to 255)
echo 100 > /sys/class/backlight/rpi_backlight/brightness
Note: If failing to adjust the brightness, please check the line “disable_touchscreen=1 ” in /boot/config.txt and comment it out “#disable_touchscreen=1 #”
FOR MORE CONFIG, PLEASE CLICK HTTPS://ELINUX.ORG/RPICONFIG TO LEARN MORELEARN HOW TO SET VIRTUAL KEYBOARD (BASED ON RASPBIAN), PLEASE CLICK HTTPS://OSOYOO.COM/2019/04/09/OSOYOO-7INCH-HDMI-TOUCHSCREEN-KEYBOARD-MATCHBOX-KEYBOARD/
Comments