Previously with Android 4.1, doing something like:
adb shell input keyevent 82 #(KEYCODE_MENU)
would unlock the screen at first boot and would then allow further commands to launch applications and have them displayed on the screen, etc.
With 4.2, within 10s of boot, the lockscreen dims to black. Issuing the same ADB command no longer works and the screen remains blank.
If I manually press the menu key, this brings the screen back on, and I can then issue the keyevent to unlock the screen.
Any ideas how I can bring the display back up from ADB and unlock the screen from there?