Skip to content

Commit

Permalink
Fix CMD_SCREEN_ON constant in accordance with JeffLIrion#323
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor4X committed Nov 23, 2022
1 parent b1425b1 commit 862a992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion androidtv/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class DeviceEnum(IntEnum):

#: Determine if the device is on
CMD_SCREEN_ON = (
"(dumpsys power | grep 'Display Power' | grep -q 'state=ON' || dumpsys power | grep -q 'mScreenOn=true')"
"(dumpsys power | grep 'Display Power' | grep -q 'state=ON' || dumpsys power | grep -q 'mScreenOn=true' || dumpsys display | grep -q 'mScreenState=ON')"
)

#: Get the "STREAM_MUSIC" block from ``dumpsys audio``
Expand Down

0 comments on commit 862a992

Please sign in to comment.