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
{{ message }}
Repository navigation
Have phone screen off while mirroring on computer #175
It would be nice to have the screen mirroring on like it does but have the phone screen off, only showing on the computer. Would need to be able have the screen awake all the time while plugged in as well. Great job on this so far, just got it recently and it's very responsive. I use it at work all day. Thanks.
Reacted by Space Age Hero, LufyCZ, schaden-freude, Kourosh, FPlust, Jordan ERNST, Aakarshit Uppal, Izzur Zuhri, Cosmic, mk2soldier and 8 more
changed the title [-]Feature Request: Have phone screen off while mirroring on computer[/-][+]Have phone screen off while mirroring on computer[/+]on Jun 17, 2018
Ok thanks for the response. Anyway of having the screen switch to stay awake when using this? Currently every time I use this I have to go into developer options and switch on stay awake while charging. I don't really want it staying awake if I am charging my phone overnight while not using this so I have to go back in every time after using scrcpy and switch stay awake off. If possible it would be a nice convenience. Thanks for this, I've been using this for a few days now at work. Since Oreo came out Sidesync hasn't been working so this was a great find. thumbs up
Ok thanks again for the response. Ya I was using the right click to turn on but I have to unlock the phone everytime so it would be better to have the screen awake all the time in my case. I use my phone a lot during the day to contact my drivers (I'm in dispatch) so unlocking the phone everytime gets clunky. Thanks for whatever you can do.
Just an idea...
If the server has enough privileges as shell, and has a chance to detect
disconnection and do something before dying, it could set the global
setting key "stay_on_while_plugged_in" to value 7 upon starting, and reset
it just before dying? Same for brightness setting (if a global one exists?).
That would "automate" the described behavior...
Le lun. 18 juin 2018 à 17:56, WrathX <notifications@github.com> a écrit :
Ok thanks again for the response. Ya I was using the right click to turn
on but I have to unlock the phone everytime so it would be better to have
the screen awake all the time in my case. I use my phone a lot during the
day to contact my drivers (I'm in dispatch) so unlocking the phone
everytime gets clunky. Thanks for whatever you can do.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#175 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB2kb9TKazS5UQ_km4k3zW145_DxbidYks5t982-gaJpZM4Up18Q>
.
Reacted by Romain Vimont, Jordan ERNST and Harleen Sahni
bypassing the lock screen, that would be quite the exploit in the android os (unless u purposely put it there).
if there is no lock screen on, maybe remove the unlock animation, turn screen brightness down to about 200 nits...very low , keep screen on while charging, have double tap to wake mappable to any key eg. double shift.
have a copy of your android device in a virtual machine.
dont know if this is even possible just throwing some ideas out there
What's the version of downloaded scrcpy? If it's below the current then download the actual version and run on terminal the command scrcpy -h, there's a session of shortcuts in the end. To turn on/off screen of phone, type Ctrl + P.
Anyway of having the screen switch to stay awake when using this?
Currently, no. It's probably possible to wrap scrcpy with a script that enable/disable "keep screen on".
(Just for info, a right click switches the screen on.)
I was able to do this with a script combined with Tasker and AutoRemote installed on the phone. Tasker sets the display timeout. I also have it set screen brightness to minimum.
I would like to turn off the screen on the phone but can't do it without blanking scrcpy as well.
I was able to do this with a script combined with Tasker and AutoRemote installed on the phone. Tasker sets the display timeout. I also have it set screen brightness to minimum.
What did you use for the trigger? I'm looking to do something similar.
The power button reenables the screen (which is good for the physical button, but is also an issue with the simulated power button on scrcpy starting and on right-click/Ctrl+P, e.g. when the screen goes black after timeout, a right-click also reenable the device screen).
I will probably work on this soon if I find some time.
Reacted by brunoais and ℂ𝕠𝕠𝕠𝕝 (𝕘𝕚𝕥𝕙𝕦𝕓.𝕔𝕠𝕞/ℂ𝕠𝕠𝕠𝕝)
Reacted by Manuel Solimano, Cosmic, Shinkiro1, Jordan ERNST, Andy Bao, Wojciech Rozwadowski and Shivam Karn
I am also interested when the screen goes off, in Vysor there was implemented when this happened and I click on any key it will turn on the screen. Will be nice to have this feature.
Activity
alambike commentedon Jun 17, 2018
👍 Disable phone screen will be a nice feature .
[-]Feature Request: Have phone screen off while mirroring on computer[/-][+]Have phone screen off while mirroring on computer[/+]rom1v commentedon Jun 17, 2018
Yes, that would be great. But I have no technical solution. See reddit comment.
WrathX commentedon Jun 18, 2018
Ok thanks for the response. Anyway of having the screen switch to stay awake when using this? Currently every time I use this I have to go into developer options and switch on stay awake while charging. I don't really want it staying awake if I am charging my phone overnight while not using this so I have to go back in every time after using scrcpy and switch stay awake off. If possible it would be a nice convenience. Thanks for this, I've been using this for a few days now at work. Since Oreo came out Sidesync hasn't been working so this was a great find. thumbs up
rom1v commentedon Jun 18, 2018
Currently, no. It's probably possible to wrap scrcpy with a script that enable/disable "keep screen on".
(Just for info, a right click switches the screen on.)
WrathX commentedon Jun 18, 2018
Ok thanks again for the response. Ya I was using the right click to turn on but I have to unlock the phone everytime so it would be better to have the screen awake all the time in my case. I use my phone a lot during the day to contact my drivers (I'm in dispatch) so unlocking the phone everytime gets clunky. Thanks for whatever you can do.
bonrry commentedon Jun 18, 2018
Keneil-Thompson commentedon Jun 18, 2018
bypassing the lock screen, that would be quite the exploit in the android os (unless u purposely put it there).
if there is no lock screen on, maybe remove the unlock animation, turn screen brightness down to about 200 nits...very low , keep screen on while charging, have double tap to wake mappable to any key eg. double shift.
have a copy of your android device in a virtual machine.
dont know if this is even possible just throwing some ideas out there
cleberOliva commentedon Aug 9, 2018
What's the version of downloaded scrcpy? If it's below the current then download the actual version and run on terminal the command scrcpy -h, there's a session of shortcuts in the end. To turn on/off screen of phone, type Ctrl + P.
yrrah commentedon Dec 21, 2018
I was able to do this with a script combined with Tasker and AutoRemote installed on the phone. Tasker sets the display timeout. I also have it set screen brightness to minimum.
I would like to turn off the screen on the phone but can't do it without blanking scrcpy as well.
Shinkiro1 commentedon Feb 28, 2019
What did you use for the trigger? I'm looking to do something similar.
rom1v commentedon Mar 15, 2019
Oh, I investigated a bit tonight, in fact it's quite easy:
IBinder display = SurfaceControl
getBuiltInDisplay(0);SurfaceControl.
setDisplayPowerMode(display,POWER_MODE_OFF);I have a working PoC.
The power button reenables the screen (which is good for the physical button, but is also an issue with the simulated power button on scrcpy starting and on right-click/Ctrl+P, e.g. when the screen goes black after timeout, a right-click also reenable the device screen).
I will probably work on this soon if I find some time.
rom1v commentedon Mar 15, 2019
If you are interested, here is my quick test:
screenoff.vlad-cotfas commentedon May 12, 2019
I am also interested when the screen goes off, in Vysor there was implemented when this happened and I click on any key it will turn on the screen. Will be nice to have this feature.
29 remaining items
sandeepkumardev-zz commentedon Sep 19, 2020
Scrcpy v1.9 and Android 10. plz help 🙏
rom1v commentedon Sep 19, 2020
That's very old. Just use the latest version.
sandeepkumardev-zz commentedon Sep 19, 2020
which one ??
sandeepkumardev-zz commentedon Sep 19, 2020
'ctrl + o' does not work in scrcpy (v1.16)
rom1v commentedon Sep 19, 2020
Since v1.15, the shortcuts are bound to Alt by default, so it's Alt+o.
sandeepkumardev-zz commentedon Sep 19, 2020
Thankyou 😊😊 'alt + o' work in v1.16. but how i can screen turned on.
rom1v commentedon Sep 19, 2020
Please read the doc: https://github.com/Genymobile/scrcpy#shortcuts
sandeepkumardev-zz commentedon Sep 19, 2020
Thank you so much 😊😊
sandeepkumardev-zz commentedon Sep 19, 2020
sir where can i find it 32bit version.
npes87184 commentedon Sep 20, 2020
You can find 32bit version in release page.
sandeepkumardev-zz commentedon Sep 27, 2020
I'm sorry, but maybe it's not safe. Here is the Virustotal report.
rom1v commentedon Sep 28, 2020
@repositories-hub #1102
sandeepkumardev-zz commentedon Sep 28, 2020
@rom1v ThankYou 🙏 😊
Yaniv-Aviran commentedon Oct 12, 2023
This feature stopped working on Android 14
rom1v commentedon Oct 13, 2023
#3927