X 将屏幕顶部写入帧缓冲区的随机部分 - Xorg 问题?

X 将屏幕顶部写入帧缓冲区的随机部分 - Xorg 问题?

我有一台带有 SIS 显卡的华硕笔记本电脑。我安装 Debian 时生成的默认 Xorg(好吧,技术上是 Raspbian Desktop)是 640x480,但它可以轻松做得更好,因为它是 1280x800 屏幕,而 TinyCore 上的 Xvesa 能够很好地做到 1024x768x24。因此,我开始调整。首先,我尝试了最接近正确驱动程序的方法(在 Github 上找到),但即使编译后我也无法使其工作。然而,自从我知道它应该与 VESA 合作(因为 Xvesa 对此很满意),我将屏幕驱动程序设置为“vesa”,从生成的 Xorg 开始,并从那里断断续续地使用它大约一年。现在已经到了这样的地步几乎有效,但问题很奇怪:屏幕顶部的几个像素在它们应该在的地方是黑色的,而是写在其他地方。在加载 X 时,它们被写在底部,所以首先我假设存在一些偏移问题,但是当您移动鼠标时,屏幕刷新,并且此部分在屏幕缓冲区的看似随机的部分中的其他位置重绘(并从先前的位置擦除)当附近发生任何更新时)。我想我可以在 Xorg 中做一些事情来解决这个问题,但我不知道是什么。

我当前的 Xorg 如下(注释掉的行被保留作为我过去尝试过的证据):

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"
    FontPath     "/usr/share/fonts/X11/cyrillic"
    FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/Type1"
    FontPath     "/usr/share/fonts/X11/100dpi"
    FontPath     "/usr/share/fonts/X11/75dpi"
    FontPath     "built-ins"
EndSection

Section "Module"
        Load "dri"
#       Load "v4l"
        Load "extmod"
        Load "type1"
        Load "freetype"
        Load "glx"
        Load "GLcore"
        Load "i2c"
        Load "bitmap"
        Load "ddc"
        Load "int10"
        Load "vbe"
        Load "speedo"
        Load "record"
#       Load "dri2"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier  "Monitor0"
    Vendorname  "Generic LCD Display"
    Modelname   "LCD Panel 1280x800"
#   Horizsync   20 - 107
#   Vertrefresh 50 - 185
#   Horizsync   31.5 - 50.0
#   Vertrefresh 56.0 - 65.0
    Horizsync   31.5 - 48.0
#   Vertrefresh 50.0 - 70.0
    Vertrefresh 56.0 - 60.0
#   modeline    "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
#   modeline    "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
#   modeline    "1024x768@60" 74.48 1280 1336 1472 1664 720 721 724 746 -Hsync +Vsync
    modeline    "[email protected]" 23.75  640 664 720 800  480 483 487 500 -Hsync +Vsync
    modeline    "[email protected]" 38.25  800 832 912 1024  600 603 607 624 -Hsync +Vsync
    modeline    "1024x768@60" 63.50  1024 1072 1176 1328  768 771 775 798 -Hsync +Vsync
    modeline    "1280x768@60" 79.50  1280 1344 1472 1664  768 771 781 798 -hsync +vsync
    modeline    "1280x800@60" 83.46 1280 1344 1480 1680 800 801 804 828 -hsync +vsync
    Gamma       1.0
EndSection

Section "Server Flags"
        Option "IgnoreABI"
EndSection

Section "Device"
    Identifier  "Card0"
    VendorName  "Silicon Integrated Systems [SiS]"
    BoardName   "771/671 PCIE VGA Display Adapter"
    Busid   "PCI:1:0:0"
    Driver  "vesa"
    Screen 0
    Option   "DPMS"
        Option   "ShadowFB"
        Option   "MaxXFBMem"
##  Option   "AccelMethod"       "uxa"
    Option   "AccelMethod"       "EXA"
#   Option   "AccelMethod"       "XAA"
##        VideoRam           524032
        VideoRam             262016
    Option   "PreferredMode"         "1024x768"
    Option   "EnableSiSCtrl"         "true"
    Option   "UseFBDev"          "true"
    Option   "DRI"           "true"
    Option   "TurboQueue"            "true"
    Option   "FastVram"              "true"
    Option   "UseSSE"                "true"
#   Option   "UseTiming1280"         "true"
    Option   "RenderAccel"           "true"
    Option   "XAANoOffscreenPixmaps" "true"
    Option   "AllowGLXWithComposite" "true"
#   Option   "AddARGBGLXVisuals"     "true"
    Option   "backingstore"          "true"
#   Option   "TearFree"              "true"
#   Option   "TripleBuffer"          "true"
EndSection

Section "Screen"
        Identifier    "Screen0"
        Monitor       "Card0"
        Device        "Monitor0"
        Defaultdepth  24
        SubSection "Display"
        Viewport  0 0
            Depth     1
        Virtual   1024 768
#       Virtual   1280 800
            Modes     "1280x800@60"    "1280x768@60"    "1024x768@60"    "800x600@60"    "640x480@60"
#            Modes     "1280x800@60"    "1024x768@60"    "800x600@60"    "640x480@60"
        EndSubSection
        SubSection "Display"
        Viewport  0 0
            Depth     4
        Virtual   1024 768
#       Virtual   1280 800
            Modes     "1280x800@60"    "1280x768@60"    "1024x768@60"    "800x600@60"    "640x480@60"
#            Modes     "1280x800@60"    "1024x768@60"    "800x600@60"    "640x480@60"
        EndSubSection
        SubSection "Display"
        Viewport  0 0
            Depth     8
        Virtual   1024 768
#       Virtual   1280 800
            Modes     "1280x800@60"    "1280x768@60"    "1024x768@60"    "800x600@60"    "640x480@60"
#            Modes     "1280x800@60"    "1024x768@60"    "800x600@60"    "640x480@60"
        EndSubSection
        SubSection "Display"
        Viewport  0 0
            Depth     15
        Virtual   1024 768
#       Virtual   1280 800
            Modes     "1280x800@60"    "1280x768@60"    "1024x768@60"    "800x600@60"    "640x480@60"
#            Modes     "1280x800@60"    "1024x768@60"    "800x600@60"    "640x480@60"
        EndSubSection
        SubSection "Display"
        Viewport  0 0
            Depth     16
        Virtual   1024 768
#       Virtual   1280 800
            Modes     "1280x800@60"    "1280x768@60"    "1024x768@60"    "800x600@60"    "640x480@60"
#        Modes     "1280x800@60"    "1024x768@60"    "800x600@60"    "640x480@60"
        EndSubSection
        SubSection "Display"
        Viewport  0 0
            Depth     24
#       Virtual   1280 768
        Virtual   1024 768
#       Virtual   1280 800
        Modes     "1280x800@60"    "1280x768@60"    "1024x768@60"    "800x600@60"    "640x480@60"
        EndSubSection
EndSection

Section "DRI"
    Mode         0666
EndSection
# 1024x768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHz
# 640x480 59.38 Hz (CVT 0.31M3) hsync: 29.69 kHz; pclk: 23.75 MHz
# 800x600 59.86 Hz (CVT 0.48M3) hsync: 37.35 kHz; pclk: 38.25 MHz
# 1280x768 59.87 Hz (CVT) hsync: 47.78 kHz; pclk: 79.50 MHz

加载后立即屏幕显示

加载后立即屏幕显示

稍后放映

稍后放映

菜单屏幕

菜单屏幕

关机时的屏幕

关机时的屏幕

相关内容