Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
b1f762bc39
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)