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

raspberry pi zero w 1.3 lcd hat not displaying and giving error #330

Open
pokedijimone opened this issue Jun 23, 2024 · 10 comments
Open

raspberry pi zero w 1.3 lcd hat not displaying and giving error #330

pokedijimone opened this issue Jun 23, 2024 · 10 comments

Comments

@pokedijimone
Copy link

i enter the command ./fbcp and get this error
vc_dispmanx_display_open failed! Make sure to have hdmi_force_hotplug=1 setting in /boot/config.txt

resim_2024-06-23_163759222

and i have entered the setting hdmi_force_hotplug=1 and still gives the error

resim_2024-06-23_163947385

@Edman274
Copy link

Edman274 commented Jul 3, 2024

@pokedijimone, which version of Raspbian are you running?

@green3554
Copy link

@Edman274 Having the same issue, using Raspbian 1:6.6.31-1+rpt1 (2024-05-29) armv7l / bookworm 32-bit with desktop. I've been screwing around with different settings and gotten nowhere except having the dstatistics show up I think.

@pokedijimone
Copy link
Author

@pokedijimone, which version of Raspbian are you running?

the last version avalible on the raspberry imager raspberry pi zero w

@anmolss111
Copy link

Use the legacy "Bullseye" os 32 bit.
run raspi-config to set

  1. SPI Interface in Interface Options -> SPI -> Enabled
  2. Enable the GL driver using Advanced options -> GL driver
  3. reboot
  4. build the fbcp with the -D driver on your LCD. I had a ST7789v with 320 and 240 aspect ratio so had to change C code refered in the issue.

@bcw222
Copy link

bcw222 commented Sep 7, 2024

Waveshare said it's not supported on bookworm.
Maybe try bullseye?

@pokedijimone
Copy link
Author

ok i changed to bullseye what shoukd i do now

@anmolss111
Copy link

Use the legacy "Bullseye" os 32 bit. run raspi-config to set

  1. SPI Interface in Interface Options -> SPI -> Enabled
  2. Enable the GL driver using Advanced options -> GL driver
  3. reboot
  4. build the fbcp with the -D driver on your LCD.
    I had a ST7789v with 320 and 240 aspect ratio so had to change C code refered in the issue.

@pokedijimone
Copy link
Author

how do i build fbcp

@anmolss111
Copy link

You have do create a build folder in the directory you clone this repo to:

For eg.

cd ~
sudo apt-get install cmake
git clone https://github.com/juj/fbcp-ili9341.git
cd fbcp-ili9341
mkdir build
cd build

You can use many different arguments according to your requirements.

For eg.

You need to put the driver of you LCD (in my case DST7789) and the DC and Reset GPIO pin number (software, not hardare pin numbers, generally mentioned in the usage manual of your LCD screen)

cmake -DST7789=ON -DGPIO_TFT_DATA_CONTROL=25 -DGPIO_TFT_RESET_PIN=27 -DSPI_BUS_CLOCK_DIVISOR=8 -DUSE_DMA_TRANSFERS=OFF -DSTATISTICS=0 ..

Backlight control to switch off automatically after a while of inactivity

cmake -DST7789=ON -DGPIO_TFT_DATA_CONTROL=25 -DGPIO_TFT_RESET_PIN=27 -DSPI_BUS_CLOCK_DIVISOR=8 -DUSE_DMA_TRANSFERS=OFF -DSTATISTICS=0 -DGPIO_TFT_BACKLIGHT=18 -DBACKLIGHT_CONTROL=ON ..

Rotate the screen

cmake -DST7789=ON -DGPIO_TFT_DATA_CONTROL=25 -DGPIO_TFT_RESET_PIN=27 -DSPI_BUS_CLOCK_DIVISOR=8 -DUSE_DMA_TRANSFERS=OFF -DSTATISTICS=0 -DDISPLAY_ROTATE_180_DEGREES=ON ..

@benoror
Copy link

benoror commented Dec 15, 2024

In my case for Waveshare 1.44inch LCD HAT I had to disable #dtoverlay=vc4-kms-v3d (#311 (comment)) and compile with the following flags under Bullseye 32bit:

cmake -DST7789=ON -DGPIO_TFT_DATA_CONTROL=25 -DGPIO_TFT_RESET_PIN=27 -DSPI_BUS_CLOCK_DIVISOR=20 -DWAVESHARE_ST7735S_HAT=ON -DUSE_DMA_TRANSFERS=OFF -DGPIO_TFT_BACKLIGHT=18 -DBACKLIGHT_CONTROL=ON -DSTATISTICS=0 ..

(via

- `-DWAVESHARE_ST7735S_HAT=ON`: If specified, targets a [128x128, 1.44inch LCD display HAT for Raspberry Pi](https://www.waveshare.com/1.3inch-lcd-hat.htm) with ST7735S display controller.
)

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

6 participants