ConstStar
发布于 2024-03-15 / 46 阅读 / 0 评论 / 0 点赞

xinit/startx启动界面程序显示不完整、不能全屏

问题

在命令行模式(init3)下使用xinit或者startx启动界面程序,只显示一半的屏幕
如:

startx chromium

解决方法

修改/etc/X11/xorg.confDevice中的FlipFB"none"

完整配置内容:

Section "Device"
    Identifier  "Rockchip Graphics"
    Driver      "modesetting"

### Use Rockchip RGA 2D HW accel
#    Option      "AccelMethod"    "exa"

### Use GPU HW accel
    Option      "AccelMethod"    "glamor"

    Option      "DRI"            "2"

### Set to "always" to avoid tearing, could lead to up 50% performance loss
    Option      "FlipFB"         "none"

### Limit flip rate and drop frames for "FlipFB" to reduce performance lost
#    Option      "MaxFlipRate"    "60"

    Option      "NoEDID"          "true"
    Option      "UseGammaLUT"     "true"
EndSection

Section    "Screen"
    Identifier    "Default Screen"
    Device    "Rockchip Graphics"
    Monitor    "Default Monitor"
EndSection

### Valid values for rotation are "normal", "left", "right"
Section    "Monitor"
    Identifier    "Default Monitor"
    Option    "Rotate" "normal"
EndSection

评论