Skip to content
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

question: determine state of connected tv/display #143

Open
wewa00 opened this issue Jan 2, 2020 · 3 comments
Open

question: determine state of connected tv/display #143

wewa00 opened this issue Jan 2, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@wewa00
Copy link

wewa00 commented Jan 2, 2020

Hello,

is it possible to determine the state of the display/tv where the Fire TV is connected to? Or do you know the corresponding adb commands?

I would need to check if the TV/display is powered regardless if the TV is displaying data from the Fire TVs HDMI port or any other port.

Best regards,
wewa

@JeffLIrion
Copy link
Owner

I don't know how to do that or if it's possible.

@JeffLIrion
Copy link
Owner

Maybe something from here could work: https://stackoverflow.com/questions/7527459/how-to-get-the-android-device-screen-size-from-the-adb-command-line

Check the output of various dumpsys display, dumpsys window, dumpsys power, and getprop commands and see if you notice a difference when your TV is on vs. off.

@wewa00
Copy link
Author

wewa00 commented Jan 7, 2020

Thank you for your hints.
I found out, that AUIDO_PLUG_STATE changes if TV is on or not.

Just run adb shell dumpsys activity | grep -m 1 "AUDO_PLUG_STATE".
You will find android.media.extra.AUDIO_PLUG_STATE=0 if TV is off and android.media.extra.AUDIO_PLUG_STATE=1 if TV is on.

But I did not find an option to check if TV is streaming from the HDMI port where the Fire TV stick is plugged into so far.

@JeffLIrion JeffLIrion added the enhancement New feature or request label Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants