Waveshare 3.5" display on Pi 4 -Bookworm 64 Bit
Source: https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(C)_Manual_Configuration#For_Bookworm_System
For Raspberry Pi 4 & Raspberry Pi 5
Download and Compile fbcp
Open the Raspberry Pi terminal and execute:
sudo apt install libraspberrypi-dev -y
sudo apt-get install unzip -y
sudo apt-get install cmake -y
sudo wget https://files.waveshare.com/upload/1/1e/Waveshare35c.zip
sudo unzip ./Waveshare35c.zip
sudo cp waveshare35c.dtbo /boot/overlays/
sudo wget https://files.waveshare.com/upload/1/1e/Rpi-fbcp.zip
sudo unzip ./Rpi-fbcp.zip
cd rpi-fbcp/
sudo rm -rf build
sudo mkdir build
cd build
sudo cmake ..
sudo make -j4
sudo install fbcp /usr/local/bin/fbcpEdit "config.txt" file:
Blocking the following sentence:
Add the following code at the end of config.txt:
Set Auto-start startx and fbcp
Open ".bash_profile". If there is no ".bash_profile" file, you can create one:
Add the following code at the bottom of the ".bash_profile" file:
Open the "99-fbturbo.~" file, if it exists, you need to check fb is "fb0":
Add the following code in the "99-fbturbo.~" file:
Set CLI Auto-login
After rebooting, the main screen can normally display. Note 1: Please ensure the username of the Raspberry Pi is "pi", otherwise, it cannot automatically log in. Note 2: After setting the above configuration, it may take a while to reboot the system and load SSH.
Configure Touch
Install calibrator software:
Edit 99-calibration.conf configuration file:
Add the following content to the "99-calibration.conf" configuration file:
Reboot to take effect.
Last updated
