圖形界面螢幕解析度

  1. 以新產生核心版本 4.18.20-1 的 initramfs,且核心參數維持 i915.modeset=1 開機。但依然無法進入圖形界面,必須新增 xorg 設定 Driver 為 modesetting。
    [root@dywmsi ~]# vim /etc/X11/xorg.conf.d/20-displaylink.conf 
    [root@dywmsi ~]# cat /etc/X11/xorg.conf.d/20-displaylink.conf 
    Section "Device"
        Identifier  "DisplayLink"
        Driver      "modesetting"
        Option      "AccelMethod" "none"
    EndSection
    
  2. 成功進入圖形界面。
    [dywang@dywmsi ~]$ startx
    
  3. 進入圖形界面後,螢幕解析度也可調整了,HDMI 也沒問題。
    [dywang@dywmsi ~]$ xrandr   
    Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
    eDP-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
       1920x1080     60.01*+
       1400x1050     59.98  
       1280x1024     60.02  
       1280x960      60.00  
       1024x768      60.04    60.00  
       960x720       60.00  
       928x696       60.05  
       896x672       60.01  
       800x600       60.00    60.32    56.25  
       700x525       59.98  
       640x512       60.02  
       640x480       60.00    59.94  
       512x384       60.00  
       400x300       60.32    56.34  
       320x240       60.05  
    HDMI-0 disconnected (normal left inverted right x axis y axis)
      1920x1080 (0x297) 148.500MHz
            h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
            v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz