【发布时间】:2017-05-26 23:22:00
【问题描述】:
基本上我想要完成的是让一个矩形显示器横向(垂直方向),Android 显示器处于纵向位置。由于显示器的限制,虽然在显示器本身上旋转显示是不可行的。首先我设置禁用自动旋转,然后将其设置为纵向模式。
adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0
然后我尝试使用以下命令将分辨率更改为 1920x1080
adb shell wm size 1920x1080
然后这会将显示返回到横向模式。我宁愿通过 adb 或任何不需要额外软件的方法来完成此操作。
编辑:
为了澄清,我想在 Windows 计算机上模拟 CTRL+ALT+RIGHT ARROW,但最好通过 ADB 或除 3rd 方应用程序之外的任何其他方法在 android 设备上。
【问题讨论】:
-
你试过
adb shell wm size 1080x1920 -
是的,就是竖屏显示的分辨率,所以没有效果。
-
原生/原始屏幕分辨率是多少?
-
这是一个运行在 1920x1080 显示器上的开发板。
标签: android adb screen-orientation