看板 Linux 關於我們 聯絡資訊
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)
covari:我每次看到linux底下居然還沒辦法方便改雙螢幕就很難過 11/02 21:40
※ 編輯: 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)
adahsu:可是我用 nvidia-settings 可以很方向切換耶? 11/02 22:08
dreamroyc:原PO好像是ati顯卡 11/02 22:19
oversky0:有原廠支援的驅動程式的話大概就沒問題。像我 T42 是用 11/02 22:22
oversky0:ATI Radeo Mobility 9000, ATI 的 driver 只能用在 11/02 22:23
oversky0:2.6.16 以前的 kernel。 11/02 22:24
oversky0:所以只能用 X.org 的驅動程式。 11/02 22:31
oversky0:以 Ubuntu 9.10 的內建設定,外接只能到 1280x1024 11/02 22:32
oversky0:一定要用 powerstrip 抓的 modeline 才能上 1600x1200 11/02 22:33
oversky0:如果碰到像 in09 那樣比較少見的解析度也是會有問題的。 11/02 22:35
tkcn:請問這種設定, 滑鼠可否移到螢幕可視範圍之外? 11/03 00:23
tkcn:就是在 virtual display 之內,但螢幕無法顯示的部份 11/03 00:23
brt:我自己的經驗是 xorg預設測試的頻率範圍太窄..抓不到正確解析 11/03 03:10
oversky0:滑鼠會移到螢幕可視範圍之外, 所以像我這樣兩螢幕一大一 11/03 03:16
oversky0:小,有時會找不到滑鼠。 11/03 03:17
tkcn:感謝解惑 11/03 08:41
in09:可以說一下 powerstrip 抓的東西怎麼 mapping 到 Modeline 嗎 11/03 09:11
in09:我是在 ubuntu 裏用 cvt 抓, 直接就是 Modeline 一行可貼上 11/03 09:12
adahsu:確實,ATi 的卡就... 就... 讓人搖頭了... :p 11/03 09:40
adahsu:我當年要上 2405 時是在某網站上設定一下解析度後,它會協 11/03 09:41
adahsu:助產生 mode line 資訊,設上去也確實可以動!不過使用 11/03 09:41
adahsu:N 牌顯卡後就不用這麼麻煩了... 11/03 09:42