Obtain screen status using ADB
dumpsys power | grep mScreenOn
On 5.0 it looks like you have to grep the dumpsys power
output for
Display Power: state=OFF
or
Display Power: state=ON
dumpsys power | grep mScreenOn
On 5.0 it looks like you have to grep the dumpsys power
output for
Display Power: state=OFF
or
Display Power: state=ON