Ubuntu 9.10 雙螢幕設定 xorg.conf - Linux
By Noah
at 2009-11-02T21:24
at 2009-11-02T21:24
Table of Contents
1. 用 window 的 powerstrip 抓出正確的 modeline
http://0rz.tw/3aqjy
記得要調正確的解析度。
powerstrip 是國產軟體,綜看 windows 和 linux,
好像沒有其它程式有類似的功能。
要好好謝謝作者。
2. 在終端機 (Terminal)內用 xrandr 找正確的接口名稱,
不同的顯示卡驅動程式有不同的名稱。
$xrandr
Screen 0: minimum 320 x 200, current 1400 x 1050, maximum 2048 x 1152
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
LVDS connected 1400x1050+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1400x1050 60.2*+
1280x800 60.0
1280x768 60.0
1024x768 60.0 75.0
800x600 60.3
640x480 59.9
S-video disconnected (normal left inverted right x axis y axis)
以上例而言就是 LVDS (筆電螢幕) 和 DVI-0 (或 VGA-0) (外接)
3. 設定 root 的密碼
$sudo passwd root
4. 參考下面的附檔修改 xorg.conf
$sudo gedit /etc/X11/xorg.conf
(X11 的 X 要大寫)
有幾行要改
4.1 Virtual 2624 1200
我外接是 1600x1200,筆電是 1024x768
螢幕左右放置,所以 Virtual Display 的寬度是 1600+1024 = 2624,
高度是 1200
4.2 Section "Device"
如果你原來的 xorg.conf 的這部份有其它設定,
記得要保留下來只改下面兩行。
Option "Monitor-LVDS" "T42"
Option "Monitor-DVI-0" "2007FP"
把 LVDS 和 DVI-0 改成上面用 xrandr 找到的接口名稱,
T42 和 2007FP 可以改你喜歡的名稱。
4.3 Section "Monitor" (兩個都要改)
4.3.1 Identifier 的名稱要和 4.2 內改的一樣
4.3.2 Modeline 用 powerstrip 找出的參數
4.3.3 "PreferredMode" 要對上 Modeline
4.3.4 Option "RightOf" "2007FP"
看你螢幕的擺法
下面是我的 xorg.conf。
希望我花了一個月時間 RTFM 和看了不知多少的網頁總結出來的心得對你有幫助。
結論:RTFM 根本沒用,Manual 寫的不知是多久以前的東西。
================== xorg.conf =====================
Section "Screen"
Identifier "Configured Screen Device"
Device "Configured Video Device"
SubSection "Display"
Virtual 2624 1200
EndSubSection
EndSection
Section "Device"
Identifier "Configured Video Device"
Option "Monitor-LVDS" "T42"
Option "Monitor-DVI-0" "2007FP"
EndSection
Section "Monitor"
Identifier "2007FP"
Modeline "1600x1200_60.00" 139.800 1600 1640 1672 1864 1200 1201 1204 1250 +hsync +vsync
Option "dpms"
Option "PreferredMode" "1600x1200_60.00"
EndSection
Section "Monitor"
Identifier "T42"
Option "RightOf" "2007FP"
EndSection
--
http://0rz.tw/3aqjy
記得要調正確的解析度。
powerstrip 是國產軟體,綜看 windows 和 linux,
好像沒有其它程式有類似的功能。
要好好謝謝作者。
2. 在終端機 (Terminal)內用 xrandr 找正確的接口名稱,
不同的顯示卡驅動程式有不同的名稱。
$xrandr
Screen 0: minimum 320 x 200, current 1400 x 1050, maximum 2048 x 1152
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
LVDS connected 1400x1050+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1400x1050 60.2*+
1280x800 60.0
1280x768 60.0
1024x768 60.0 75.0
800x600 60.3
640x480 59.9
S-video disconnected (normal left inverted right x axis y axis)
以上例而言就是 LVDS (筆電螢幕) 和 DVI-0 (或 VGA-0) (外接)
3. 設定 root 的密碼
$sudo passwd root
4. 參考下面的附檔修改 xorg.conf
$sudo gedit /etc/X11/xorg.conf
(X11 的 X 要大寫)
有幾行要改
4.1 Virtual 2624 1200
我外接是 1600x1200,筆電是 1024x768
螢幕左右放置,所以 Virtual Display 的寬度是 1600+1024 = 2624,
高度是 1200
4.2 Section "Device"
如果你原來的 xorg.conf 的這部份有其它設定,
記得要保留下來只改下面兩行。
Option "Monitor-LVDS" "T42"
Option "Monitor-DVI-0" "2007FP"
把 LVDS 和 DVI-0 改成上面用 xrandr 找到的接口名稱,
T42 和 2007FP 可以改你喜歡的名稱。
4.3 Section "Monitor" (兩個都要改)
4.3.1 Identifier 的名稱要和 4.2 內改的一樣
4.3.2 Modeline 用 powerstrip 找出的參數
4.3.3 "PreferredMode" 要對上 Modeline
4.3.4 Option "RightOf" "2007FP"
看你螢幕的擺法
下面是我的 xorg.conf。
希望我花了一個月時間 RTFM 和看了不知多少的網頁總結出來的心得對你有幫助。
結論:RTFM 根本沒用,Manual 寫的不知是多久以前的東西。
================== xorg.conf =====================
Section "Screen"
Identifier "Configured Screen Device"
Device "Configured Video Device"
SubSection "Display"
Virtual 2624 1200
EndSubSection
EndSection
Section "Device"
Identifier "Configured Video Device"
Option "Monitor-LVDS" "T42"
Option "Monitor-DVI-0" "2007FP"
EndSection
Section "Monitor"
Identifier "2007FP"
Modeline "1600x1200_60.00" 139.800 1600 1640 1672 1864 1200 1201 1204 1250 +hsync +vsync
Option "dpms"
Option "PreferredMode" "1600x1200_60.00"
EndSection
Section "Monitor"
Identifier "T42"
Option "RightOf" "2007FP"
EndSection
--
Tags:
Linux
All Comments
By Kumar
at 2009-11-06T18:43
at 2009-11-06T18:43
By Puput
at 2009-11-08T20:41
at 2009-11-08T20:41
By Hedy
at 2009-11-10T02:34
at 2009-11-10T02:34
By Hardy
at 2009-11-11T07:16
at 2009-11-11T07:16
By Lucy
at 2009-11-15T00:51
at 2009-11-15T00:51
By Jack
at 2009-11-18T05:28
at 2009-11-18T05:28
By Todd Johnson
at 2009-11-22T09:50
at 2009-11-22T09:50
By Edward Lewis
at 2009-11-23T06:35
at 2009-11-23T06:35
By Delia
at 2009-11-24T19:32
at 2009-11-24T19:32
By Audriana
at 2009-11-27T18:16
at 2009-11-27T18:16
By Oscar
at 2009-11-30T07:19
at 2009-11-30T07:19
By Tristan Cohan
at 2009-12-01T20:10
at 2009-12-01T20:10
By James
at 2009-12-05T12:09
at 2009-12-05T12:09
By Charlie
at 2009-12-08T03:38
at 2009-12-08T03:38
By Candice
at 2009-12-12T14:08
at 2009-12-12T14:08
By Agatha
at 2009-12-12T16:40
at 2009-12-12T16:40
By Enid
at 2009-12-17T14:42
at 2009-12-17T14:42
By Mia
at 2009-12-18T05:28
at 2009-12-18T05:28
By Necoo
at 2009-12-22T15:10
at 2009-12-22T15:10
By Harry
at 2009-12-26T22:58
at 2009-12-26T22:58
Related Posts
google chrome dev channel
By Connor
at 2009-11-02T20:52
at 2009-11-02T20:52
ftp.tw.debian.org is down ?
By Bethany
at 2009-11-02T15:14
at 2009-11-02T15:14
提問的智慧
By Elvira
at 2009-11-02T13:42
at 2009-11-02T13:42
資料轉移問題,Centos轉移到Debian(Ubuntu Server)
By Zenobia
at 2009-11-02T13:38
at 2009-11-02T13:38
xampp apache中文檔名網址
By Edward Lewis
at 2009-11-02T12:35
at 2009-11-02T12:35