Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.5inch RPi LCD (C) failed to install driver on pi4B #58

Open
getr00t opened this issue Apr 28, 2023 · 14 comments
Open

3.5inch RPi LCD (C) failed to install driver on pi4B #58

getr00t opened this issue Apr 28, 2023 · 14 comments

Comments

@getr00t
Copy link

getr00t commented Apr 28, 2023

CMake Error: The current CMakeCache.txt directory /mnt/LCD-show/rpi-fbcp/build/CMakeCache.txt is different than the directory /home/pi/LCD-show/rpi-fbcp/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/mnt/LCD-show/rpi-fbcp/CMakeLists.txt" does not match the source "/home/pi/LCD-show/rpi-fbcp/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
CMake Error: The source directory "/home/pi/LCD-show/rpi-fbcp" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** [Makefile:176: cmake_check_build_system] Error 1
Selecting previously unselected package xinput-calibrator:armhf.
(Reading database ... 99757 files and directories currently installed.)
Preparing to unpack .../xinput-calibrator_0.7.5-1_armhf.deb ...
Unpacking xinput-calibrator:armhf (0.7.5-1) ...
dpkg: dependency problems prevent configuration of xinput-calibrator:armhf:
xinput-calibrator:armhf depends on libc6 (>= 2.13-28).
xinput-calibrator:armhf depends on libgcc1 (>= 1:4.4.0).
xinput-calibrator:armhf depends on libstdc++6 (>= 4.6).
xinput-calibrator:armhf depends on libx11-6.
xinput-calibrator:armhf depends on libxext6.
xinput-calibrator:armhf depends on libxi6 (>= 2:1.2.0).

dpkg: error processing package xinput-calibrator:armhf (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for man-db (2.9.4-2) ...
Errors were encountered while processing:
xinput-calibrator:armhf
LCD configure 0

Remote side unexpectedly closed network connection
May I ask what I need to do to solve this problem? I have repeatedly installed the same error message several times. My device is PI4 and the system is 2023 02 21 raspios bulleteye arm64.img

@TobiasVanDyk
Copy link

Hi I installed the May 64bit RPiOS with Pi4B and LCD(C) then did:
1 sudo apt update
2 sudo apt-get full-upgrade -y
3 sudo reboot
8 git clone https://github.com/waveshare/LCD-show.git
9 cd LCD-show/
10 chmod +x LCD35C-show
11 ./LCD35C-show
12 sudo apt update
13 sudo apt-get full-upgrade -y
14 sudo apt --fix-broken install

Both the LCD and touch driver worked fine
Install messages are here:
https://github.com/TobiasVanDyk/RaspberryPi-GPIO-Displays/blob/master/ili9486/pi4B-lcdC-2023/install2.txt

@Toh-git
Copy link

Toh-git commented Oct 23, 2023

Hi @TobiasVanDyk Are you using Bookworm 2023-05-03 version?

@Toh-git
Copy link

Toh-git commented Oct 23, 2023

which one of these ? please suggest.
https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-desktop

@TobiasVanDyk
Copy link

TobiasVanDyk commented Oct 23, 2023

Ignore please

@TobiasVanDyk
Copy link

TobiasVanDyk commented Oct 23, 2023 via email

@TobiasVanDyk
Copy link

TobiasVanDyk commented Oct 23, 2023 via email

@JimJ92120
Copy link

got it running on Pi 4B with kernel 6.1 on bullseye and bookworm (Raspberry PI OS 64-bit version) following [waveshare wiki instructions] (https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(C)#Install_the_touch_driver)
(example for C version)

also assuming x-org is used (and not wayland on bookworm)
do not mind calibration errors, on install
setup afterwards as @TobiasVanDyk mentioned:

14 sudo apt --fix-broken install

following must be run with root privilege:

./LCD35C-show

# now
sudo  ./LCD35C-show

then updating (or creating) /usr/share/X11/xorg.conf.d/99-fbdev.conf as mentioned here:
https://forums.raspberrypi.com/viewtopic.php?t=161512#p1048180

...
  # output to LCD screen
  Option "fbdev" "/dev/fb1"

  # or replace with this to output to HDMI instead
  Option "fbdev" "/dev/fb0"
...

@tuxrinku
Copy link

@JimJ92120 Thank you, it worked perfectly for the A version on a Pi 4B with bookworm. The only thing I'm strungling with now is how to rotate the display. When I launch sudo ./LCD35-show 180 it inverts the touchscreen but not the actual display. I tried many things from X conf file, xrandr options, raspberry config.txt file. Nothing appears to be working.
Any solution ?

@mymatenige
Copy link

Are you using X11 or Wayland? You may find that xrandr works with X11 but not Wayland.

@JimJ92120
Copy link

JimJ92120 commented Dec 31, 2023

@tuxrinku
Copy link

tuxrinku commented Dec 31, 2023

I tried everything mentioned in this article. Every orientation option is greyed out in the desktop screen option. When I try using xrandr it returns the following error xrandr: output default cannot use rotation "inverted" reflection "none". I tried config.txt options like display_rotate=2, lcd_rotate=2, display_lcd_rotate=2, display_hdmi_rotate=2. None of them worked. I guess it has something to do with fbdev since it was a workaround to make the lcd screen working on bookworm.

I'm using X11, the lcd screen wouldn't work on wayland apparently

@obdbeats
Copy link

Hello! I got this screen: i've been trying with different os, and testing with all ./LCD commands here...
I can't make it work into my Raspberry Pi4b.
Did some 1 succesfully set up this type of spi tftlcd in a RASPI4b?
Helllllp!!
image
image
image

@TobiasVanDyk
Copy link

This may give additional info: juj/fbcp-ili9341#40

@obdbeats
Copy link

obdbeats commented Jul 18, 2024

This may give additional info: juj/fbcp-ili9341#40

Hi Tobias! Thanks for the fast response, i've seen that, but cant find the way to make it work.. im in a fresh instalation...

this is what i get when i run ./fbcp-ili9341
but the screen stillls white.. (ofcourse the screen works, i've tested with some kedei's programs and on a raspi 1b with their custom image and the screen works.. but in my Pi4b doesn't.. really, I won't give up till it works (or i get bored of lying around xD). I'ld love to got my pi4 with this screen xd

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants