RasQberry icon indicating copy to clipboard operation
RasQberry copied to clipboard

Enabling display leads to stuck Raspberry Pi4

Open HayleySummer opened this issue 3 years ago • 3 comments

Hi, I followed the setup instructions with my Raspberry Pi 4. Everything worked smothly until I tried to execute "S2 – Enable 4’’ Display " via the RasQberry Configuration Tool. This caused my display (Waveshare LCD 4'') to get stuck, showing only two white stripes at the bottom of the screen and nothing else. After several minutes I forced the Raspberry to reboot (via Control+alt+F1 and terminal).

I wiped the OS and started again from scratch, this time skipping the touchscreen enablement, but I had the same issue with "S0 – Bloch Autostart" which requires enabling the touch screen. Is there a known workaround to solve this issue? Or is enabling the display configuration only suitable for some displays? If you have any questions on this, don't hesistate to get in touch with me. Thank you and kind regards

HayleySummer avatar Sep 03 '21 14:09 HayleySummer

Hi @HayleySummer, thanks for submitting this issue!

The procedure has been tested with the following display: http://www.miuzeipro.com/product/miuzei-raspberry-pi-4-touch-screen-with-case-fan-4-inch-ips-full-angle-game-display-800x480-pixel-support-hdmi-input-with-touch-pen-4-pcs-heatsinks-support-raspbian-kali-by-miuzei/ (which is also available at Amazon in several countries, and several other shops)

The core code for configuration of the display is in the following script: bin/rq_enable_touch.sh

Not sure if it needs to be modified for the Waveshare LCD 4'' you are using. The waveshare is probably a standard display, so it would be great if we could auto detect the display model and fix the setup procedure accordingly.

JanLahmann avatar Sep 03 '21 14:09 JanLahmann

Hi Jan, thank you very much for you reply. In the meantime I could solve the issues with my waveshare display. There were actually two issues that needed to be solved.

  1. in bin/rq_enable_touch.sh there is a rotation of the display included. That one is specific to the display you were using sudo ./MPI4008-show 180 if you don't have this specific display, it won't work. So the solution is either deleting this part, or replacing it with the actual display on the raspi., in my case /LCD4-800x480-show
  2. In order to start the bloch sphere demo the touch screen needs to be properly calibrated ( /home/pi/RasQberry/.is_tft_calibrated is required). In order to set this, you need to have access to the xorg.conf.d folder which you can usually find at /etc/X11/xorg.conf.d/. However, with my Raspberry Pi the xorg.conf.d was set by default to /usr/share/X11/xorg.conf.d -> so copying the folder to the /etc/X11/ directory solved the second issue. I hope this might help fixing some issues in the future. Kind regards

HayleySummer avatar Sep 05 '21 09:09 HayleySummer

Thank you, @HayleySummer ! I'd like to add that display to the automated setup procedure, and also add an option how "other" displays could be configured manually (and skip the display auto setup). For that, it would be great to know the output of the following command on your Raspberry with the Waveshare display: $ tvservice -s -n -l

With the Miuzei display attached it looks like this:

$ tvservice -s -n -l 
state 0xa [HDMI DMT (87) RGB full 15:9], 480x800 @ 60.00Hz, progressive
device_name=ADA-MPI4008
1 attached device(s), display ID's are : 
Display Number 2, type HDMI 0
```

JanLahmann avatar Sep 11 '21 07:09 JanLahmann