更改本机笔记本电脑屏幕分辨率时,xrandr“无法打开显示”

更改本机笔记本电脑屏幕分辨率时,xrandr“无法打开显示”

我可以毫无问题地调整与 xrandr 连接的任何外部显示器的设置。但是,使用 xrandr 更改任何设置后,我的主笔记本电脑屏幕将变黑。启动进入恢复终端后,我在运行时遇到“无法打开显示”xrandr -q

我的笔记本电脑的原始分辨率是 3840x2160 60hz,我尝试使用支持的模式或使用--scale 0.5x0.5

该笔记本电脑是一台 Lenovo X1 Extreme,运行带有 nouveau 驱动程序的 Void Linux。

我的/etc/X11/xorg.conf:

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/TTF"
    FontPath     "/usr/share/fonts/X11/OTF"
    FontPath     "/usr/share/fonts/X11/Type1"
    FontPath     "/usr/share/fonts/X11/100dpi"
    FontPath     "/usr/share/fonts/X11/75dpi"
EndSection

Section "Module"
#   Load  "glx-xorg"
#   Load  "vnc"
    Load  "glx"
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   "Monitor Vendor"
    ModelName    "Monitor Model"
        Modeline "3440x1440R"  319.75  3440 3488 3520 3600  1440 1443 1453 1481 +hsync -vsync
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"              # [<bool>]
        #Option     "HWcursor"              # [<bool>]
        #Option     "NoAccel"               # [<bool>]
        #Option     "ShadowFB"              # [<bool>]
        #Option     "VideoKey"              # <i>
        #Option     "WrappedFB"             # [<bool>]
        #Option     "GLXVBlank"             # [<bool>]
        #Option     "ZaphodHeads"           # <str>
        #Option     "PageFlip"              # [<bool>]
        #Option     "SwapLimit"             # <i>
        #Option     "AsyncUTSDFS"           # [<bool>]
        #Option     "AccelMethod"           # <str>
        #Option     "DRI"                   # <i>
        Option      "ModeValidation"            "AllowNonEdidModes"
    Identifier  "Card0"
    Driver      "nouveau"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     24
                Modes    "1920x1080"
    EndSubSection
EndSection

连接外部显示器时 xrandr -q 的输出:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.00*+
   3840x2160     60.00 +
   3440x1440R    59.97  
   1920x1200     59.95  
   1600x1200     59.95  
   1680x1050     60.00  
   1400x1050     60.00  
   1280x1024     59.95  
   1280x960      59.99  
   1152x864      59.97  
   1024x768      59.95  
   800x600       59.96  
   640x480       59.94  
   720x400       59.97  
   640x400       59.96  
   640x350       59.84  
HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 298mm
   1920x1080     60.00*+  50.00    59.94    24.00    23.98  
   1920x1080i    60.00    50.00    59.94  
   1280x1024     75.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768     119.99    99.97    75.03    60.00  
   832x624       74.55  
   800x600      119.97    99.99    75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480      119.99   100.00    75.00    60.00    59.94  
   720x400       70.08  

eDP-1 是我的本机笔记本电脑显示器,HDMI-1 是外部显示器。目前,如果我在断开外部显示器的情况下启动,笔记本电脑将启动进入黑屏,并出现“无法打开显示器”问题。在连接外部显示器的情况下启动时,笔记本电脑屏幕仍然变黑,但显示器按预期工作。

谢谢。

相关内容