diff --git a/server/src/main/java/com/genymobile/scrcpy/CleanUp.java b/server/src/main/java/com/genymobile/scrcpy/CleanUp.java index 2ae2d03d90..2e591e5c19 100644 --- a/server/src/main/java/com/genymobile/scrcpy/CleanUp.java +++ b/server/src/main/java/com/genymobile/scrcpy/CleanUp.java @@ -76,7 +76,7 @@ public static void main(String... args) { } if (scheduleScreenOn) { Ln.i("Restoring \"displayPowerMode\""); - new Device(new Options()).setScreenPowerMode(Device.POWER_MODE_NORMAL); + Device.setScreenPowerMode(Device.POWER_MODE_NORMAL); } } }