How to manipulate with different screen sets - X.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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"
EndSection

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

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

Section "InputDevice"

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

Section "InputDevice"

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

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

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

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
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux