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
已解决! 转到解答。
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------
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