Difference between revisions of "Template:13.3inch PiPad C4 Guide"
From Waveshare Wiki
(→USB2.0) |
|||
(20 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
**[[Write Image for Compute Module Boards eMMC version]] | **[[Write Image for Compute Module Boards eMMC version]] | ||
**[[Wrote Image for Compute Module Boards Lite version |Write Image for Compute Module Boards Lite version]] | **[[Wrote Image for Compute Module Boards Lite version |Write Image for Compute Module Boards Lite version]] | ||
− | *Create a new | + | *Create a new Txt file under the BOOT directory of the micro SD card and name it SSH. |
− | *Modify config.txt file which is located | + | *Modify the config.txt file which is located in the BOOT directory, and add the following lines to the config.txt file. |
<pre> | <pre> | ||
hdmi_group=2 | hdmi_group=2 | ||
Line 10: | Line 10: | ||
hdmi_cvt 1920 1080 60 6 0 0 0 | hdmi_cvt 1920 1080 60 6 0 0 0 | ||
</pre> | </pre> | ||
− | *Save and insert the micro SD card | + | *Save and insert the micro SD card into Raspberry Pi. |
− | *Connect the Magic mirror to network and power on Raspberry Pi. | + | *Connect the Magic mirror to the network and power on Raspberry Pi. |
− | *After booting, you can access Raspberry Pi via SSH, or directly connect the keyboard and mouse. | + | *After booting, you can access Raspberry Pi via SSH/VNC, or directly connect the keyboard and mouse. |
+ | |||
==Check the USB Audio Card== | ==Check the USB Audio Card== | ||
− | *Test the sound output device | + | *Test the sound output device: |
<pre> | <pre> | ||
aplay -l | aplay -l | ||
</pre> | </pre> | ||
− | *Test the sound input device | + | *Test the sound input device: |
<pre> | <pre> | ||
arecord -l | arecord -l | ||
</pre> | </pre> | ||
==USB2.0== | ==USB2.0== | ||
− | To reduce consumption, USB interfaces are disabled in CM4 by default. If you need to use USB ports, please add the following line to config.txt file.<br /> | + | To reduce consumption, USB interfaces are disabled in CM4 by default. If you need to use USB ports, please add the following line to the config.txt file.<br /> |
<pre> | <pre> | ||
dtoverlay=dwc2,dr_mode=host | dtoverlay=dwc2,dr_mode=host | ||
Line 29: | Line 30: | ||
Then reboot the CM4. | Then reboot the CM4. | ||
<font color=red> | <font color=red> | ||
− | If you use the newest Bullseye image, the USB2.0 is set to OTG mode by default, and | + | If you use the newest Bullseye image, the USB2.0 is set to OTG mode by default, and occurs the error in CM4: |
<pre> | <pre> | ||
config failed, hub doesn't have any ports! (err -19) | config failed, hub doesn't have any ports! (err -19) | ||
</pre> | </pre> | ||
− | To remove the errors, you can remove the line ''otg_mode=1'' from config.txt file and add the line: | + | To remove the errors, you can remove the line ''otg_mode=1'' from the config.txt file and add the line: |
<pre> | <pre> | ||
dtoverlay=dwc2,dr_mode=host | dtoverlay=dwc2,dr_mode=host | ||
Line 40: | Line 41: | ||
[[File:13.3inch PiPad C42.png]] | [[File:13.3inch PiPad C42.png]] | ||
− | == | + | == Kepp Display Always On == |
− | *Modify lightdm.conf | + | *Modify lightdm.conf. |
<pre> | <pre> | ||
sudo nano /etc/lightdm/lightdm.conf | sudo nano /etc/lightdm/lightdm.conf | ||
</pre> | </pre> | ||
− | *Find the line "Xserver-command" below [SeatDefaults] section and change it from | + | *Find the line "Xserver-command" below the [SeatDefaults] section and change it from: |
<pre> | <pre> | ||
#xserver-command=X | #xserver-command=X | ||
Line 53: | Line 54: | ||
xserver-command=X -s 0 -dpms | xserver-command=X -s 0 -dpms | ||
</pre> | </pre> | ||
− | *-s # – set screen saver not enabled | + | *-s # – set screen saver not enabled. |
− | *dpms turn off power saving management | + | *dpms turn off power saving management. |
− | *Then save and reboot | + | *Then save and reboot: |
<pre> | <pre> | ||
sudo reboot | sudo reboot | ||
Line 61: | Line 62: | ||
==RS232== | ==RS232== | ||
− | + | In /boot/config.txt, add dtoverlay=uart3.<br> | |
− | < | + | <syntaxhighlight lang="python"> |
− | sudo nano /boot/config.txt | + | sudo nano /boot/config.txt |
− | |||
− | |||
− | |||
dtoverlay=uart3 | dtoverlay=uart3 | ||
− | </ | + | #device name /dev/ttyAMA1 |
+ | </syntaxhighlight> | ||
+ | |||
==RS485== | ==RS485== | ||
− | + | Open the Raspberry Pi terminal and enter the following command to access the configuration screen.<br /> | |
− | < | + | <syntaxhighlight lang="python"> |
sudo raspi-config | sudo raspi-config | ||
− | </ | + | #Select Interfacing Options -> Serial, disable shell visit, and enable hardware UART port. |
− | + | #Device name: /dev/ttyS0 | |
− | == Keys | + | </syntaxhighlight> |
− | [[File:13.3inch-HDMI-LCD-H-Manual-02.jpg| | + | [[file:L76X_GPS_Module_rpi_serial.png|center|1200px]]<br /> |
− | *1: | + | |
− | *2: Direction button | + | == Keys Description== |
− | *3: "OK" function | + | [[File:13.3inch-HDMI-LCD-H-Manual-02.jpg|190px]] |
− | *4: Open menu and "Return" function | + | *1: Turn on or off the LCD. If you don't need the LCD for a long time, you can use this button to reduce consumption. |
+ | *2: Direction button. | ||
+ | *3: "OK" function. | ||
+ | *4: Open the menu and the "Return" function. |
Latest revision as of 07:44, 17 January 2024
Write Raspberry Pi OS
- Download the lasted Raspberry Pi OS image from the Rasberry Pi website and write it to an empty micro SD card.
- Create a new Txt file under the BOOT directory of the micro SD card and name it SSH.
- Modify the config.txt file which is located in the BOOT directory, and add the following lines to the config.txt file.
hdmi_group=2 hdmi_mode=82 hdmi_cvt 1920 1080 60 6 0 0 0
- Save and insert the micro SD card into Raspberry Pi.
- Connect the Magic mirror to the network and power on Raspberry Pi.
- After booting, you can access Raspberry Pi via SSH/VNC, or directly connect the keyboard and mouse.
Check the USB Audio Card
- Test the sound output device:
aplay -l
- Test the sound input device:
arecord -l
USB2.0
To reduce consumption, USB interfaces are disabled in CM4 by default. If you need to use USB ports, please add the following line to the config.txt file.
dtoverlay=dwc2,dr_mode=host
Then reboot the CM4. If you use the newest Bullseye image, the USB2.0 is set to OTG mode by default, and occurs the error in CM4:
config failed, hub doesn't have any ports! (err -19)
To remove the errors, you can remove the line otg_mode=1 from the config.txt file and add the line:
dtoverlay=dwc2,dr_mode=host
Kepp Display Always On
- Modify lightdm.conf.
sudo nano /etc/lightdm/lightdm.conf
- Find the line "Xserver-command" below the [SeatDefaults] section and change it from:
#xserver-command=X
to
xserver-command=X -s 0 -dpms
- -s # – set screen saver not enabled.
- dpms turn off power saving management.
- Then save and reboot:
sudo reboot
RS232
In /boot/config.txt, add dtoverlay=uart3.
sudo nano /boot/config.txt dtoverlay=uart3 #device name /dev/ttyAMA1
RS485
Open the Raspberry Pi terminal and enter the following command to access the configuration screen.
sudo raspi-config #Select Interfacing Options -> Serial, disable shell visit, and enable hardware UART port. #Device name: /dev/ttyS0
Keys Description
- 1: Turn on or off the LCD. If you don't need the LCD for a long time, you can use this button to reduce consumption.
- 2: Direction button.
- 3: "OK" function.
- 4: Open the menu and the "Return" function.