I'm having a very similar problem to the one described here: viewtopic.php?t=382506. Specifically, I can't properly configure and run LCD WAVESHARE 3.5(C) with a Raspberry Pi and the latest OctoPi build (32-bit bookworm without GUI) and an internal plugin called Octoscreen. I've been working on this for a few days now, and all I've managed to do is get the login screen working on the LCD. I don't know where I'm going wrong and why I'm ultimately unable to get any image.
My steps:
- Using the Raspberry Image, install Octopi on the SD card. Specify: username, password, hostname, geographic information, and Wi-Fi data. Enable SSH.
- After installing the card on the RPI, launch SSH and log in. Install:
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/fbcp
- Edit file "config.txt":
sudo nano /boot/firmware/config.txt
and comments:
# Enable DRM VC4 V3D driver
#dtoverlay=vc4-kms-v3d
#max_framebuffers=2
and adding to end of file:
dtparam=spi=on
dtoverlay=waveshare35c
hdmi_force_hotplug=1
max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 533 60 6 0 0 0
hdmi_drive=2
display_rotate=0
Setting startx and fbcp to run automatically
Open the ".bash_profile" file. If the ".bash_profile" file doesn't exist, you'll need to create it:
sudo nano ~/.bash_profile
and add:
if [ "$(cat /proc/device-tree/model | cut -d ' ' -f 3)" = "5" ]; then
# rpi 5B configuration
export FRAMEBUFFER=/dev/fb1
startx 2> /tmp/xorg_errors
else
# Non-pi5 configuration
export FRAMEBUFFER=/dev/fb0
fbcp &
startx 2> /tmp/xorg_errors
fi
- Touch configuration.
Calibrator installation:
sudo apt-get install xserver-xorg-input-evdev
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
sudo apt-get install xinput-calibrator
Edit file: "99-calibration.conf":
Add the following content to the "99-calibration.conf" configuration file:
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3932 300 294 3801"
Option "SwapAxes" "1"
Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonTimeout" "1000"
Option "EmulateThirdButtonMoveThreshold" "300"
EndSection
- Resrtart:
sudo reboot now
Now i see on the LCD login prompt.
- Installation OctoScreen:
wget https://github.com/Z-Bolt/OctoScreen/releases/download/v2.7.4/octoscreen_2.7.4_armhf.deb
sudo dpkg -i octoscreen_2.7.4_armhf.deb
sudo apt-get update
sudo apt-get install --fix-broken
sudo apt-get install x11-xserver-utils
sudo sed -i 's/OCTOSCREEN_RESOLUTION=.*/OCTOSCREEN_RESOLUTION=800x533/' /etc/octoscreen/config
sudo systemctl set-default graphical
and restart:
sudo reboot now
Now i don't nothing see on lcd.,
Can anyone help me solve the problem I've been stuck on for several days now?