HP Pavirion notebook dv4a/CTにUbuntu 9.04(Wubi)をインストールして異なる解像度のデュアルディスプレイを実現する

Ubuntu9.10もそろそろな時期.思い切ってUbuntuに乗り換えようという人も多いのではないでしょうか.(7もほしいけどなんか決断出来ずに悩んでます)
私はiPod+iTunesのおかげで当分はしないことにしておいて,でもノートブックでもUbuntuしたいなあと密かに潜めていた心もあります.
で,自前のノートブックはHPのPavirion notebook dv4a/CTというモデル.HP製のAMDプロセッサ搭載にM780G内蔵グラフィックチップセット搭載の製品.
ATIドライバでUbuntu運用となるとなかなかの鬼門であったのは,よく知られていると思いますし,自分も経験していて苦労していました.

特に異なる解像度のビックデスクトップ(デュアルモニター,デュアルヘッド,デュアルディスプレイ)設定がやっかいでした.

ubuntu 8.04 でATIのドライバを使ってデュアルディスプレイ環境を作る!→うまく行ってない - Mattari Memo
wubi ubuntu8.04でデュアルディスプレイ環境を作る その二 - Mattari Memo
inspiron 1501上のubuntuでデュアルディスプレイを実現する  - Mattari Memo

・・・が今回はリンク先の設定を試すとすんなりうまくいった

ふと思いついた欲求で,とりあえずネットで調べる.というか調べる前にUbuntuをインストールしてしまっておいてw
これまた思いついたWubiでの導入でした.WubiWindows上から仮想パーティションを作ってデュアルブートとしてUbuntuを導入出来るツールです.(詳しくはぐぐれ

  • 存在を忘れていたのですが,今になってよく思い出したなーと思いつつすらすら導入.実に簡単にできるので是非お試しアレ(宣伝)


導入後に,「Ubuntu 9.04 ATI big desktop」とこれまた思いついた検索ワードで絞り込むと上位にたくさんそれらしいものを見つけます.
でちょうどぴったりな方法を見つけました.

Different Sized Dual Monitors in Ubuntu 9.04 Jaunty Jackalope with ATI Video Card - Micah Nolte


で,自分の環境に合わせて(ノートブック側が1280*800,外部モニタ側が1440*900)設定,再起動.なんとまああっさり利用出来るようになった.
どうやらCompizの利用も問題無い模様.詳しい検証はしていませんが,デスクトップのホイール切り替えが出来たことは確認.
3Dも行けるかもしれない.前に頑張って設定した時なんかと比べると楽な上にサポートする機能も多いようです.
ドライバのバージョンアップが進みうまくいったのか,リンク先がとても優秀なのでしょう.
数分試した程度で簡単にできあがったのにはとにかく驚いた.
ただ一つ気になるといえば,↓の写真の通り,黒の余白が随分あることです.左側の下部余白はしょうがないのですが,右側は設定を煮詰めればぴったり納められるかもしれません.現在は1440*900を2枚並べた状態がそれらしいもののようなので.
ただ実際の利用にはほとんど不便はありません.なんかメインで利用したくなってきた雰囲気w

設定後の写真

詳しい設定として

ということで,自分でコピペしつつ書き直した xorg.confを公開.
あと一応環境を細かく書いておくと

  • ノートブックのグラフィックボード名:Radeon 3200HD(チップセットはM780G)
  • ノートブックの解像度:1280*800
    • Ubuntuのデスクトップとしては左側に配置
  • 外部モニタの解像度:1440*900
    • 右側に配置


前準備として,xorg.confのバックアップはしておきましょう

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

それで,geditなどで編集

sudo gedit /etc/X11/xorg.conf
xorg.confのコピー
  • 注意:リンク先のconfと大して変わりません.
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "aticonfig-Screen[0]" 0 0
EndSection

Section "Files"
EndSection

Section "Module"
#	Load  "glx"
EndSection

Section "Monitor"
    Identifier   "aticonfig-Monitor[0]"
    Option        "VendorName" "ATI Proprietary Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
EndSection
 
Section "Monitor"
    Identifier   "aticonfig-Monitor[1]"
    Option        "VendorName" "ATI Proprietary Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
EndSection

Section "Device"
    Identifier  "aticonfig-Device[0]"
    Driver      "fglrx"
    Option    "EnableRandR12" "false"
    Option        "DesktopSetup" "horizontal"
    Option        "OverlayOnCRTC2" "1"
    Option        "Mode2" "1440x900"
    Option        "VideoOverlay" "on"
    Option        "OpenGLOverlay" "off"
    Option        "EnableMonitor" "tmds1,lvds"
    Option        "PairModes" "1280x800+1440x900"
EndSection

Section "ServerFlags"
	Option	    "Xinerama" "off"
EndSection

Section "Screen"
    Identifier "aticonfig-Screen[0]"
    Device     "aticonfig-Device[0]"
    Monitor    "aticonfig-Monitor[0]"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Virtual   1280 800
        Depth     24
        Modes    "1280x800"
    EndSubSection
EndSection
 
Section "Screen"
    Identifier "aticonfig-Screen[1]"
    Device     "aticonfig-Device[0]"
    Monitor    "aticonfig-Monitor[1]"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Virtual   1440 900
        Depth     24
        Modes    "1440x900"
    EndSubSection
EndSection

保存して再起動してください.うまくいかない場合は多分テキストモードで起動するはずです.違う場合はCtrl+Alt+F1でテキストモードに切り替えましょう.
先ほどバックアップしたものをコピーし直して再起動すれば多分設定前に戻ってこれますので設定を確認し直しましょう.