Debian

無法設置正確的顯示解析度

  • December 14, 2017

我有目前的 Debian 測試,無法為顯示 dell U2718Q 設置解析度:

# inxi -Gxx
Graphics:  Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
          bus-ID: 00:02.0 chip-ID: 8086:0116
          Display Server: x11 (X.Org 1.19.5 ) drivers: intel
          Resolution: 1920x1080@60.00hz
          OpenGl: renderer: Mesa DRI Intel Sandybridge Mobile
          version: 3.3 Mesa 17.2.5 (compat-v: 3.0) Direct Render: yes

/etc/X11/xorg.conf:

Section "Device"
   Indentifier  "Intel Graphics"
   Driver       "intel"
   Option       "AccelMethod" "sna"
   Option       "TearFree" "true"
EndSection

但這對解決問題沒有幫助。

我嘗試設置:

# xrandr --output HDMI-1 --mode 3840x2160_60.00
xrandr: Configure crtc 0 failed

我也嘗試了選項–crtc,但沒有結果。

xrandr 輸出:

# xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 
LVDS-1 connected (normal left inverted right x axis y axis)
  1366x768      60.10 +
  1360x768      59.80    59.96  
  1024x768      60.04    60.00  
  960x720       60.00  
  928x696       60.05  
  896x672       60.01  
  960x600       60.00  
  960x540       59.99  
  800x600       60.00    60.32    56.25  
  840x525       60.01    59.88  
  800x512       60.17  
  700x525       59.98  
  640x512       60.02  
  720x450       59.89  
  640x480       60.00    59.94  
  680x384       59.80    59.96  
  576x432       60.06  
  512x384       60.00  
  400x300       60.32    56.34  
  320x240       60.05  
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 609mm x 349mm
  2048x1280     59.99  
  2048x1080     24.00  
  1920x1080     60.00*   60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98  
  1920x1080i    60.00    50.00    59.94    50.00  
  1600x1200     60.00  
  1600x900      60.00  
  1280x1024     75.02    60.02  
  1152x864      75.00  
  1280x720      60.00    50.00    59.94  
  1024x768      75.03    60.00  
  800x600       75.00    60.32  
  720x576       50.00  
  720x576i      50.00  
  720x480       60.00    59.94  
  720x480i      60.00    59.94  
  640x480       75.00    60.00    59.94  
  720x400       70.08  
  3840x2160_60.00  59.98  
DP-1 disconnected (normal left inverted right x axis y axis)

我安裝了 xserver-xorg-video-intel、xserver-xorg-video-all、xserver-xorg-core 軟體包。

請任何幫助。

更新:

處理器:Intel Core i5-2467M CPU @ 1.60GHz x 2

埠:HDMI 2.0

/var/log/Xorg.0.log

[    18.449] (II) LoadModule: "intel"
[    18.456] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[    18.469] (II) Module intel: vendor="X.Org Foundation"
[    18.469]    compiled for 1.19.0, module version = 2.99.917
[    18.469]    Module class: X.Org Video Driver
[    18.469]    ABI class: X.Org Video Driver, version 23.0
[    18.469] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
       915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
       Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
       GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    18.470] (II) intel: Driver for Intel(R) HD Graphics
[    18.470] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    18.470] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    18.490] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20170403
[    18.490] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.917+git20161206-1 (Timo Aaltonen <tjaalton@debian.org>)
[    18.490] (II) intel(0): SNA compiled for use with valgrind
[    18.494] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 3000

Sandy Bridge 的輸出沒有足夠的頻寬來支持您的顯示器在 60Hz 的全解析度,但是應該可以創建一種模式來幫助您到達那裡。

本文詳細介紹了計算過程。在您的情況下,重要的因素是您的顯示器的原始解析度為 3840×2160,並且 HDMI 1.4 的最大像素時鐘為 340MHz。使用umc,我們可以使用它來確定合適的模式線:

$ umc 3840 2160 340000000

   # 3840x2160x30.00 @ 65.994kHz
   Modeline "3840x2160x30.00"  340.000000  3840 4080 4496 5152  2160 2164 2168 2200  -HSync +VSync

要試試這個,執行

xrandr --newmode "3840x2160x30.00"  340.000000  3840 4080 4496 5152  2160 2164 2168 2200  -HSync +VSync
xrandr --addmode HDMI-1 "3840x2160x30.00"
xrandr --output HDMI-1 --mode "3840x2160x30.00"

如果它對集成 GPU 來說太高了,或者顯示器不喜歡它,你可以嘗試減少像素時鐘,或者減少消隱時間(在現代螢幕上應該沒問題):

$ umc 3840 2160 30 --rbt

   # 3840x2160x29.98 @ 65.688kHz
   Modeline "3840x2160x29.98"  262.750000  3840 3888 3920 4000  2160 2163 2167 2191  +HSync -VSync

一旦你有了工作模式行,你可以通過添加一個配置文件來永久儲存它,比如/etc/X11/xorg.conf.d/30-hdmi-4k.conf,包含:

Section "Monitor"
   Identifier "HDMI-1"
   ModelName "Your monitor"
   Modeline "3840x2160x29.98"  262.750000  3840 3888 3920 4000  2160 2163 2167 2191  +HSync -VSync
EndSection

引用自:https://unix.stackexchange.com/questions/410688