15


How can I turn off the screen in the android emulator?


I am using android 2.3.3 version

Dhasneem
  • 4,037
  • 4
  • 33
  • 47
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80

1 Answers1

17

Try to press F7, which is the same as pressing the power button. Here is a complete list of shortcuts: http://developer.android.com/tools/help/emulator.html#controlling

vRallev
  • 4,982
  • 3
  • 31
  • 34
  • F7 works. And also a button in right menu (if available) that looks like a round turn-off button works. Maybe you should press it twice. – CoolMind Oct 23 '15 at 08:37
  • 4
    This crashes the emulator (Segmentation Fault error) on an API 23 emulator with x86 system image on Fedora 23. Other keyboard commands work just fine. – Voicu Feb 15 '16 at 03:30
  • 2
    For OSX - the answer of @Patrick Boos was unfortunately deleted - F7 did not work, however this does: `adb shell input keyevent 26` – Bruno Grieder Oct 09 '17 at 10:21