使用Android的Raspberry Pi 3屏幕方向

Bib*_*ibu 10 android raspberry-pi raspberry-pi3 android-things

我刚买了一台带有7英寸显示屏触摸屏和外壳的Raspberry Pi 3.

不幸的是,外壳不允许我手动旋转屏幕,所以我的应用程序颠倒了.

我尝试使用以下adb命令从控制台执行此操作,但没有运气:

adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
Run Code Online (Sandbox Code Playgroud)

然后

adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
Run Code Online (Sandbox Code Playgroud)

要么

adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:3
Run Code Online (Sandbox Code Playgroud)

有没有办法从配置标志直接执行它,从启动处理屏幕方向?

Bib*_*ibu 9

我终于找到了如何实现它.

解决方案在那里发现:Android Things配有Rasp3 7英寸触摸屏

您必须从笔记本电脑上的SD卡安装启动分区并编辑该/boot/config.txt文件并添加以下行:

lcd_rotate=2
Run Code Online (Sandbox Code Playgroud)

通过添加此线,显示屏和触摸屏都将旋转,与display_rotate=2仅旋转显示屏和触摸屏保持倒置的情况相比.

  • @QuintinBalsdon,我使用了以下命令`sudo mount -t msdos/dev/disk4s1/mnt/sd`,其中`4`是我可以使用Mac OS Disk Utility找到的SD卡号码 (2认同)