How to disable screen lock during Android development?
There are other ways too. My favorite is:

$ adb shell svc power stayon true


See here: https://stackoverflow.com/questions/8840954/how-do-i-keep-my-screen-unlocked-during-usb-debugging