Screen rotation from a command line ?

1,314 views
Skip to first unread message

Arobase40

unread,
Mar 30, 2011, 6:58:32 PM3/30/11
to Android-x86
Hi all,

Is there a command to cause a screen rotation from a console ?

I saw a command than should work within an emulator, but sounds like
it does not work with a real display :

# service call window 18 i32 1 -> to switch to landscape mode

and

# service call window 18 i32 0 -> to switch to portrait mode

When I tried one of these commands, I got this error message :

Result: 'Parcel(00000000 '....')

When these commands are issued within VirtualBox with Ubuntu, I get
the same result ?!?!?! ^^

Thx

Arobase40

unread,
Mar 31, 2011, 12:51:49 PM3/31/11
to Android-x86
bump

No idea anyone ?

Ikem Krueger

unread,
May 6, 2011, 8:07:00 PM5/6/11
to andro...@googlegroups.com
> 2011/3/31, Arobase40 <arob...@gmail.com>:

> Is there a command to cause a screen rotation from a console?

Do you want to rotate "tty" or "X"?

--
LXDE is looking for a new maintainer of LXPanel. So if you are a developer,
get in contact with us. :)

fonix232

unread,
May 7, 2011, 4:13:35 AM5/7/11
to andro...@googlegroups.com
I guess both, as even if the display output is rotated, the touch input isn't, and so it won't really work as expected.

Arobase40

unread,
May 7, 2011, 11:33:35 AM5/7/11
to Android-x86
Yes, both as I know this is possible with Linux with "simple" xrand
and xinput set-prop commands, as I'd like to do this as a test with a
key with the setkeycodes utility until I know how to program this as a
java command... ^^

If it's not possible I guess I'll have to spend some time to study the
Snake app and the Cyanogenmod source code, but that might times to
understand all the ins and outs... :(

Lu Patrick

unread,
Feb 13, 2012, 3:34:17 AM2/13/12
to andro...@googlegroups.com
any idea how to rotate entire screen and locked now? Gsensor hasnt been working yet on my asus eee slate [ep121] so i'd like to lock the orientation manually like cynogemod
Reply all
Reply to author
Forward
0 new messages