-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to power-off at start #3148
Comments
In fact, unless Do you want to work on it? |
@rom1v this does indeed look like it should be easy to do, but those are famous last words… I haven't done Java in more than 2 decades, and I've never actually developed for Android, I wouldn't even know how to test this… or are there any easy resources I can peruse to get me started? |
You need to add a command line option, and propagate it to the server. It's very similar to ccbe370 which adds the In addition, you should also add the option in bash-completion and zsh-completion scripts, which were written after |
I implemented it: #3210. Please review/test. |
@rom1v Sorry I have not responded earlier. I'm in the process of moving to another country, so there's lot in the air. I've just tested this, and it seems to work beautifully. Thank you! |
FYI, it does not work with a Google Pixel 3 with stock ROM. |
@madduck So with scrcpy v1.24, if you execute |
No, if the display is off, then it works. I see where the problem is:
The Samsung Galaxy S7 and the OnePlus 5T do not turn the display on when USB is connected, so that is the difference. Sorry for the noise. |
I had the "Stay Awake" developer option on. Oops. |
I have a device permanently living next to my computer, and I use the systemd integration from #3101, so basically I always have scrcpy running. Unless I power-off (Alt-P), scrcpy will occupy the CPU all time (#3112). I am looking for an option that automatically hits the power button after connection, similarly to how
--turn-screen-off
just turns the device screen off. This would allow auto-connection, but without involving the CPU too much until I need to interact.Thanks!
The text was updated successfully, but these errors were encountered: