imx6dl dual display switch

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

imx6dl dual display switch

2,158 Views
yoonseok
Contributor III

On the imx6dl chip,

The dual display fb state is as follows.

root@imx6dlsabresd:~# ls -l /sys/class/graphics/
total 0
lrwxrwxrwx 1 root root 0 Sep 20 10:16 fb0 -> ../../devices/platform/fb@0/graphics/fb0
lrwxrwxrwx 1 root root 0 Sep 20 10:16 fb1 -> ../../devices/platform/fb@0/graphics/fb1
lrwxrwxrwx 1 root root 0 Sep 20 10:16 fb2 -> ../../devices/platform/fb@1/graphics/fb2
lrwxrwxrwx 1 root root 0 Sep 20 10:16 fbcon -> ../../devices/virtual/graphics/fbcon

I set up the dual display.

As you told me,
"one can try procedures described in Chapter 14 Dual Display attached Linux Manual"


echo 1 > /sys/class/graphics/fb0/blank
echo 1> /sys/class/graphics/fb1/blank
echo 1-layer-fb > /sys/class/graphics/fb2/fsl_disp_property
echo 0 > /sys/class/graphics/fb0/blank
echo 0 > /sys/class/graphics/fb1/blank
echo 0 > /sys/class/graphics/fb2/blank

When I executed the command, there was no error as if it had been set to normal. Now that I'm executing the command on the other way around,

echo 1 > /sys/class/graphics/fb0/blank
echo 1-layer-fb > /sys/class/graphics/fb0/fsl_disp_propertyroot@imx6dlsabresd:~# echo 1> /sys/class/graphics/fb1/blank
root@imx6dlsabresd:~# echo 1-layer-fb > /sys/class/graphics/fb0/fsl_disp_property


[ 942.594130] graphics fb0: Can not switch while fb2(fb-fg) is on.

There's an error.
What is the problem?

Will there be a problem if the resolution is different?
HDMI 1920x 1080, lcd 1280x1024

0 Kudos
4 Replies

2,148 Views
yoonseok
Contributor III
On the imx6dl chip,


oled 1280 x 1024 hdmi 1920x 1080

fb@0 oled
fb@2 hdmi

rwxrwxrwx 1 root root 0 Sep 20 10:16 fb0 -> ../../devices/platform/fb@0/graphics/fb0
lrwxrwxrwx 1 root root 0 Sep 20 10:16 fb1 -> ../../devices/platform/fb@0/graphics/fb1
lrwxrwxrwx 1 root root 0 Sep 20 10:16 fb2 -> ../../devices/platform/fb@1/graphics/fb2
lrwxrwxrwx 1 root root 0 Sep 20 11:09 fbcon -> ../../devices/virtual/graphics/fbcon

Revise the device tree and proceed with the dual display switch.
I did

echo 1 > /sys/class/graphics/fb2/blank
echo 1 > /sys/class/graphics/fb0/blank
echo 1-layer-fb > /sys/class/graphics/fb0/fsl_disp_property
echo 0 > /sys/class/graphics/fb2/blank
gst-launch-1.0 imxv4l2src device=/dev/video0 ! imxv4l2sink

When executed, HDMI is displayed as follows.

*-----------------------------------------------------------------------*
|                                                                       |             |
|        Camera image area displayed               |             |
|                                                                       |             |
|                                                                       |             |
|.-----------------------------------------------------------*            |
|                       HDMI's entire area                                |
|*----------------------------------------------------------------------*

It's marked as you want.

echo 1 > /sys/class/graphics/fb0/blank
echo 1 > /sys/class/graphics/fb2/blank
echo 1-layer-fb > /sys/class/graphics/fb2/fsl_disp_property
echo 0 > /sys/class/graphics/fb0/blank
gst-launch-1.0 imxv4l2src device=/dev/video0 ! imxv4l2sink

OLED will be displayed normally.




At this time, if you switch to HDMI again and run it, it is not expressed in HDMI.

OLED switch works well.

Is there anything I miss?

Please help me.

 

0 Kudos

2,134 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello yoonseok,

 

I think the hdmi is not on the well location

&hdmi_core {

ipu_id = <1>; // IPU 1

disp_id = <0>; // Display 0

status = "okay";

};

 

But is preferable to goes to professional services

https://www.nxp.com/support/support/nxp-engineering-services/professional-engineering-services:PROFE...

Regards

0 Kudos

2,119 Views
yoonseok
Contributor III

모든 것이 잘 진행되었습니다.
감사합니다.

 

 

0 Kudos

2,128 Views
yoonseok
Contributor III

The current setting status is as follows.
Isn't ipu <1> unavailable for imx6DL because there is only one ipu?

 

&hdmi_core {
ipu_id = <0>;
disp_id = <1>;
status = "okay";
};

&lcd_disp {
ipu_id = <0>;
disp_id = <0>;
status = "okay";

};

 

 

0 Kudos