Skip to content

Commit 448671a

Browse files
committed
WinSystemAmlogic: add display hotplug feature
If display is not connected the connector is also not connected to encoder/crtc. Manually connect it on display hotplug and force a drm mode switch.
1 parent 30aa0be commit 448671a

File tree

5 files changed

+471
-30
lines changed

5 files changed

+471
-30
lines changed

xbmc/settings/DisplaySettings.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static bool write_resolution_ini(RESOLUTION_INFO res)
117117
if (!result && fsInfo.f_flags & MS_RDONLY)
118118
result = mount(NULL, aml_res_path.c_str(), NULL, MS_NOATIME | MS_REMOUNT, NULL);
119119

120-
if (!result && !res.strId.empty())
120+
if (!result && !res.strId.empty() && !StringUtils::EqualsNoCase(res.strId, "dummy_l"))
121121
{
122122
std::ofstream ofs(aml_res_path + "/" + aml_res_file, std::ofstream::out);
123123
ofs << "# WARNING DO NOT MODIFY THIS FILE! ALL CHANGES WILL BE LOST!\n";

0 commit comments

Comments
 (0)