Add video_off_hdmi option to power down HDMI on idle timeout (#1110)
When video_off_hdmi=1 is set in MiSTer.ini, the ADV7513 HDMI transmitter is powered down via I2C when the video_off timeout expires, allowing the connected monitor to enter sleep mode. HDMI is restored when user activity is detected (OSD opens).
This commit is contained in:
2
menu.cpp
2
menu.cpp
@@ -1239,6 +1239,7 @@ void HandleUI(void)
|
||||
{
|
||||
off_timeout = 0;
|
||||
video_menu_bg(user_io_status_get("[3:1]"), 3);
|
||||
if (cfg.video_off_hdmi) video_hdmi_power(0);
|
||||
}
|
||||
|
||||
if (c || menustate != MENU_FILE_SELECT2)
|
||||
@@ -1248,6 +1249,7 @@ void HandleUI(void)
|
||||
{
|
||||
c = 0;
|
||||
menu_visible = 1;
|
||||
if (cfg.video_off_hdmi) video_hdmi_power(1);
|
||||
video_menu_bg(user_io_status_get("[3:1]"));
|
||||
OsdMenuCtl(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user