فهرست منبع

RPI: Update display mode list after powering on

The list could be empty or stale. Hopefully fixes the following case:
1. Switch RPI off
2. Remove HDMI cable from RPI
3. Switch RPI on, wait until PMP has started
4. Plug in HDMI cable
5. Screen remains off
Vincent Lang 9 سال پیش
والد
کامیت
b1f762bc39
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/display/rpi/DisplayManagerRPI.cpp

+ 1 - 0
src/display/rpi/DisplayManagerRPI.cpp

@@ -46,6 +46,7 @@ void DisplayManagerRPI::handleTvChange(uint32_t reason)
   {
     // Plugged in, but is in standby mode. May happen when reconnecting a monitor via HDMI.
     QLOG_INFO() << "Powering on screen.";
+    initialize();
     DisplayComponent::Get().switchToBestOverallVideoMode(0);
   }
   else if (reason & VC_HDMI_UNPLUGGED)