Categories
Technical

Waking up an android device with adb

When working with development boards…one of the most irritating item is the screen going off, and the screen locking. It gets irritating because I dont usually have a mouse handy and keep forgetting to make the effort of making sure the screen does not lock.

A quick fix…

adb shell input keyevent KEYCODE_POWER 
adb shell input touchscreen swipe 930 880 930 380

I put both together because most cases I need to run both together.

The right way…use an adb display tool like vysor and use the laptop mouse. This is just a quick way to wake it up.

The right way to do this would be to set it not to lock the screen…and to do that without the mouse (maybe you should go find a mouse!)…

P.s. This works for me on the dragonboard 410c.

P.p.s. This may not work if you have a phone with a lock pattern or key code. This is more or less for an unlocked screen.

Leave a comment