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 7inch Display + KMS are displaying black/white bars #1371

Open
ykuzma1 opened this issue Sep 24, 2024 · 10 comments
Open

Raspberry Pi 7inch Display + KMS are displaying black/white bars #1371

ykuzma1 opened this issue Sep 24, 2024 · 10 comments

Comments

@ykuzma1
Copy link

ykuzma1 commented Sep 24, 2024

Description
The official Raspberry Pi 7 inch display consistently shows black and white bars after boot when using the KMS graphics driver. The HDMI display does show the correct output however. Pictures attached.

Steps to reproduce the issue:

MACHINE = "raspberrypi4"
DISTRO = "poky"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
ENABLE_UART = "1"
IMAGE_INSTALL:append = " kmscube"
LICENSE_FLAGS_ACCEPTED += "synaptics-killswitch"
bitbake core-image-base

Describe the results you received:
The RPi 7in display does initially show the rainbow screen and four raspberry graphics, but then immediately fades out to black and white bars. The HDMI display shows the rainbow and raspberry graphics like the RPi display but boots to a visible console and can launch kmscube successfully.

Describe the results you expected:
console and kmscube working on the RPi 7in display.

Additional information you deem important (e.g. issue happens only occasionally):

  • Attempted using RPi OS - does work correctly!
  • Attempted using FKMS driver (core-image-base) - does work correctly! Performance is lacking.
  • Attempted using FKMS driver (core-image-minimal) - does display correctly but does not respond to touch input and has poor performance (perhaps related to issue #1079?)
  • Attempted building for Raspberry Pi 3 & 4 - no change.
  • Attempted building for Raspberry Pi 5 - RPi display does not show anything or illuminate the backlight.
  • Attempted Kirkstone build - no change.
  • Attempted using 32bit vs 64bit - no change.
  • Attempted using Linux kernel 6.1 - no change.
  • Attempted replacing touchscreen, Pi, cable, reseating everything - no change.
  • Attempted RPi display independently of HDMI - no change.

Additional details (revisions used, host distro, etc.):

  • poky - scarthgap/kirkstone - latest
  • meta-raspberrypi - scarthgap/kirkstone - latest

Let me know if I can provide any logs or can attempt any other debugging steps because I'm running out of ideas.

PXL_20240924_152128629 MP
PXL_20240924_163337655 MP

@ykuzma1
Copy link
Author

ykuzma1 commented Sep 27, 2024

I just realized this may be a continuation of closed issue #802. Let me know if you'd rather move this discussion there and reopen that issue.

perezmeyer added a commit to perezmeyer/meta-raspberrypi that referenced this issue Sep 30, 2024
This update seems to fix agherzan#1371

Closes: agherzan#1371

Signed-off-by: Lisandro Pérez Meyer <[email protected]>
perezmeyer added a commit to perezmeyer/meta-raspberrypi that referenced this issue Sep 30, 2024
This update seems to fix agherzan#1371

Closes: agherzan#1371

Signed-off-by: Lisandro Damián Nicanor Pérez Meyer <[email protected]>
perezmeyer added a commit to perezmeyer/meta-raspberrypi that referenced this issue Sep 30, 2024
This update seems to fix agherzan#1371

Closes: agherzan#1371

Signed-off-by: Lisandro Damián Nicanor Pérez Meyer <[email protected]>
@bojanmilevski
Copy link

I am experiencing the exact same issue.

Upgrading kernel to 6.6.51 does not help - neither does downgrading to 6.1.77.

@bojanmilevski
Copy link

After many hours of debugging, I have came to the conclusion that setting INIT_MANAGER = "mdev-busybox" was the root of the problem. Once I changed it to systemd and added kernel-modules to IMAGE_INSTALL in my image recipe, the problem was gone.

I installed weston and was surprised for it to auto-start.

I hope this information is relevant and helpful.

@bojanmilevski
Copy link

It's important to note that I am on each layer's master branch (poky and meta-raspberrypi).

@ykuzma1
Copy link
Author

ykuzma1 commented Oct 24, 2024

@bojanmilevski I was unable to get the problem resolved by adding INIT_MANAGER = systemd and IMAGE_INSTALL:append = " kernel-modules". Would you mind sharing the rest of your local.conf?

@bojanmilevski
Copy link

After having spent a couple more hours, I can confirm that adding dtoverlay=vc4-kms-dsi-7inch to config.txt, as well as the steps above, works.

Another note to mention - I tried switching back to the scarthgap branch on both layers, and can confirm that everything works as normal, so no need to switch to master

@ykuzma1
Copy link
Author

ykuzma1 commented Oct 24, 2024

@bojanmilevski I can confirm that worked on my end as well! Thank you!!

Here is a minimal working example local.conf:

MACHINE = "raspberrypi4"
DISTRO = "poky"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
ENABLE_UART = "1"
DISTRO_FEATURES += "opengl pam wayland"
INIT_MANAGER = "systemd"
IMAGE_INSTALL:append = " kmscube kernel-modules"
LICENSE_FLAGS_ACCEPTED += "synaptics-killswitch"
RPI_EXTRA_CONFIG = "dtoverlay=vc4-kms-dsi-7inch\n"

@ykuzma1
Copy link
Author

ykuzma1 commented Oct 24, 2024

Initial testing on a Raspberry Pi 5 continues to not show anything on the RPi display or illuminate the backlight with both KMS and FKMS drivers. Which indicates that may be a different issue altogether. I will do more testing and follow-up with a new issue if necessary.

@bojanmilevski
Copy link

Sorry, I forgot to mention that I was testing this on a RPi4B with 8GB of memory. I am unable to assist you with the RPi5.

@ykuzma1
Copy link
Author

ykuzma1 commented Oct 28, 2024

No problem @bojanmilevski. I moved discussion regarding the RPi5 to its own issue tracker #1382. Thanks again for your help on this issue.

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

2 participants