-
-
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
set display brightness #101
Comments
All of this can be achieved using a bash script. |
For completeness,
See #96.
😉 I still implemented show touches as an option. I don't know if brightness deserve its own option too… For now, I don't think so. |
Yeah you're right. A wrapper script is more than enough. For example, this is the function I'm using - function scrcpy () {
brightness=$(adb shell settings get system screen_brightness)
adb shell settings put system screen_brightness_mode 0
adb shell settings put system screen_brightness 0
adb shell svc power stayon usb
command scrcpy
adb shell settings put system screen_brightness_mode 1
adb shell settings put system screen_brightness $brightness
adb shell svc power stayon false
} |
👍 One question: I never used the As a suggestion, you could forward the arguments to scrcpy: command scrcpy "$@" |
The Totally forgot about passing the arguments. Thank you! |
A shortcut to turn device screen off is implemented on |
FYI Anyone have alternative options to set screen brightness on Android TV? |
It would be great if scrcpy could set device brightness to 0 on start and reset it on exit.
The current value can be accessed using
adb shell settings get system screen_brightness
, and can be set usingadb shell settings put system screen_brightness XX
where XX ranges from 0 to 255.On a side note, maybe a user can be allowed to run scripts at the start and exit of scrcpy.
The text was updated successfully, but these errors were encountered: