[心得] Ubuntu 9.10 雙螢幕設定 xorg.conf

看板Linux作者 (oversky0)時間16年前 (2009/11/02 21:24), 編輯推噓6(6016)
留言22則, 7人參與, 最新討論串1/1
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 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 128.211.253.111 ※ 編輯: oversky0 來自: 128.211.253.111 (11/02 21:32) ※ 編輯: oversky0 來自: 128.211.253.111 (11/02 21:33) ※ 編輯: oversky0 來自: 128.211.253.111 (11/02 21:37)

11/02 21:40, , 1F
我每次看到linux底下居然還沒辦法方便改雙螢幕就很難過
11/02 21:40, 1F
※ 編輯: oversky0 來自: 128.211.253.111 (11/02 21:45) ※ 編輯: oversky0 來自: 128.211.253.111 (11/02 21:49) ※ 編輯: oversky0 來自: 128.211.253.111 (11/02 22:00) ※ 編輯: oversky0 來自: 128.211.253.111 (11/02 22:02)

11/02 22:08, , 2F
可是我用 nvidia-settings 可以很方向切換耶?
11/02 22:08, 2F

11/02 22:19, , 3F
原PO好像是ati顯卡
11/02 22:19, 3F

11/02 22:22, , 4F
有原廠支援的驅動程式的話大概就沒問題。像我 T42 是用
11/02 22:22, 4F

11/02 22:23, , 5F
ATI Radeo Mobility 9000, ATI 的 driver 只能用在
11/02 22:23, 5F

11/02 22:24, , 6F
2.6.16 以前的 kernel。
11/02 22:24, 6F

11/02 22:31, , 7F
所以只能用 X.org 的驅動程式。
11/02 22:31, 7F

11/02 22:32, , 8F
以 Ubuntu 9.10 的內建設定,外接只能到 1280x1024
11/02 22:32, 8F

11/02 22:33, , 9F
一定要用 powerstrip 抓的 modeline 才能上 1600x1200
11/02 22:33, 9F

11/02 22:35, , 10F
如果碰到像 in09 那樣比較少見的解析度也是會有問題的。
11/02 22:35, 10F

11/03 00:23, , 11F
請問這種設定, 滑鼠可否移到螢幕可視範圍之外?
11/03 00:23, 11F

11/03 00:23, , 12F
就是在 virtual display 之內,但螢幕無法顯示的部份
11/03 00:23, 12F

11/03 03:10, , 13F
我自己的經驗是 xorg預設測試的頻率範圍太窄..抓不到正確解析
11/03 03:10, 13F

11/03 03:16, , 14F
滑鼠會移到螢幕可視範圍之外, 所以像我這樣兩螢幕一大一
11/03 03:16, 14F

11/03 03:17, , 15F
小,有時會找不到滑鼠。
11/03 03:17, 15F

11/03 08:41, , 16F
感謝解惑
11/03 08:41, 16F

11/03 09:11, , 17F
可以說一下 powerstrip 抓的東西怎麼 mapping 到 Modeline 嗎
11/03 09:11, 17F

11/03 09:12, , 18F
我是在 ubuntu 裏用 cvt 抓, 直接就是 Modeline 一行可貼上
11/03 09:12, 18F

11/03 09:40, , 19F
確實,ATi 的卡就... 就... 讓人搖頭了... :p
11/03 09:40, 19F

11/03 09:41, , 20F
我當年要上 2405 時是在某網站上設定一下解析度後,它會協
11/03 09:41, 20F

11/03 09:41, , 21F
助產生 mode line 資訊,設上去也確實可以動!不過使用
11/03 09:41, 21F

11/03 09:42, , 22F
N 牌顯卡後就不用這麼麻煩了...
11/03 09:42, 22F
文章代碼(AID): #1AxjsVSp (Linux)