i.MX6SDL display on/off.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX6SDL display on/off.

ソリューションへジャンプ
3,763件の閲覧回数
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,672件の閲覧回数
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,673件の閲覧回数
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,672件の閲覧回数
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 件の賞賛
返信