i.MX6SDL display on/off.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX6SDL display on/off.

跳至解决方案
3,203 次查看
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

标签 (3)
标记 (2)
0 项奖励
回复
1 解答
2,112 次查看
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 项奖励
回复
2 回复数
2,113 次查看
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 项奖励
回复
2,112 次查看
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 项奖励
回复