显示旋转教程

此教程只适用与xfce桌面版系统,QT版本系统无法使用

要在现有的xorg.conf文件中添加屏幕旋转配置,请按照以下步骤操作:

  1. 打开 xorg.conf 文件

    sudo vim /etc/X11/xorg.conf

    i 键进入插入模式。

  2. 添加屏幕旋转配置
    在文件末尾或适当位置添加以下内容:

    Section "Device"
        Identifier "Allwinner Graphics"
        Driver "fbdev"
        Option "Rotate" "CCW"
    EndSection
    
    Section "Screen"
        Identifier "Default Screen"
        Device "Allwinner Graphics"
        Monitor "Default Monitor"
        DefaultDepth 24
        SubSection "Display"
            Depth 24
            Modes "1024x600"
        EndSubSection
    EndSection
    
    Section "Monitor"
        Identifier "Default Monitor"
        Option "Rotate" "left"
    EndSection
  3. 保存并退出
    Esc 键退出插入模式,然后输入 :wq 保存并关闭文件。

  4. 重启系统
    应用更改需要重启系统:

    sudo reboot
作者:lzx  创建时间:2025-02-13 13:40
最后编辑:lzx  更新时间:2025-04-16 11:40