Xorgの画面解像度とリフレッシュレートの固定

nvidia-driverで、1600x1200 60Hzなディスプレイ環境なわけですが、CPU切替器を通しているためかなぜか標準で1280x1024までしか見えません。
2回目まではnvidia-settingsでいじっていたのですが、再起動をする度にこれはないw

ということで、xorg.confをいじって固定します。


まず、/etc/X11/xorg.conf をエディタで開く。もちろんSuperユーザです。

ほいで、Section "Screen" に以下を追加。

Option "metamodes" "1600x1200_60 +0+0"

Xを再起動(Ctrl+Alt+BS)すれば1600x1200 at 60Hzで起動するようになりました。


一応 xorg.conf を載せておきます。
しかし、本当に設定が楽になりました。昔はディスプレイの解像度の設定をごちゃごちゃ書き込む必要があったのにXRanderの進化で勝手に認識してくれるし。まぁ、まだ微妙に認識がおかしいこともありますがw
あと、nvidiaのロゴを消していないのは好みです^^

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/local/share/fonts"
EndSection

Section "Module"
Load "dbe"
Load "record"
Load "extmod"
Load "GLcore"
Load "glx"
Load "xtrap"
Load "type1"
Load "freetype"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "jp106"
Option "XkbLayout" "jp"
Option "XkbOptions" "ctrl:ocaps"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
EndSection

Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24

#Option "TwinView" "0"
#Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "1600x1200_60 +0+0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection