i.MX8M Plus PSPLASH Dual Display

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8M Plus PSPLASH Dual Display

1,942 Views
acremonini
Contributor III

Hello,

I'm having some trouble in setting PSplash in my application: I have both a LVDS display and a HDMI display connected to my board.

Main issue is that the LVDS display is rotated by 180°, so my psplash screen is upside down in one of the two display. I've seen that both displays are associated with the same frame buffer, so the image is just replicated on them. Even the resolution is the same, so the image takes a small part of the HDMI display.

How can I set a different behaviour on my displays?

Thanks,

A

Tags (1)
0 Kudos
Reply
5 Replies

1,924 Views
joanxie
NXP TechSupport
NXP TechSupport

you can refer to the link as below

Weston clone mode on i.MX8MPlus - NXP Community

0 Kudos
Reply

1,916 Views
acremonini
Contributor III

@joanxie 
Thanks,

if I understand correctly that is a guide about cloning the same Weston interface on multiple display.

But psplash doesn't use Weston,  it outputs on the framebuffer /dev/fb0 that is mounted at startup (by drm?). This framebuffer is the same for both my lvds and hdmi display so rotation and resolution are not considered.
Is it possible to have two different framebuffer for hdmi and lvds?

Best regards,

0 Kudos
Reply

1,890 Views
joanxie
NXP TechSupport
NXP TechSupport

what bsp version do you use? as I known, only one frame buffer for psplash in the old bsp, you can refer to the patch as below

https://github.com/Renn22/psplash/commit/2913c24920a984331685eaa528f6b29c18e285c8#diff-6e9c80ea4001b...

0 Kudos
Reply

1,881 Views
acremonini
Contributor III

Thanks,

I'm using Psplash version provided with imx-linux-scarthgap Yocto (imx-6.6.23-2.0.0 xml).

I guess there will be modifications to be done on Psplash, and the patch you share could be useful, but there's a bigger problem:

there's just one frame buffer for both LVDS and HDMI (getting LVDS resolution). Even if I don't use psplash and i just put data with a dd on the frame buffer, the same pixel are shown both on HDMI and LVDS display.

If I understand correctly, it is imx-drm that creates the framebuffer and associates all displays with it. I just wonder if it is possible to associate LVDS and HDMI with different framebuffers.

 

0 Kudos
Reply

1,822 Views
joanxie
NXP TechSupport
NXP TechSupport

you can try two solution, the first one, you can refer to the patch I sent to you before, split the one frame buffer into two,it use cmd FBIO_WAITFORVSYNC to flip the two buffers,  another one is refer to the weston, use new systemd service to replace the splash service, on theory, can use dual buffer to support your user case

0 Kudos
Reply