You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also read the FAQ and check if your issue already exists.
Environment
OS: Windows
Scrcpy version: 3.1
Installation method: Using git clone command
Device model: Samsung Galaxy M31 SM-M315F/DS
Android version: 12
Describe the bug
When I start scrcpy using the --turn-screen-off command while my phone is unlocked, the phone's screen turns off as expected, and I can see the display on my laptop. However, if I physically lock my phone using the power button the screen is still turned off (that's not an issue), but if I press the power button again to wake it, the phone screen lights up and shows the lock screen. This also happens in the following scenarios:
If the phone is already locked, then unlocked, and locked again, pressing the power button turns the screen on.
If I manually press the power button after locking the phone, the screen turns on unexpectedly.
Interestingly, if I lock my phone using scrcpy (my phone has a feature where double-tapping the screen turns it off), and then again wake it again using scrcpy by right clicking the screen does not turn on the screen.
Expected Behavior: The phone screen should remain off when using --turn-screen-off mode, even if the power button is pressed.
The text was updated successfully, but these errors were encountered:
The phone screen should remain off when using --turn-screen-off mode, even if the power button is pressed.
To turn the screen off, scrcpy set the "power mode" to off. This power mode is automatically changed by Android if you press the power button, out of control of scrcpy.
If you "press" POWER via MOD+p or right click via scrcpy, as a best effort, the power mode is reset to off: #1573#1577.
Please read the prerequisites to run scrcpy.
Also read the FAQ and check if your issue already exists.
Environment
Describe the bug
When I start scrcpy using the --turn-screen-off command while my phone is unlocked, the phone's screen turns off as expected, and I can see the display on my laptop. However, if I physically lock my phone using the power button the screen is still turned off (that's not an issue), but if I press the power button again to wake it, the phone screen lights up and shows the lock screen. This also happens in the following scenarios:
If the phone is already locked, then unlocked, and locked again, pressing the power button turns the screen on.
If I manually press the power button after locking the phone, the screen turns on unexpectedly.
Interestingly, if I lock my phone using scrcpy (my phone has a feature where double-tapping the screen turns it off), and then again wake it again using scrcpy by right clicking the screen does not turn on the screen.
Expected Behavior: The phone screen should remain off when using --turn-screen-off mode, even if the power button is pressed.
The text was updated successfully, but these errors were encountered: