How do we change emulator screen orientation to landscape or portrait?
My virtual device could not be rotated. Go to the device list, click settings and change the predefined resolution.
Use function + 9 for HP laptops. Others keys specified in previous answers didn't work for me.
Super->Ctrl_L->F12 works for me on Fedora 23
Android Emulator Shortcuts
Ctrl+F11 Switch layout orientation portrait/landscape backwards
Ctrl+F12 Switch layout orientation portrait/landscape forwards
Home Home Button
F2 Left Softkey / Menu / Settings button (or Page up)
Shift+F2 Right Softkey / Star button (or Page down)
Esc Back Button
F3 Call/ dial Button
F4 Hang up / end call button
F5 Search Button
Ctrl+F5 Volume up (or + on numeric keyboard with Num Lock off) Ctrl+F6 Volume down (or + on numeric keyboard with Num Lock off) F7 Power Button Ctrl+F3 Camera Button
Ctrl+F11 Switch layout orientation portrait/landscape backwards
Ctrl+F12 Switch layout orientation portrait/landscape forwards
F8 Toggle cell network
F9 Toggle code profiling
Alt+Enter Toggle fullscreen mode
F6 Toggle trackball mode
On Ubuntu none of the keys (Ctrl+F11/F12 or numpad 7/numpad 9) worked for me. But I can rotate the emulator sending the keys with xdotool.
For example for a VM named "Galaxy_Nexus" I can rotate the emulator with:
xdotool search --name "Galaxy" key "ctrl_L+F11"
In my notebook, Dell Latitude E4310, the Ctrl+F12 keys do the job.