使用者工具

網站工具


linux:xwindow

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版前次修改
下次修改
前次修改
linux:xwindow [2008/05/25 15:35] – wenpeilinux:xwindow [2009/12/23 10:22] (目前版本) – Rotating the screen wenpei
行 3: 行 3:
   - dual screen:所有螢幕顯示同樣的內容,也就是 Windows 上稱的「鏡像模式」。   - dual screen:所有螢幕顯示同樣的內容,也就是 Windows 上稱的「鏡像模式」。
   - Separate X screen:個別螢幕使用不同解析度,即為「延伸桌面」。   - Separate X screen:個別螢幕使用不同解析度,即為「延伸桌面」。
-  - twinview:所有螢幕合成一個大解析度的畫面,空間不足的部份滑鼠移過去時畫面會捲動,有用過 vncviewer 的全螢幕模式瀏覽大解析度桌面的人應該不陌生。+  - TwinView:所有螢幕合成一個大解析度的畫面,空間不足的部份滑鼠移過去時畫面會捲動,有用過 vncviewer 的全螢幕模式瀏覽大解析度桌面的人應該不陌生。
  
 ===== nVidia Driver on Debian ===== ===== nVidia Driver on Debian =====
行 28: 行 28:
 要設定雙螢幕,主要會用到「X Server Display Configuration」這個標籤裡面的功能,Linux 應該可以正常偵測到所使用的螢幕名稱以及解析度,Layout 上面應該會出現所有已經接上的螢幕,每設定一次就可以按下「Apply」鈕套用設定值,但是不適合需要重新啟動 X Window 才會生效的設定。 要設定雙螢幕,主要會用到「X Server Display Configuration」這個標籤裡面的功能,Linux 應該可以正常偵測到所使用的螢幕名稱以及解析度,Layout 上面應該會出現所有已經接上的螢幕,每設定一次就可以按下「Apply」鈕套用設定值,但是不適合需要重新啟動 X Window 才會生效的設定。
  
-先勾選「Enable Xinerama」。+先勾選「Enable Xinerama」。參考:http://en.wikipedia.org/wiki/Xinerama
  
 Model 中切換要設定的螢幕,或者在 Layout 上面選擇要設定的螢幕。 Model 中切換要設定的螢幕,或者在 Layout 上面選擇要設定的螢幕。
行 45: 行 45:
 重新啟動 X Window 應該就可以看到新的設定了!左邊放 Gnome,右邊放 VMware Player 下的 Windows。:-D 重新啟動 X Window 應該就可以看到新的設定了!左邊放 Gnome,右邊放 VMware Player 下的 Windows。:-D
 {{:linux:img_0764_mod.jpg?640x480|}} {{:linux:img_0764_mod.jpg?640x480|}}
 +
 +===== xorg.conf =====
 +參考用,直接抄去用應該是不會 work。畢竟是程式產生的設定檔,有些地方可以更簡潔。而且我找不到他把解析度寫哪去了...
 +
 +<code>
 +Section "ServerLayout"
 +    Identifier     "Layout0"
 +    Screen      0  "Screen0" 0 0
 +    Screen      1  "Screen1" 1680 26
 +    InputDevice    "Keyboard0" "CoreKeyboard"
 +    InputDevice    "Mouse0" "CorePointer"
 +EndSection
 +
 +Section "ServerFlags"
 +    Option         "Xinerama" "1"
 +EndSection
 +
 +Section "Monitor"
 +    # HorizSync source: edid, VertRefresh source: edid
 +    Identifier     "Monitor0"
 +    VendorName     "Unknown"
 +    ModelName      "DELL 2208WFP"
 +    HorizSync       30.0 - 83.0
 +    VertRefresh     56.0 - 76.0
 +    Option         "DPMS"
 +EndSection
 +
 +Section "Monitor"
 +    Identifier     "Monitor1"
 +    VendorName     "Unknown"
 +    ModelName      "BenQ FP737s-D"
 +    HorizSync       31.0 - 83.0
 +    VertRefresh     56.0 - 76.0
 +EndSection
 +
 +Section "Device"
 +    Identifier     "Videocard0"
 +    Option         "NoLogo" "True"
 +    Driver         "nvidia"
 +    VendorName     "NVIDIA Corporation"
 +    BoardName      "GeForce 6600"
 +    BusID          "PCI:1:0:0"
 +    Screen          0
 +EndSection
 +
 +Section "Device"
 +    Identifier     "Videocard1"
 +    Driver         "nvidia"
 +    VendorName     "NVIDIA Corporation"
 +    BoardName      "GeForce 6600"
 +    BusID          "PCI:1:0:0"
 +    Screen          1
 +EndSection
 +
 +Section "Screen"
 +    Identifier     "Screen0"
 +    Device         "Videocard0"
 +    Monitor        "Monitor0"
 +    DefaultDepth    24
 +    Option         "TwinView" "0"
 +    Option         "TwinViewXineramaInfoOrder" "DFP-0"
 +    Option         "metamodes" "DFP: nvidia-auto-select +0+0"
 +    SubSection     "Display"
 +        Depth       24
 +    EndSubSection
 +EndSection
 +
 +Section "Screen"
 +    Identifier     "Screen1"
 +    Device         "Videocard1"
 +    Monitor        "Monitor1"
 +    DefaultDepth    24
 +    Option         "TwinView" "0"
 +    Option         "TwinViewXineramaInfoOrder" "CRT-0"
 +    Option         "metamodes" "CRT: nvidia-auto-select +0+0"
 +EndSection
 +</code>
 +
 +===== Rotating the screen in Xorg/Nvidia =====
 +http://nkour.wordpress.com/2006/12/13/rotating-the-screen-in-xorgnvidia/
 +
 +<code>
 +cat /etc/X11/xorg.conf | grep Rand -B 5 -A 5
 +
 +Section "Device"
 +Identifier "nvidia"
 +Driver "nvidia"
 +Option "NoLogo" "true" # AVOID LOGO [nvidia == idiots on this one]
 +Option "DPMS" "true" # well, good to have.. google it
 +Option "RandRRotation" "true" # for rotate to work
 +!EndSection
 +
 +restart Xorg, then do:
 +
 +xrandr -o left
 +</code>
 +
 +===== 參考資料 =====
 +==== Envy ====
 +http://albertomilone.com/nvidia_scripts1.html
 +
 +如果是用 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://www.microsoft.com/taiwan/atwork/stayconnected/multiplemonitors.mspx
 +
 +==== 其他人 ====
 +http://julian14632.wordpress.com/2007/12/30/
 +
 +裡面提到的 TwinView 和 Seperate X screen 跟我測試的結果不一樣,我的 Seperate X screen 視窗是可以在兩個螢幕間移動的,我印象中也是不行,但是測試的結果竟然可以,應該是 Xinerama 的效果吧!
 +
 +http://cha.homeip.net/blog/archives/2008/02/xinerama.html
  
 ===== 過時的資料 ===== ===== 過時的資料 =====
行 142: 行 260:
 然後執行 然後執行
   # fc-cache -v -f   # fc-cache -v -f
 +
 +===== 更換桌面字型 =====
 +http://www.openfoundry.org/index.php?option=com_content&task=view&id=1949&Itemid=144
linux/xwindow.1211700946.txt.gz · 上一次變更: 由 wenpei