linux:xwindow
差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版前次修改 下次修改 | 前次修改 | ||
| linux:xwindow [2007/05/15 00:10] – wenpei | linux:xwindow [2009/12/23 10:22] (目前版本) – Rotating the screen wenpei | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== 雙螢幕(延伸桌面) ====== | + | ====== |
| - | 雙螢幕有兩種 | + | 常見的雙螢幕使用方式有三種 |
| - | - dual screen | + | - dual screen:所有螢幕顯示同樣的內容,也就是 Windows 上稱的「鏡像模式」。 |
| - | - twinview | + | - Separate X screen:個別螢幕使用不同解析度,即為「延伸桌面」。 |
| - | ===== TwinView | + | - TwinView:所有螢幕合成一個大解析度的畫面,空間不足的部份滑鼠移過去時畫面會捲動,有用過 vncviewer 的全螢幕模式瀏覽大解析度桌面的人應該不陌生。 |
| - | 如果使用 Nvidia | + | |
| + | ===== nVidia Driver on Debian | ||
| + | 下載最新的 nVidia for Linux 官方驅動程式:http:// | ||
| + | |||
| + | 會有一個 NVIDIA-Linux-*-pkg1.run 檔案。接著在 cosole 中直接執行: | ||
| + | sh [path_to]/ | ||
| + | |||
| + | 過程會問很多問題,沒特殊需求的話一直下一步或 YES 就可以了。 | ||
| + | |||
| + | 裝好後 / | ||
| + | < | ||
| + | Section " | ||
| + | ... | ||
| + | Driver | ||
| + | ... | ||
| + | EndSection | ||
| + | </ | ||
| + | 啟動 X Window 的時候如果有出現 nVidia | ||
| + | |||
| + | ===== nvidia-setting ===== | ||
| + | 成功安裝 nVidia 驅動後,「應用程式」→「系統工具」中應該會有「NVIDIA X Server Settings」,打開後就可以用 GUI 設定顯示的模式(一開始視窗很小,要自己拉大),終於不用自己手動刻 xorg.conf 了! | ||
| + | |||
| + | 要設定雙螢幕,主要會用到「X Server Display Configuration」這個標籤裡面的功能,Linux 應該可以正常偵測到所使用的螢幕名稱以及解析度,Layout 上面應該會出現所有已經接上的螢幕,每設定一次就可以按下「Apply」鈕套用設定值,但是不適合需要重新啟動 | ||
| + | |||
| + | 先勾選「Enable Xinerama」。參考:http:// | ||
| + | |||
| + | Model 中切換要設定的螢幕,或者在 Layout 上面選擇要設定的螢幕。 | ||
| + | |||
| + | Configuration 指螢幕要用哪種運作模式,Disable 是不使用,Separate X screen 及 TwinView 一開始有提到。 | ||
| + | |||
| + | Resolution 是設定各個螢幕的解析度,如果 Auto 的結果不是想要的,可以自己改。 | ||
| + | |||
| + | 「Advanced...」 按鈕點開後還有一些進階設定值可以改。 | ||
| + | |||
| + | 「X Screen」標籤內可以設定 Color Depth(現在的螢幕應該都支援 Depth 24 以上)以及螢幕的位置,這部份可以直接拉上面的 Layout 的螢幕,直接拉成想要的位置。Screen Number 是螢幕代號,在 GDM 登入畫面,輸入帳號密碼的對話框會出現在編號 0 的螢幕。如果要修改編號,要先把其他螢幕 Disable 掉,然後再依序啟用,不能直接改編號。 | ||
| + | |||
| + | ===== 匯出 xorg.conf ===== | ||
| + | 最後按「Save to X Configuration File」匯出設定檔,如果不是使用 super user 執行 nvidia-settings | ||
| + | |||
| + | 重新啟動 X Window 應該就可以看到新的設定了!左邊放 Gnome,右邊放 VMware Player 下的 Windows。: | ||
| + | {{: | ||
| + | |||
| + | ===== xorg.conf ===== | ||
| + | 參考用,直接抄去用應該是不會 work。畢竟是程式產生的設定檔,有些地方可以更簡潔。而且我找不到他把解析度寫哪去了... | ||
| + | |||
| + | < | ||
| + | Section " | ||
| + | Identifier | ||
| + | Screen | ||
| + | Screen | ||
| + | InputDevice | ||
| + | InputDevice | ||
| + | EndSection | ||
| + | |||
| + | Section " | ||
| + | Option | ||
| + | EndSection | ||
| + | |||
| + | Section " | ||
| + | # HorizSync source: edid, VertRefresh source: edid | ||
| + | Identifier | ||
| + | VendorName | ||
| + | ModelName | ||
| + | HorizSync | ||
| + | VertRefresh | ||
| + | Option | ||
| + | EndSection | ||
| + | |||
| + | Section " | ||
| + | Identifier | ||
| + | VendorName | ||
| + | ModelName | ||
| + | HorizSync | ||
| + | VertRefresh | ||
| + | EndSection | ||
| + | |||
| + | Section " | ||
| + | Identifier | ||
| + | Option | ||
| + | Driver | ||
| + | VendorName | ||
| + | BoardName | ||
| + | BusID " | ||
| + | Screen | ||
| + | EndSection | ||
| + | |||
| + | Section " | ||
| + | Identifier | ||
| + | Driver | ||
| + | VendorName | ||
| + | BoardName | ||
| + | BusID " | ||
| + | Screen | ||
| + | EndSection | ||
| + | |||
| + | Section " | ||
| + | Identifier | ||
| + | Device | ||
| + | Monitor | ||
| + | DefaultDepth | ||
| + | Option | ||
| + | Option | ||
| + | Option | ||
| + | SubSection | ||
| + | Depth 24 | ||
| + | EndSubSection | ||
| + | EndSection | ||
| + | |||
| + | Section " | ||
| + | Identifier | ||
| + | Device | ||
| + | Monitor | ||
| + | DefaultDepth | ||
| + | Option | ||
| + | Option | ||
| + | Option | ||
| + | EndSection | ||
| + | </ | ||
| + | |||
| + | ===== Rotating the screen in Xorg/Nvidia ===== | ||
| + | http:// | ||
| + | |||
| + | < | ||
| + | cat / | ||
| + | |||
| + | Section " | ||
| + | Identifier " | ||
| + | Driver " | ||
| + | Option " | ||
| + | Option " | ||
| + | Option " | ||
| + | !EndSection | ||
| + | |||
| + | restart Xorg, then do: | ||
| + | |||
| + | xrandr -o left | ||
| + | </ | ||
| + | |||
| + | ===== 參考資料 ===== | ||
| + | ==== Envy ==== | ||
| + | http:// | ||
| + | |||
| + | 如果是用 Ubuntu 的人可以用用看 Envy 這個程式,先下載包好的程式,用 dpkg -i 安裝好後,Debian 把套件庫的 contrib 打開,然後使用 apt-get 或 aptitude 把相依性補齊,「應用程式」→「系統工具」中應該會有「Envy」,開啟後就可以自動幫你安裝 nVidia 或 ATI 顯示卡的驅動程式了! | ||
| + | |||
| + | 但是我執行的時候他出現: | ||
| + | Envy - Version 0.9.10 | ||
| + | ENVY ERROR: Your Operating System does not seem to be supported by Envy | ||
| + | |||
| + | 看起來這套件比較喜歡 Ubuntu,對於新版的 Debian(我目前用 testing)就不支援了...... | ||
| + | |||
| + | ==== Microsoft Windows 的雙螢幕 ==== | ||
| + | http:// | ||
| + | |||
| + | ==== 其他人 ==== | ||
| + | http:// | ||
| + | |||
| + | 裡面提到的 TwinView 和 Seperate X screen | ||
| + | |||
| + | http:// | ||
| + | |||
| + | ===== 過時的資料 ===== | ||
| + | 曾經是用很複雜的方式慢慢刻設定檔... | ||
| ==== NVIDIA Accelerated Linux Driver Set README and Installation Guide ==== | ==== NVIDIA Accelerated Linux Driver Set README and Installation Guide ==== | ||
| + | http:// | ||
| < | < | ||
| I. Installation Instructions | I. Installation Instructions | ||
| 行 29: | 行 191: | ||
| ==== xorg.conf ==== | ==== xorg.conf ==== | ||
| + | MetaModes 為兩個螢幕的解析度,可以有多組設定值。 | ||
| + | Option " | ||
| + | Option " | ||
| + | |||
| + | 若後面再接一個小老鼠的桌面解析度「Panning Domain」,當 Panning Domain 大於螢幕解析度時仍可正常顯示,空間不足無法顯示的部份,當滑鼠移動過去時,視窗會跟著移動。 | ||
| + | Option " | ||
| + | |||
| < | < | ||
| Section " | Section " | ||
| 行 35: | 行 204: | ||
| Driver | Driver | ||
| BusID " | BusID " | ||
| - | Option | + | Option |
| Option | Option | ||
| - | Option | + | Option |
| - | Option | + | Option |
| - | Option | + | Option |
| Option | Option | ||
| Option | Option | ||
| 行 84: | 行 253: | ||
| EndSection | EndSection | ||
| </ | </ | ||
| - | |||
| - | ===== Xinerama ===== | ||
| - | |||
| ====== 新增字型 ====== | ====== 新增字型 ====== | ||
| 行 94: | 行 260: | ||
| 然後執行 | 然後執行 | ||
| # fc-cache -v -f | # fc-cache -v -f | ||
| + | |||
| + | ===== 更換桌面字型 ===== | ||
| + | http:// | ||
linux/xwindow.1179159029.txt.gz · 上一次變更: (外部編輯)
