Ubuntu 9.10 雙螢幕設定 xorg.conf - Linux

Noah avatar
By Noah
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

--
Tags: Linux

All Comments

Kumar avatar
By Kumar
at 2009-11-06T18:43
我每次看到linux底下居然還沒辦法方便改雙螢幕就很難過
Puput avatar
By Puput
at 2009-11-08T20:41
可是我用 nvidia-settings 可以很方向切換耶?
Hedy avatar
By Hedy
at 2009-11-10T02:34
原PO好像是ati顯卡
Hardy avatar
By Hardy
at 2009-11-11T07:16
有原廠支援的驅動程式的話大概就沒問題。像我 T42 是用
Lucy avatar
By Lucy
at 2009-11-15T00:51
ATI Radeo Mobility 9000, ATI 的 driver 只能用在
Jack avatar
By Jack
at 2009-11-18T05:28
2.6.16 以前的 kernel。
Todd Johnson avatar
By Todd Johnson
at 2009-11-22T09:50
所以只能用 X.org 的驅動程式。
Edward Lewis avatar
By Edward Lewis
at 2009-11-23T06:35
以 Ubuntu 9.10 的內建設定,外接只能到 1280x1024
Delia avatar
By Delia
at 2009-11-24T19:32
一定要用 powerstrip 抓的 modeline 才能上 1600x1200
Audriana avatar
By Audriana
at 2009-11-27T18:16
如果碰到像 in09 那樣比較少見的解析度也是會有問題的。
Oscar avatar
By Oscar
at 2009-11-30T07:19
請問這種設定, 滑鼠可否移到螢幕可視範圍之外?
就是在 virtual display 之內,但螢幕無法顯示的部份
Tristan Cohan avatar
By Tristan Cohan
at 2009-12-01T20:10
我自己的經驗是 xorg預設測試的頻率範圍太窄..抓不到正確解析
James avatar
By James
at 2009-12-05T12:09
滑鼠會移到螢幕可視範圍之外, 所以像我這樣兩螢幕一大一
Charlie avatar
By Charlie
at 2009-12-08T03:38
小,有時會找不到滑鼠。
Candice avatar
By Candice
at 2009-12-12T14:08
感謝解惑
Agatha avatar
By Agatha
at 2009-12-12T16:40
可以說一下 powerstrip 抓的東西怎麼 mapping 到 Modeline 嗎
Enid avatar
By Enid
at 2009-12-17T14:42
我是在 ubuntu 裏用 cvt 抓, 直接就是 Modeline 一行可貼上
Mia avatar
By Mia
at 2009-12-18T05:28
確實,ATi 的卡就... 就... 讓人搖頭了... :p
Necoo avatar
By Necoo
at 2009-12-22T15:10
我當年要上 2405 時是在某網站上設定一下解析度後,它會協
助產生 mode line 資訊,設上去也確實可以動!不過使用
Harry avatar
By Harry
at 2009-12-26T22:58
N 牌顯卡後就不用這麼麻煩了...

google chrome dev channel

Connor avatar
By Connor
at 2009-11-02T20:52
請問一下 在ubuntu 9.04中 有沒有辦法安裝 dev channel 的 chrome ? 我想要--enable-sync的功能,但是一直try不出來... 抑或根本沒有支援ubuntu的dev channel? thx! - ...

ftp.tw.debian.org is down ?

Bethany avatar
By Bethany
at 2009-11-02T15:14
如題 這幾天要更新都沒反應 也不知道要反應去哪裡 貼在這邊請有管道的人幫忙反應一下吧 - ...

提問的智慧

Elvira avatar
By Elvira
at 2009-11-02T13:42
其實我自己也是個小新手 偶然間看到這篇 看了版上好像沒有貼過 轉過來跟大家分享 原文網址 http://edumeme.blogspot.com/2009/09/blog-post_20.html 在黑客世界裏,當提出一個技術問題時,你能得到怎樣的回答?這取決於挖出答案的難度 ,同樣取決於你提問的 ...

資料轉移問題,Centos轉移到Debian(Ubuntu Server)

Zenobia avatar
By Zenobia
at 2009-11-02T13:38
大家好, 我的系統是Centos 5.3,這台主機主要是用來當Mail Server, Web方面安裝Apache+PHP+MySQL,MAIL則是Sendmail+Openwebmail, 目前使用者大概五十個帳號。 日前使用了Debian(Ubuntu Server)後,發現 apt-get 太方便 ...

xampp apache中文檔名網址

Edward Lewis avatar
By Edward Lewis
at 2009-11-02T12:35
google 查到要讓 apache 支援中文檔名網址需要模組 mod_fileiri 必須下載 mod_fileiri.c 並用 apxs -i -a -c mod_fileiri.c 編譯產生 mod_fileiri.so 目前我是用 Xampp fo ...