i.MX6SDL display on/off.

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

i.MX6SDL display on/off.

Jump to solution
2,834 Views
satoshishimoda
Senior Contributor I

Hi community,

Our partner want to switch ON/OFF display output from i.MX6SDL.

For example, in the case i.MX6SDL DI0 is connected to HDMI and DI1 is connected to parallel LCD.

HDMI ON, parallel OFF --> HDMI OFF, parallel ON

I feel that I can switch ON/OFF by Linux command if I use Linux BSP (e.g. L3.0.35_4.1.0) without register control.

Would you let me know how to switch ON/OFF each display by Linux command?

Best Regards,

Satoshi Shimoda

Labels (3)
Tags (2)
0 Kudos
1 Solution
1,743 Views
igorpadykov
NXP Employee
NXP Employee

Hi Satoshi

probably one try blank,unblank commands as in

AN4576 i.MX 6DualLite Power Consumption Measurement p.28

// blank display

echo 1 > /sys/class/graphics/fb1/blank

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
1,744 Views
igorpadykov
NXP Employee
NXP Employee

Hi Satoshi

probably one try blank,unblank commands as in

AN4576 i.MX 6DualLite Power Consumption Measurement p.28

// blank display

echo 1 > /sys/class/graphics/fb1/blank

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,743 Views
satoshishimoda
Senior Contributor I

Hi Igor,

Thank you for your reply.

I tested the command.

Then, I controlled display on/off as following procedure when LVDS + HDMI dual display with SABRE board (L3.0.35_4.1.0).

<boot parameter>

setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24'

<Disable all displays>

echo 1 > /sys/class/graphics/fb0/blank

echo 1 > /sys/class/graphics/fb1/blank

echo 1 > /sys/class/graphics/fb2/blank

echo 1 > /sys/class/graphics/fb3/blank

echo 1 > /sys/class/graphics/fb4/blank


<Enable LVDS display>

After disable all displays,

echo 0 > /sys/class/graphics/fb0/blank


<Enable HDMI display>

After disable all displays,

echo 0 > /sys/class/graphics/fb2/blank



On the other hand, I did not disable only HDMI when both display is enabled.

For example,

<Case 1>

After disable all displays...

echo 0 > /sys/class/graphics/fb0/blank (LVDS ON)

echo 0 > /sys/class/graphics/fb2/blank (HDMI ON)

echo 1 > /sys/class/graphics/fb0/blank (LVDS OFF)


<Case 2>

After disable all displays...

echo 0 > /sys/class/graphics/fb0/blank (LVDS ON)

echo 0 > /sys/class/graphics/fb2/blank (HDMI ON)

echo 1 > /sys/class/graphics/fb2/blank (LVDS and HDMI OFF, not only HDMI)



How can I disable only HDMI in this case?


Best Regards,

Satoshi Shimoda

0 Kudos