我使用 AOC Q3279VWF 作为显示器,但只能达到 1920x1080 分辨率。我想实现显示器的完整 2560x1440 分辨率。这在显示设置以及 xrandr 中都列为一个选项,但当我切换到此模式时屏幕变黑。
sudo lshw 的 Pastebin:https://pastebin.ubuntu.com/p/RR76KcVKKk/
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] (prog-if 00 [VGA controller])
DeviceName: Onboard IGD
Subsystem: Dell CoffeeLake-H GT2 [UHD Graphics 630]
Flags: bus master, fast devsel, latency 0, IRQ 144
Memory at eb000000 (64-bit, non-prefetchable) [size=16M]
Memory at 80000000 (64-bit, prefetchable) [size=256M]
I/O ports at 4000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
Subsystem: Dell GP107M [GeForce GTX 1050 Ti Mobile]
Flags: bus master, fast devsel, latency 0, IRQ 146
Memory at ec000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=32M]
I/O ports at 3000 [size=128]
Expansion ROM at ed000000 [virtual] [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [250] Latency Tolerance Reporting
Capabilities: [258] L1 PM Substates
Capabilities: [128] Power Budgeting <?>
Capabilities: [420] Advanced Error Reporting
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] Secondary PCI Express
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
我不知道这是否相关,但有一件事让我很好奇,那就是 xrandr -q 将我的 HDMI 连接列为显示端口(DP-3)。
非常感谢所有的帮助。
编辑:灵感来自这解决方案,我决定尝试同样的方法。使用 read-edid 包,我检索了显示器的 EDID,如下所示:
sudo get-edid -b 11 | parse-edid
1
1
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
Only trying 11 as per your request.
256-byte EDID successfully retrieved from i2c bus 11
Looks like i2c was successful. Have a good day.
Checksum Correct
Section "Monitor"
Identifier "Q3279WG5B"
ModelName "Q3279WG5B"
VendorName "AOC"
# Monitor Manufactured week 43 of 2017
# EDID version 1.3
# Digital Display
DisplaySize 730 430
Gamma 2.20
Option "DPMS" "true"
Horizsync 30-114
VertRefresh 48-76
# Maximum pixel clock is 300MHz
#Not giving standard mode: 1920x1080, 60Hz
#Not giving standard mode: 1680x1050, 60Hz
#Not giving standard mode: 1440x900, 60Hz
#Not giving standard mode: 1280x1024, 60Hz
#Not giving standard mode: 1280x960, 60Hz
#Not giving standard mode: 1280x720, 60Hz
#Extension block found. Parsing...
Modeline "Mode 13" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
Modeline "Mode 0" 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync +vsync
Modeline "Mode 1" 296.00 2560 2568 2600 2666 1440 1443 1448 1481 +hsync -vsync
Modeline "Mode 2" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
Modeline "Mode 3" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
Modeline "Mode 4" 74.250 1920 2008 2052 2200 1080 1082 1087 1125 +hsync +vsync interlace
Modeline "Mode 5" 74.250 1920 2448 2492 2640 1080 1082 1089 1125 +hsync +vsync interlace
Modeline "Mode 6" 74.250 1280 1390 1420 1650 720 725 730 750 +hsync +vsync
Modeline "Mode 7" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
Modeline "Mode 8" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
Modeline "Mode 9" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
Modeline "Mode 10" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
Modeline "Mode 11" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
Modeline "Mode 12" 25.200 640 656 752 800 480 490 492 525 -hsync -vsync
Modeline "Mode 14" 27.00 720 736 798 858 480 489 495 525 -hsync -vsync
Modeline "Mode 15" 27.00 720 732 796 864 576 581 586 625 -hsync -vsync
Modeline "Mode 16" 156.00 1280 1376 1512 1744 1440 1443 1453 1493 -hsync +vsync
Option "PreferredMode" "Mode 13"
EndSection
从该列表中,我检测到两种使用 4K 分辨率的模式,即模式 0 和模式 1。然后,我将这两种模式作为新模式添加到 xrandr 中,如下所示:
xrandr --newmode "Mode0" 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync +vsync
xrandr --newmode "Mode1" 296.00 2560 2568 2600 2666 1440 1443 1448 1481 +hsync -vsync
xrandr --addmode DP-3 "Mode0"
xrandr --addmode DP-3 "Mode1"
但是,当我使用 进行设置时xrandr --output DP-3 --mode Mode1
,屏幕变暗,就像使用预设的 2560x1440 模式时一样。