[ltp] external monitor Fn-F7

David Tansey linux-thinkpad@linux-thinkpad.org
Sun, 29 May 2005 13:01:45 +0300


--=-Twx/SvzFBqJ1pThhliBL
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I've gotten pretty close to a nice plug-and-play system, even if I don't
get exactly how it all works. 

Does anyone here use a docking station? This works for now, but I'm
buying a 19" LCD soon and would like to be able to set up some kind of
script so when I dock my system it clones the screen onto the external
LCD, and doesn't care if I close my monitor's lid. 

The current xorg.conf I have seems to load a generic gnome setup,
because not only aren't my desktop files shown on the external monitor,
my panel isn't customized. I don't understand how that's possible.

Any help would be appreciated.

-David

On Fri, 2005-05-27 at 15:47 +0200, Giuseppe Castagna wrote:
> James Knott wrote:
> 
> >>I have an x40 running ubuntu (hoary) with the intel i855 chipset. my
> >>external monitor is a 17 inch LCD with 1280x1024 native resolution.
> >>Ideally, I'd be able to switch to any external monitor (or projector.) 
> >>
> >>I'd also love to map Fn-F7 to toggle between laptop,external,both, (and
> >>if i'm lucky, cloning or side by side)
> > 
> 
> I have an X40, never used with external monitor, but I often use it with 
> videoprojectors, and it does exactly what you want. I do not remember the 
> solution I found since it was some time ago, but it works for me with the 
> attached xorg.conf file and the experimental driver you find at
> 
> http://www.fairlite.demon.co.uk/intel.html
> 
> Hope it helps
> 
> Beppe
> 
> plain text document attachment (xorg.conf)
> # XFree86 4 configuration created by pyxf86config
> 
> Section "ServerLayout"
> 	Identifier     "Default Layout"
> 	Screen	0  	"LCD" 0 0
> 	Screen	1 	"VGA" LeftOf "LCD" 
> 	InputDevice    "Mouse0" "CorePointer"
> 	InputDevice    "Keyboard0" "CoreKeyboard"
> EndSection
> 
> Section "ServerFlags"
> 	Option "Xinerama" "true"
> 	Option "Clone" "true"
> EndSection
> 
> Section "Files"
> 
> # RgbPath is the location of the RGB database.  Note, this is the name of the 
> # file minus the extension (like ".txt" or ".db").  There is normally
> # no need to change the default.
> # Multiple FontPath entries are allowed (they are concatenated together)
> # By default, Red Hat 6.0 and later now use a font server independent of
> # the X server to render fonts.
> 	RgbPath      "/usr/X11R6/lib/X11/rgb"
> 	FontPath     "unix/:7100"
> EndSection
> 
> Section "Module"
> 	Load  "dbe"
> 	Load  "extmod"
> 	Load  "fbdevhw"
> 	Load  "glx"
> 	Load  "record"
> 	Load  "freetype"
> 	Load  "type1"
> 	Load  "dri"
> EndSection
> 
> Section "InputDevice"
> 
> # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
> #	Option	"Xleds"		"1 2 3"
> # To disable the XKEYBOARD extension, uncomment XkbDisable.
> #	Option	"XkbDisable"
> # To customise the XKB settings to suit your keyboard, modify the
> # lines below (which are the defaults).  For example, for a non-U.S.
> # keyboard, you will probably want to use:
> #	Option	"XkbModel"	"pc102"
> # If you have a US Microsoft Natural keyboard, you can use:
> #	Option	"XkbModel"	"microsoft"
> #
> # Then to change the language, change the Layout setting.
> # For example, a german layout can be obtained with:
> #	Option	"XkbLayout"	"de"
> # or:
> #	Option	"XkbLayout"	"de"
> #	Option	"XkbVariant"	"nodeadkeys"
> #
> # If you'd like to switch the positions of your capslock and
> # control keys, use:
> #	Option	"XkbOptions"	"ctrl:swapcaps"
> # Or if you just want both to be control, use:
> #	Option	"XkbOptions"	"ctrl:nocaps"
> #
> 	Identifier  "Keyboard0"
> 	Driver      "kbd"
> 	Option	    "XkbModel" "pc105"
> 	Option	    "XkbLayout" "us"
> EndSection
> 
> Section "InputDevice"
> 	Identifier  "Mouse0"
> 	Driver      "mouse"
> 	Option	    "Protocol" "IMPS/2"
> 	Option	    "Device" "/dev/input/mice"
> 	Option	    "ZAxisMapping" "4 5"
> 	Option	    "Emulate3Buttons" "yes"
> EndSection
> 
> Section "Monitor"
> 	Identifier   "Monitor0"
> 	VendorName   "Monitor Vendor"
> 	ModelName    "LCD Panel 1024x768"
> 	HorizSync    31.5 - 48.5
> 	VertRefresh  40.0 - 70.0
> 	Option	    "dpms"
> EndSection
> 
> Section "Monitor" 
>  	Identifier "External Monitor" 
>  	HorizSync 31.5-64.3 
>  	VertRefresh 50-70 
>  	Option  "DPMS" 
> EndSection 
>  
> Section "Device"
> 	Identifier  "Videocard0"
> 	Driver      "i810"
> 	VendorName  "Videocard vendor"
> 	BoardName   "Intel 915"
> #
> # These lines added for Xinerama
> # till end section
> #
>  	Option  "VBERestore" "yes" 
>  	Option  "MonitorLayout" "CRT,LFP" 
>  	Option  "DevicePresence" "yes" 
> # 	BusID  "PCI:0:2:0" 
>  	VideoRam 128000 
>  	Screen  0 
> EndSection
> 
> Section "Device" 
> 	 Identifier "Videocard1" 
> 	 Driver  "i810" 
> 	 Option  "VBERestore" "no" 
> 	 Option  "MonitorLayout" "CRT,LFP" 
> # Option  "DevicePresence" "yes" 
> # BusID  "PCI:0:2:0" 
> 	 VideoRam 128000 
> 	 Screen  1 
> EndSection 
>  
> 
> Section "Screen"
> 	Identifier "LCD"
> 	Device     "Videocard0"
> 	Monitor    "Monitor0"
> 	DefaultDepth     24
> 	SubSection "Display"
> 		Viewport   0 0
> 		Depth     16
> 		Modes     "1024x768" "800x600" "640x480"
> 	EndSubSection
> 	SubSection "Display"
> 		Viewport   0 0
> 		Depth     24
> 		Modes    "1024x768" "800x600" "640x480"
> 	EndSubSection
> EndSection
> 
> Section "Screen" 
>  	Identifier "VGA" 
> 	Device  "Videocard1" 
>  	Monitor  "External Monitor" 
>  	DefaultDepth 16 
>  	SubSection "Display" 
>   		Depth  16 
>   		Modes  "1280x1024" "1024x768" "800x600" "640x480" 
>  	EndSubSection 
> 	SubSection "Display"
> 		Viewport   0 0
> 		Depth     24
> 		Modes    "1280x1024" "1024x768" "800x600" "640x480"
> 	EndSubSection
> EndSection 
> 
> #
> # quello che segue serve per skippy-xd
> # 
> Section "Extensions"
>   Option "Composite" "Enable"
> EndSection
> 
> 
> Section "DRI"
> 	Group        0
> 	Mode         0666
> EndSection
> 

