好吧,我現在已經全力解決這個問題 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 到底是做什麼用的?