树梅派屏幕旋转方法

旋转你的树莓派屏幕之前,首先要看你的树莓派用的是哪种显示驱动:

sudo raspi-config

打开树莓派的设置,进入Advanced Options - GL Driver

查看目前正在用哪种驱动,不同版本的raspbian的目录稍有差别,自己看就好了。

情况一:使用的是实验版的openGL驱动:
使用 xrandr  命令来旋转屏幕

xrandr -o left     to rotate to the left

我用这个命令直接就是可以用的了xrandr -o right     to rotate to the right

xrandr -o normal     to go back to a normal screen

xrandr -o inverted     to flip the screen upside down

注意:这个命令的效果是一次性的,重启之后就会恢复正常。

情况二:使用传统的驱动
修改启动配置文件

sudo nano /boot/config.txt

添加以下的某一行:

display_rotate=0           不旋转 Normal

display_rotate=1           转90 degrees

display_rotate=2           转180 degrees

display_rotate=3           转270 degrees

display_rotate=0x10000        左右翻转horizontal flip

display_rotate=0x20000        上下翻转vertical flip

链接:https://www.jianshu.com/p/657f6e113666

posted @   叕叒双又  阅读(682)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2017-06-02 《Programming in C》读书笔记
点击右上角即可分享
微信分享提示