好吧,我现在已经全力解决这个问题 6 天了(之前的尝试已经超过两周了)。
我的问题是设置 Linux Mint,并将外部显示器插入我的笔记本电脑。
我已经尝试了网上能找到的所有建议,但都没有成功。现在我准备因为尝试和失败而损坏我的笔记本电脑!
我的系统和硬件
- 笔记本电脑:华硕 X5DC
lspci | grep -i vga
输出:01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter (rev 10)
- 外接显示器:优派 VX912
xrandr
输出:xrandr: Failed to get size of gamma for output default Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768 default connected primary 1024x768+0+0 0mm x 0mm 1024x768 76.0* 1504x1200_60.00 (0x1ab) 151.4MHz h: width 1504 start 1608 end 1768 total 2032 skew 0 clock 74.5KHz v: height 1200 start 1201 end 1204 total 1242 clock 60.0Hz
sudo lshw -C video
输出:*-display UNCLAIMED description: VGA compatible controller product: 771/671 PCIE VGA Display Adapter vendor: Silicon Integrated Systems [SiS] physical id: 0 bus info: pci@0000:01:00.0 version: 10 width: 32 bits clock: 66MHz capabilities: pm agp agp-3.0 vga_controller cap_list configuration: latency=0 resources: memory:d0000000-dfffffff memory:fe9e0000-fe9fffff ioport:dc00(size=128)
我已经尝试过了
多次编辑 /etc/X11/xorg.conf,有时 X 无法启动,所以我不得不从 tty 终端撤消更改并重新启动。这是我当前的 xorg.conf:
Section "ServerLayout" Identifier "X.org Configured" Screen "Screen0" LeftOf "Screen1" EndSection Section "Monitor" Identifier "Configured Monitor" VendorName "Monitor Vendor" ModelName "Monitor Model" HorizSync 28-72 VertRefresh 43-60 EndSection Section "Device" Identifier "Card0" Driver "sis" BusID "PCI:1:0:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 Modes "900x675" "1024x768" "1280x960" "1400x1050" EndSubSection SubSection "Display" Viewport 0 0 Depth 8 Modes "900x675" "1024x768" "1280x960" "1400x1050" EndSubSection SubSection "Display" Viewport 0 0 Depth 15 Modes "900x675" "1024x768" "1280x960" "1400x1050" EndSubSection SubSection "Display" Viewport 0 0 Depth 16 Modes "900x675" "1024x768" "1280x960" "1400x1050" EndSubSection SubSection "Display" Viewport 0 0 Depth 24 Modes "900x675" "1024x768" "1280x960" "1400x1050" EndSubSection EndSection Section "Screen" Identifier "Screen1" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 Modes "1280x1024" "1500x1200" "1640x1312" EndSubSection SubSection "Display" Viewport 0 0 Depth 4 Modes "1280x1024" "1500x1200" "1640x1312" EndSubSection SubSection "Display" Viewport 0 0 Depth 8 Modes "1280x1024" "1500x1200" "1640x1312" EndSubSection SubSection "Display" Viewport 0 0 Depth 15 Modes "1280x1024" "1500x1200" "1640x1312" EndSubSection SubSection "Display" Viewport 0 0 Depth 16 Modes "1280x1024" "1500x1200" "1640x1312" EndSubSection SubSection "Display" Viewport 0 0 Depth 24 Modes "1280x1024" "1500x1200" "1640x1312" EndSubSection EndSection
`
我已将以下 .conf 文件添加到 /usr/share/X11/xorg.conf.d:
41-built-in-monitor.conf 其中包含:
Section "Monitor" Identifier "Monitor0" VendorName "Built in Monitor" ModelName "Model Unknown" HorizSync 28.0 - 70.0 VertRefresh 56.0 - 75.0 EndSection
42-second-vga-monitor.conf 其中包含:
Section "Monitor" Identifier "Monitor1" VendorName "ViewSonic" ModelName "VX912" Option "RightOf" "Monitor0" HorizSync 28.0 - 70.0 VertRefresh 56.0 - 75.0 Endsection
50-video.conf 其中包含:
Section "Device" Identifier "Device2" Option "Monitor-Built-In" "Monitor0" Option "Monitor-VGA" "Monitor1" Driver "sis" EndSection
sudo update-pciids
gtf 1500 1200 60 -x
输出:# 1504x1200 @ 60.00 Hz (GTF) hsync: 74.52 kHz; pclk: 151.42 MHz Modeline "1504x1200_60.00" 151.42 1504 1608 1768 2032 1200 1201 1204 1242 -HSync +Vsync
xrandr --newmode "1504x1200_60.00" 151.42 1504 1608 1768 2032 1200 1201 1204 1242 -HSync +Vsync
输出:xrandr: Failed to get size of gamma for output default X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 16 (RRCreateMode) Serial number of failed request: 19 Current serial number in output stream: 19
xrandr --addmode VGA1 1504x1200_60.00
输出:xrandr: Failed to get size of gamma for output default xrandr: cannot find output "VGA1"
xrandr --output VGA1 --mode 1504x1200_60.00
输出:xrandr: Failed to get size of gamma for output default warning: output VGA1 not found; ignoring
我发现了更多建议,事实上我已经尝试过很多事情,即使我记得,我也无法在这里列出它们!
Mate Monitor Preferences 无法识别外部显示器(显然)。
Arandr 的行为就好像我只有“默认”监视器一样。
我的系统在两个屏幕上都显示,但是不是单独地,就像两台显示器上的一样,所以显示器可以工作,VGA 适配器也可以工作,显卡可以输出到两者,只是不是一个正确的双显示器设置。
如果有人知道 ~/.config/monitors.xml 到底是做什么用的?