Skip to content

Have phone screen off while mirroring on computer #175

Closed

Description

@WrathX

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.

Activity

  1. alambike commented on Jun 17, 2018

    @alambike

    👍 Disable phone screen will be a nice feature .

  2. 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
  3. rom1v commented on Jun 17, 2018

    @rom1v
    Collaborator

    Yes, that would be great. But I have no technical solution. See reddit comment.

  4. WrathX commented on Jun 18, 2018

    @WrathX
    Author

    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

  5. rom1v commented on Jun 18, 2018

    @rom1v
    Collaborator

    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.)

  6. WrathX commented on Jun 18, 2018

    @WrathX
    Author

    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.

  7. bonrry commented on Jun 18, 2018

    @bonrry
  8. Keneil-Thompson commented on Jun 18, 2018

    @Keneil-Thompson

    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

  9. cleberOliva commented on Aug 9, 2018

    @cleberOliva

    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.

  10. yrrah commented on Dec 21, 2018

    @yrrah

    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.

  11. Shinkiro1 commented on Feb 28, 2019

    @Shinkiro1

    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.

  12. rom1v commented on Mar 15, 2019

    @rom1v
    Collaborator

    Oh, I investigated a bit tonight, in fact it's quite easy:

    IBinder display = SurfaceControlgetBuiltInDisplay(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.

  13. rom1v commented on Mar 15, 2019

    @rom1v
    Collaborator

    If you are interested, here is my quick test: screenoff.

  14. vlad-cotfas commented on May 12, 2019

    @vlad-cotfas

    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.

  15. 29 remaining items

  16. sandeepkumardev-zz commented on Sep 19, 2020

    @sandeepkumardev-zz

    Which scrcpy version? Which Android version?

    Scrcpy v1.9 and Android 10. plz help 🙏

  17. rom1v commented on Sep 19, 2020

    @rom1v
    Collaborator

    Scrcpy v1.9

    That's very old. Just use the latest version.

  18. sandeepkumardev-zz commented on Sep 19, 2020

    @sandeepkumardev-zz

    Scrcpy v1.9

    That's very old. Just use the latest version.

    which one ??

  19. sandeepkumardev-zz commented on Sep 19, 2020

    @sandeepkumardev-zz

    Scrcpy v1.9

    That's very old. Just use the latest version.

    'ctrl + o' does not work in scrcpy (v1.16)

  20. rom1v commented on Sep 19, 2020

    @rom1v
    Collaborator

    Since v1.15, the shortcuts are bound to Alt by default, so it's Alt+o.

  21. sandeepkumardev-zz commented on Sep 19, 2020

    @sandeepkumardev-zz

    Since v1.15, the shortcuts are bound to Alt by default, so it's Alt+o.

    Thankyou 😊😊 'alt + o' work in v1.16. but how i can screen turned on.

  22. rom1v commented on Sep 19, 2020

    @rom1v
    Collaborator
  23. sandeepkumardev-zz commented on Sep 19, 2020

    @sandeepkumardev-zz

    Please read the doc: https://github.com/Genymobile/scrcpy#shortcuts

    Thank you so much 😊😊

  24. sandeepkumardev-zz commented on Sep 19, 2020

    @sandeepkumardev-zz

    Please read the doc: https://github.com/Genymobile/scrcpy#shortcuts

    sir where can i find it 32bit version.

  25. npes87184 commented on Sep 20, 2020

    @npes87184
    Contributor

    Please read the doc: https://github.com/Genymobile/scrcpy#shortcuts

    sir where can i find it 32bit version.

    You can find 32bit version in release page.

  26. sandeepkumardev-zz commented on Sep 27, 2020

    @sandeepkumardev-zz

    Please read the doc: https://github.com/Genymobile/scrcpy#shortcuts

    sir where can i find it 32bit version.

    You can find 32bit version in release page.

    I'm sorry, but maybe it's not safe. Here is the Virustotal report.

  27. rom1v commented on Sep 28, 2020

    @rom1v
    Collaborator

    @repositories-hub #1102

  28. sandeepkumardev-zz commented on Sep 28, 2020

    @sandeepkumardev-zz

    @rom1v ThankYou 🙏 😊

  29. Yaniv-Aviran commented on Oct 12, 2023

    @Yaniv-Aviran

    This feature stopped working on Android 14

  30. rom1v commented on Oct 13, 2023

    @rom1v
    Collaborator

    This feature stopped working on Android 14

    #3927

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions