How to manipulate with different screen sets -

Zlatko zlatko.trescec at
Sun Jul 13 10:25:07 UTC 2008

Maybe my title in subject is a little bit confusing, so I will try to
explain what I want in an example:

First configuration is (at work):
	- external monitor is at 1280x1024
	- laptop monitor is at 1440x900

Second configuration is (at home):
	- external monitor is at 1440x900
	- laptop monitor is at 1440x900

Third configuration is (when no external monitor is available):
	- single laptop monitor at 1440x900

My question is... How to switch between those configurations without
editing xorg.conf? How to "tell" system to recognize which configuration
is appropriate? Maybe Xrandr option (or something like this), but how to
use it?

My actual xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister at builder63)  Mon May 19
00:33:37 PDT 2008
# Xorg configuration created by livna-config-display

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"

Section "Files"
    ModulePath      "/usr/lib/xorg/modules/extensions/nvidia"
    ModulePath      "/usr/lib/xorg/modules"

Section "ServerFlags"
    Option         "AIGLX" "on"
    Option         "Xinerama" "0"

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"

Section "InputDevice"

# keyboard added by rhpxl
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce Go 7600"

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AddARGBGLXVisuals" "True"
    Option         "TwinView" "1"
#    Option         "metamodes" "CRT: 1280x1024_60 +0+0, DFP:
nvidia-auto-select +1440+0"
    Option         "metamodes" "CRT: 1440x900_75 +0+0, DFP:
nvidia-auto-select +1440+0"
#    Option         "metamodes" "CRT: 1360x768_60 +0+0, DFP:
nvidia-auto-select +1440+0"
    SubSection     "Display"
        Depth       24

Section "Extensions"
    Option         "Composite" "Enable"

More information about the fedora-list mailing list