--=-Twx/SvzFBqJ1pThhliBL
Content-Disposition: attachment; filename=xorg.conf
Content-Type: text/plain; name=xorg.conf; charset=utf-8
Content-Transfer-Encoding: 7bit

# /etc/X11/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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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:
#
#   cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
#   sudo sh -c 'md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum'
#   sudo 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	"/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/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
        # paths to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
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"
EndSection

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


Section "Device"
	Identifier	"Videocard0"
	Driver		"i810"
	BusID		"PCI:0:2:0"
        Option  "VBERestore" "yes" 
        Option  "MonitorLayout" "CRT,LFP" 
        Option  "DevicePresence" "yes" 
        Screen  0 
EndSection

Section "Device" 
         Identifier "Videocard1" 
         Driver  "i810" 
         Option  "VBERestore" "no" 
         Option  "MonitorLayout" "CRT,LFP" 
# Option  "DevicePresence" "yes" 
	BusID  "PCI:0:2:0" 
#         VideoRam 128000 
         Screen  1 
EndSection 



Section "Screen"
        Identifier "LCD"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     16
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes     "1024x768" "800x600" "640x480"
        EndSubSection

EndSection

Section "Screen" 
        Identifier "VGA" 
        Device  "Videocard1" 
        Monitor  "External Monitor" 
        DefaultDepth 16 
        SubSection "Display" 
                Depth  16 
                Modes  "1024x768"  
        EndSubSection 

EndSection 


Section "Monitor"
        Identifier   "Monitor0"
	HorizSync       28-49
        VertRefresh     43-72

        Option      "DPMS"
EndSection

Section "Monitor" 
        Identifier "External Monitor" 
        HorizSync       31-64
        VertRefresh     56-75

        Option  "DPMS" 
EndSection 

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen  0       "LCD" 0 0
        Screen  1       "VGA" LeftOf "LCD" 
        InputDevice    "Configured Mouse" "CorePointer"
        InputDevice    "Generic Keyboard" "CoreKeyboard"
EndSection

Section "ServerFlags"
        Option "Xinerama" "false"
        Option "Clone" "true"
EndSection

Section "DRI"
	Mode	0666
EndSection

--=-Twx/SvzFBqJ1pThhliBL--