带有 Rasp3 7 英寸触摸屏的 Android Things [英] Android Things with Rasp3 7 inch touchscreen

查看:35
本文介绍了带有 Rasp3 7 英寸触摸屏的 Android Things的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的 Rasp3 安装了 Android Things OS 映像并成功启动并使用 adb 登录到 shell,但 lcd 显示器与我的 7 英寸触摸屏显示器颠倒了.

I have Android Things OS image installed for my Rasp3 and successfully booted up and log in to shell using adb, but lcd display is upside down with my 7 inch touchscreen display.

我想知道 Raspbian 上的/boot/config.txt 中是否有像 lcd_rotate=2 这样的配置?

I wonder if there is config like lcd_rotate=2 in /boot/config.txt on Raspbian?

推荐答案

您可以尝试手动从sdcard挂载启动分区并编辑config.txt

You can try to manually mount the boot partition from the sdcard and edit config.txt

mount -t msdos /dev/sdX1 /mnt/disk
echo 'lcd_rotate=2' >> /mnt/disk/config.txt

/dev/sdX1 指向您的 SD 卡读卡器设备的位置.

Where /dev/sdX1 points to your sdcard reader device.

注意:这与其说是官方支持的解决方案,不如说是一种黑客行为,每次升级操作系统映像时,您都必须重新执行该操作.提交功能请求 要求更好地支持(动态?)显示配置

Note: This is more a hack than an officially supported solution, you will have to re-do that operation everytime you upgrade the OS image. It'd be nice to file a feature request to ask for better support for (dynamic?) display configuration

这篇关于带有 Rasp3 7 英寸触摸屏的 Android Things的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