Skip to content

[dashboard] keep device screen off while not building #4314

Closed
@yjbanov

Description

@yjbanov

We drain the battery too fast. We should:

  • keep device screen off, while not building
  • alert when battery level goes below 70%

Available tools

This tells you if the device is awake or not (Display Power: state=ON is another potential option):

adb shell dumpsys power | grep 'mWakefulness='

This virtually presses the power button (hence the need to check wakefulness first):

adb shell input keyevent 26

This virtually unlocks the screen:

adb shell input keyevent 82

This tells you the battery level:

adb shell dumpsys power | grep 'mBatteryLevel='

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions