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

switching between xorg.conf files



Hi
I have two xorg.conf files. The first one is for laptop alone ( say xorg1.conf) . The second is used when laptop is connected to a projector (say xorg2.conf).

I usually use xorg1.conf . But when I have to connect to a projector, I do

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

and then reboot the computer. Is there any way to change xorg.conf files without requiring a reboot?

I have tried logging out of X and doing startx. But then it did not work (in the sense that the display was still on the laptop, instead of the projector's screen). I have to reboot the machine for the new xorg.conf to take effect and show the display on the projector's screen.

$lspci | grep -i nvidia
0000:01:00.0 VGA compatible controller: nVidia Corporation NV34M [GeForce FX Go5200] (rev a1)

I am running unstable, xorg 6.9.0.

Is this an X issue or is it an nvidia drivers issue? Any idea?

My xorg?.conf files are not in the best possible shape. But I am attaching them for your consideration.

Thanks for any ideas
raju

--
http://kamaraju.googlepages.com/cornell-bazaar
http://groups.google.com/group/cornell-bazaar/about

# xorg.conf (Xorg 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.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#   cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
#   md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum
#   dpkg-reconfigure xserver-xorg

Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath  "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath  "/usr/share/fonts/truetype"
	FontPath	"/usr/lib/X11/fonts/CID"
	FontPath  "/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi:unscaled"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
	FontPath	"/usr/lib/X11/fonts/Type1"
EndSection

Section "Module"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"us"
	# Option    "XkbDisable" "true"
EndSection

# this is working fine. But the extra mouse buttons are not working properly.
Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
EndSection

# trial2 :- This is not working correctly.
# Section "InputDevice"
# 	Identifier  "Configured Mouse"
#    Driver      "mouse"
#    Option "Protocol"       "ExplorerPS/2"
#    Option "SendCoreEvents" "true"            # Not sure if this line is needed ??
#    Option "Device"         "/dev/input/mice"
#    Option "Buttons"        "4 5"             # side buttons scroll up/down
#    Option "ZAxisMapping"   "6 7"             # wheel moves forward/back in the browser
# EndSection

# trial3 :- this is working fine. But the extra buttons are not working
# properly.
# Section "InputDevice"
#        Identifier      "Configured Mouse"
#        Driver          "mouse"
#        Option          "CorePointer"
#        Option          "Device"                "/dev/input/mice"
#        Option          "Protocol"              "ExplorerPS/2"
#        Option          "Buttons"               "7"
#        Option          "ZAxisMapping"          "4 5"
# EndSection

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"auto-dev"
	Option		"HorizScrollDelta"	"0"
EndSection

Section "Device"
	Identifier	"NVIDIA Corporation NV34M [GeForce FX Go 5200]"
	Driver		"nvidia"
	VideoRam	65536
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	HorizSync	28-72
	VertRefresh	43-60
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"NVIDIA Corporation NV34M [GeForce FX Go 5200]"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1440x900"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1440x900"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1440x900"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1440x900"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1440x900"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1440x900"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Synaptics Touchpad"
EndSection

Section "DRI"
	Mode	0666
EndSection
# XF86Config-4 (XFree86 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 XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#   cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
#   md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
#   dpkg-reconfigure xserver-xfree86

Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/CID"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

# Comment out some modules - functionality is provided by nvidia
Section "Module"
#	Load	"GLcore"
	Load	"synaptics"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
#	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"speedo"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"us"
EndSection

## These parameters obtained from a mailing list post somewhere...
#Section "InputDevice"
#	Identifier	"Alps Touchpad"
#	Driver		"synaptics"
#	Option		"CorePointer"
#	Option		"Device"		"/dev/input/event1"
#	Option		"Protocol"		"event"
#	Option		"LeftEdge"		"60"
#	Option		"RightEdge"		"830"
#	Option		"TopEdge"		"70"
#	Option		"BottomEdge"		"650"
#	Option		"FingerLow"		"25"
#	Option		"FingerHigh"		"30"
#	Option		"MaxTapTime"		"180"
#	Option		"MaxTapMove"		"110"
#	Option		"EmulateMidButtonTime"	"75"
#	Option		"VertScrollDelta"	"50"
#	Option		"HorizScrollDelta"	"50"
#	Option		"MinSpeed"		"0.2"
#	Option		"MaxSpeed"		"0.5"
#	Option		"AccelFactor"		"0.01"
#	Option		"EdgeMotionSpeed"	"40"
#	Option		"UpDownScrolling"	"1"
#	Option		"TouchpadOff"	"0"
#EndSection

Section "InputDevice"
	Identifier	"Generic Mouse"
	Driver		"mouse"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"PS/2"
	Option		"Emulate3Buttons"	"true"
EndSection

# This section is only used for non-twinview layout
Section "Modes"
	# Here is the optimal mode: 1280x800 @ 60.0Hz
	Identifier "16:10"
	# 1280x800 @ 60.00Hz (GTF) hsync: 49.68kHz; pclk: 83.46MHz
	ModeLine "1280x800" 83.5 1280 1344 1480 1680 800 801 804 828
EndSection

# Twinview setup
# The external monitor is configured to pan to the full resolution of
# the internal LCD.
Section "Device"
	Identifier	"NVidia GeForce4 440 Go 64M Twin"
	Driver		"nvidia"
	Option		"NvAgp"			"3"
	Option		"NoLogo"		"0"
	Option		"UseEdidFreqs"		"1"
	Option		"FlatPanelProperties"	"Scaling = aspect-scaled"
	Option		"TwinView"		"1"
	Option		"TwinViewOrientation"	"Clone"
	Option		"SecondMonitorHorizSync"	"30-90"
	Option		"SecondMonitorVertRefresh"	"50-75"
	Option		"MetaModes"		"1024x768 @1280x800,1280x800 @1280x800"
EndSection

# Non-twinview setup
Section "Device"
	Identifier	"NVidia GeForce4 440 Go 64M"
	Driver		"nvidia"
	Option		"NvAgp"			"3"
	Option		"NoLogo"		"0"
	Option		"UseEdidFreqs"		"1"
	Option		"FlatPanelProperties"	"Scaling = aspect-scaled"
EndSection

# This monitor is only needed in the non-twinview setup
Section "Monitor"
	Identifier	"WXGA LCD"
	UseModes	"16:10"
	HorizSync	30-90
	VertRefresh	50-75
	Option		"UseEdidFreqs"		"1"
	Option		"FlatPanelProperties"	"Scaling = aspect-scaled"
EndSection

# In twinview, the external monitor is the primary and the laptop
# LCD is the secondary.  The modeline here is not needed for the
# external monitor, but gets passed to the nvidia driver, which 
# needs it for the internal LCD
Section "Monitor"
	Identifier	"External"
	ModeLine "1280x800" 83.5 1280 1344 1480 1680 800 801 804 828
	Option		"UseEdidFreqs"		"1"
EndSection

Section "Screen"
	Identifier	"External Screen"
	Device		"NVidia GeForce4 440 Go 64M Twin"
	Monitor		"External"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
	Virtual 1280 800
	EndSubSection
EndSection

# This screen is only used in the non-twinview layout
Section "Screen"
	Identifier	"WXGA Screen"
	Device		"NVidia GeForce4 440 Go 64M"
	Monitor		"WXGA LCD"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1280x800"
	Virtual 1280 800
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"WXGA Screen"
	InputDevice	"Generic Keyboard"
	#InputDevice	"Alps Touchpad"
	InputDevice	"Configured Mouse"
	InputDevice	"Generic Mouse"
EndSection

Section "ServerLayout"
	Identifier	"twinview"
	Screen		"External Screen"
	InputDevice	"Generic Keyboard"
	#InputDevice	"Alps Touchpad"
	InputDevice	"Generic Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection

Reply to: