«

»

Jul 27

P7120D xorg.conf

Yeah, it’s ugly, but I thought others might make use of the xorg.conf from my groovy little fanless laptop, the Fujitsu Lifebook P7120D, running Gentoo Linux and xorg-server 1.2.0. I based this off of an xorg.conf I found on the web last year, and has been edited (a lot) as I found new information. This also requires use of 915resoultion, at least with xorg-server 1.2.0 (I’ve heard rumors that 1.3.0 will eliminate this dependency), to handle the non-standard resolution of the laptop’s LCD (1280×768). Switching between dual screens and single screen still requires editing of this file and uncommenting the desired configuration in “ServerFlags” and commenting the other section lines before restarting X.

#
# xorg config
#

# configuration to use
Section "ServerFlags"
	#Option		"DefaultServerLayout" "Single Local Layout"
	Option		"DefaultServerLayout" "Single External Layout"
	#Option		"DefaultServerLayout" "Double Share Desktop Layout"
	#Option		"DefaultServerLayout" "Double Separate Desktop Layout"
EndSection

# two screens sharing a desktop, external 1280x1024
Section "ServerLayout"
	Identifier	"Double Share Desktop Layout"
	Screen		0 "Dual Local Screen" Below "Dual External Screen"
	Screen		1 "Dual External Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Synaptics Touchpad"
	Option		"Xinerama" "true"
EndSection

# two screens with two desktop, external 1280x1024
Section "ServerLayout"
	Identifier	"Double Separate Desktop 1280 Layout"
	Screen		0 "Dual Local Screen" Below "Dual External Screen"
	Screen		1 "Dual External Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Synaptics Touchpad"
EndSection

# one screen one desktop on local lcd
Section "ServerLayout"
	Identifier	"Single Local Layout"
	Screen		"Single Local Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Synaptics Touchpad"
EndSection

# one screen one desktop on external 1280 display
Section "ServerLayout"
	Identifier	"Single External Layout"
	Screen		"Single External Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Synaptics Touchpad"
EndSection

# font files
Section "Files"
	RgbPath		"/usr/share/x11/rgb"
	ModulePath	"/usr/lib/xorg/modules"
	FontPath	"unix/:-1"			# local font server
EndSection

# test what this does
Section "Extensions"
	# required for shadows, transparent windows etc.
	Option "Composite" "true"
EndSection

# modules to use
Section "Module"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"dri"
	Load	"evdev"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"type1"
	Load	"vbe"
EndSection

# keyboard
Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
#	Option		"XkbRules"	"xorg"
#	Option		"XkbModel"	"inspiron"

	# required for non-us keyboard layouts
	# Option		"XkbLayout"	"de"
	# Option		"XkbOptions"	"nodeadkeys"
EndSection

# an external mouse, e.g. USB or bluetooth
Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

# apple mighty mouse
Section "InputDevice"
	Identifier	"EV Mouse"
	Driver		"evdev"
	Option		"Protocol"		"auto"
	Option		"Device"		"/dev/input/event2"
EndSection

# touchpad
Section "InputDevice"
	Identifier      "Synaptics Touchpad"
	Driver          "synaptics"
	Option		"CorePointer"
	Option          "SendCoreEvents"        "true"
	Option          "Device"                "/dev/psaux"
	Option          "Protocol"              "auto-dev"
	#Option        "SHMConfig"       "off"
	Option		"SHMConfig"	"on"
	# User customied stuff
	#Option        "Protocol"        "auto-dev"
	#Option        "LeftEdge"        "1700"
	#Option        "RightEdge"       "5300"
	#Option        "TopEdge"         "1700"
	#Option        "BottomEdge"      "4200"
	#Option        "FingerLow"       "50"
	#Option        "FingerHigh"      "60"
#	Option        "MaxTapTime"      "180"
	#Option        "MaxTapTime"      "0"
	#Option        "MaxTapMove"      "220"
	#Option        "VertScrollDelta" "100"
	#Option        "MinSpeed"        "0.06"
	Option        "MaxSpeed"        "0.5"
	#Option        "AccelFactor"     "0.002"
	#Option        "TapButton1"      "1"
	#Option        "TapButton2"      "1"
	#Option        "TapButton3"      "1"
	#Option        "LTCornerButton"  "2"
	Option        "PalmDetect"	"true"
	#Option        "TouchpadOff"	"1"
EndSection

# laptop lcd device section
Section "Device"
	Identifier	"Single LocalLCD Device"
	Driver		"i810" # change to vesa if it doesn't work
	BusID		"PCI:0:2:0"
        VideoRam	131072
	Screen		0

        #Option		"PageFlip"		"true"
        #Option		"VBERestore"		"true"
        Option		"DRI"			"true"
        #Option		"DisplayInfo"		"true"
	Option          "DevicePresence"        "true"

	# ddc might complain about a wrong refreshrate
	Option		"DDC"		"true"
EndSection

# duplicated laptop lcd and external device section
Section "Device"
	Identifier	"Double Duplicated Device"
	Driver		"i810" # change to vesa if it doesn't work
	BusID		"PCI:0:2:0"

	##### test this one
	#Option		"AGPFastWrite" "true"

	Screen		0

	# options for the i810 module only!
	# external monitor and local flat panel
	Option		"MonitorLayout"	"CRT,LFP"
	# ddc might complain about a wrong refreshrate
	Option		"DDC"		"true"
	Option          "DevicePresence"        "true"

	# use the next two lines to enable a cloned display for the external monitor
	# this might be used instead of dual head / xinerama (e.g. for presentations / beamer)
	Option "Clone" "On"
	# refreshrate for the external monitor
	Option "CloneRefresh" "60"
