Screen Orientation in Raspberry Pi 3 with Android Things 0.5.1

685 views
Skip to first unread message

arcontech...@gmail.com

unread,
Aug 28, 2017, 7:40:07 PM8/28/17
to Android-rpi
Anyone knows how to display in portrait mode with Raspberry Pi 3, Android things 0.5.1, and a HDMI screen?
Ive tried lcd_rotation, display_rotation, and nothing seems to work. Any ideas?

matt...@umd.edu

unread,
Oct 7, 2017, 5:54:04 PM10/7/17
to Android-rpi
Any luck figuring this out? In 0.4.1 the following worked:

(https://stackoverflow.com/questions/41558508/screen-orientation-on-raspberry-pi-3-with-android-things)

If things are not rotated properly you can use the following commands to change the screen rotation.


First disable auto-rotation:

“adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0”


Set portrait:

“adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1”


Set landscape:

“adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0”


However, doesn't seem to work in 0.5.0 or 0.5.1. When my display is in portrait mode, it doesn't show up (Black Screen or completely broken screen) but when I turn it back to landscape I see a brief flash of the display rendered correctly (in portrait mode) before it switches (to landscape).
Reply all
Reply to author
Forward
Message has been deleted
0 new messages