Reset power mode only if screen is on
PR <https://github.com/Genymobile/scrcpy/pull/1670>
@@ -78,7 +78,9 @@ public final class CleanUp {
if (restoreNormalPowerMode) {
Ln.i("Restoring normal power mode");
+ if (Device.isScreenOn()) {
Device.setScreenPowerMode(Device.POWER_MODE_NORMAL);
}
}
}
+}