EndSection

# laptop lcd device section
Section "Device"
	Identifier	"Dual LocalLCD Device"
	Driver		"i810" # change to vesa if it doesn't work
	BusID		"PCI:0:2:0"
	VideoRam              131072

	##### test this one
	#Option		"AGPFastWrite" "true"

	Screen		0

	# options for the i810 module only!
	# external monitor and local flat panel
	Option		"MonitorLayout"	"CRT,LFP"
	# ddc might complain about a wrong refreshrate
	Option		"DDC"		"true"
	#Option		"PageFlip"		"true"
        #Option		"VBERestore"		"true"
        #Option		"DRI"			"true"
        #Option		"DisplayInfo"		"true"

	Option		"DevicePresence"	"true"

	# use the next two lines to enable a cloned display for the external monitor
	# this might be used instead of dual head / xinerama (e.g. for presentations / beamer)
#	Option "Clone" "On"
	# refreshrate for the external monitor
#	Option "CloneRefresh" "60"
EndSection

# external vga device as dual display section
Section "Device"
	Identifier	"Dual VGAOUT Device"
	Driver		"i810"
	BusID		"PCI:0:2:0"
	Screen		1
	Option		"MonitorLayout"	"CRT,LFP"

 	##### test this one
	#Option		"AGPFastWrite" "true"
	#Option		"PageFlip"		"true"
        #Option		"VBERestore"		"true"
        #Option		"DRI"			"true"

	Option		"DDC"		"true"
	Option          "DisplayInfo"           "true"
	Option          "DevicePresence"        "true"
EndSection

# external vga device as only display section
Section "Device"
	Identifier	"Single VGAOUT Device"
	Driver		"i810"
	BusID		"PCI:0:2:0"
	Screen		0
	Option		"MonitorLayout"	"CRT"
	Option          "DevicePresence"        "true"
	Option		"DRI"	"true"
	Option		"DDC"	"true"

 	##### test this one
	#Option		"AGPFastWrite" "true"
EndSection

# laptop lcd monitor section
Section "Monitor"
	Identifier	"Fujitsu P7120 LCD Monitor"
	VendorName	"Fujitsu"
	ModelName	"P7120"
	Option		"DPMS"
	DisplaySize	230 139
	#DisplaySize	115 70
EndSection

# external generic vga monitor section
Section "Monitor"
	Identifier	"Generic VGA Monitor"
	Option "DPMS"
	DisplaySize	200 150
EndSection

# laptop 1280x768 lcd screen section
Section "Screen"
	Identifier	"Single Local Screen"
	Device		"Single LocalLCD Device"
	Monitor		"Fujitsu P7120 LCD Monitor"
	DefaultDepth	24
	SubSection "Display"
		# test this
		Viewport	0 0

		Depth		24
		Modes		"1280x768"
	EndSubSection
EndSection

# laptop 1280x768 lcd screen section
Section "Screen"
	Identifier	"Dual Local Screen"
	Device		"Dual LocalLCD Device"
	Monitor		"Fujitsu P7120 LCD Monitor"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1280x768"
	EndSubSection
EndSection

# dual display with external VGA
Section "Screen"
	Identifier	"Dual External Screen"
	Device		"Dual VGAOUT Device"
	Monitor		"Generic VGA Monitor"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1600x1200"
	EndSubSection
EndSection

# single display with generic VGA output screen section
Section "Screen"
	Identifier	"Single External Screen"
	Device		"Single VGAOUT Device"
	Monitor		"Generic VGA Monitor"
	DefaultDepth	24
	SubSection "Display"

		##### test this
		Viewport	0 0

		Depth		24
		Modes		"1600x1200" "1280x1024" "1024x768"
	EndSubSection
EndSection

# dri options
Section "DRI"
	Mode	0666
EndSection

1 comment

  1. Jesse

    Yeah, so I bit the bullet about six months ago, and have a stub configuration in /etc/X11/xorg.conf:


    Section "Files"
    FontPath "/usr/share/fonts/artwiz-aleczapka-en"
    FontPath "/usr/share/fonts/artwiz-latin1"
    FontPath "/usr/share/fonts/sgi-fonts"
    FontPath "/usr/share/fonts/OTF"
    FontPath "/usr/share/fonts/terminus"
    FontPath "/usr/share/fonts/liberation-fonts"
    FontPath "/usr/share/fonts/libertine-ttf"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/dina"
    FontPath "/usr/share/fonts/droid"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/droid"
    FontPath "/usr/share/fonts/xawtv"
    FontPath "/usr/share/fonts/Speedo"
    FontPath "/usr/share/fonts/texcm-ttf"
    FontPath "/usr/share/fonts/dejavu"
    FontPath "/usr/share/fonts/freefonts"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/corefonts"
    FontPath "/usr/share/fonts/ttf-bitstream-vera"
    FontPath "/usr/share/fonts/inconsolata"
    FontPath "/usr/share/fonts/default/ghostscript"
    FontPath "/usr/share/fonts/cyrillic"
    EndSection

    The autodetect configuration works okay. However, when I start X with a monitor attached to the VGA port, Xorg gets VGA1’s best” configuration, but sets the bult-in “LVDS1” LCD screen to 1024×768, with black borders. I can correct this with a quick

    xrandr --output LVDS1 --auto

    All in all, not bad. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


Clef two-factor authentication