个人工具

UbuntuHelp:ExternalMonitor/Ibook

来自Ubuntu中文

跳转至: 导航, 搜索

<<Include(Tag/ContentCleanup)>>

  1. title External Monitor iBook

External Monitor on an iBook G4

Ubuntu 6.10 and later

For simply cloning the internal LCD to an external monitor, it is enough to slightly edit `/etc/X11/xorg.conf`: Disable the `UseFBDev` Option and add `Option "MonitorLayout" "LVDS, CRT"`. For my iBook I also need to set an (arbitrary) horizontal and vertical frequency for the external output; if I do not do that, the internal display only starts at 800x600 if there is no external monitor/beamer connected (and thus it cannot detect its resolution). So a working `Device` stanza looks like:

        Identifier      "ATI Technologies Inc M9+ 5C63 [Radeon Mobility 9200 (AGP)]"
        Driver          "ati"
        BusID           "PCI:0:16:0"
        Option          "MonitorLayout"         "LVDS, CRT"
        Option          "CRT2HSync"             "30.0-86.0"
        Option          "CRT2VRefresh"          "50.0-120.0"

If you need more advanced options like Xinerama, please take a look at the following section.

Ubuntu 6.06

The following is my xorg.conf that supports an external monitor with the iBook G4 1.2 GHz. Note that I had to disable "UseFBDev". My installation is a fresh Ubuntu 6.06.

# /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 command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
	FontPath	"/usr/share/X11/fonts/misc"
	FontPath	"/usr/share/X11/fonts/cyrillic"
	FontPath	"/usr/share/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/Type1"
	FontPath	"/usr/share/X11/fonts/100dpi"
	FontPath	"/usr/share/X11/fonts/75dpi"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "ServerFlags"
	Option		"Xinerama" 		"enable"
EndSection

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

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	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"		"ExplorerPS/2"
	Option		"ZAxisMapping"		"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

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

Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "stylus"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "eraser"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/wacom"          # Change to 
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "cursor"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "Device"
	Identifier	"ATI Technologies, Inc. M9+ 5C63 [Radeon Mobility 9000 (AGP)]"
#	Driver		"ati"
	Driver		"radeon"
	BusID		"PCI:0:16:0"
#	Option		"UseFBDev"		"true"
	Screen		0
EndSection

Section "Device"
	Identifier	"VGAOut"
#	Driver		"ati"
	Driver		"radeon"
	BusID		"PCI:0:16:0"
#	Option		"UseFBDev"		"true"
	Screen		1
EndSection

Section "Monitor"
	Identifier	"COLOR LCD"
	Option		"DPMS"
EndSection

Section "Monitor"
	Identifier	"External Monitor"
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"ATI Technologies, Inc. M9+ 5C63 [Radeon Mobility 9000 (AGP)]"
	Monitor		"COLOR LCD"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"External Screen"
	Device		"VGAOut"
	Monitor		"External Monitor"
	DefaultDepth	24


	Subsection "Display"
		Depth		8
		Modes		"1280x1024" "1024x768" "800x600" "640x480"
		#ViewPort	0 0
	EndSubsection
	Subsection "Display"
		Depth		16
		Modes		"1280x1024" "1024x768" "800x600" "640x480"
		#ViewPort	0 0
	EndSubsection
	Subsection "Display"
		Depth		24
		Modes		"1280x1024" "1024x768" "800x600" "640x480"
		#ViewPort	0 0
	EndSubsection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"

#	Screen		"Default Screen"
	Screen 0 	"Default Screen" Absolute 0 0
# Cloning:
#	Screen 1	"External Screen" Relative "Default Screen" 0 0
# Spanning:
	Screen 1	"External Screen" Absolute 1024 0

	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice     "stylus" "SendCoreEvents"
	InputDevice     "cursor" "SendCoreEvents"
	InputDevice     "eraser" "SendCoreEvents"
	InputDevice	"Synaptics Touchpad"
EndSection

Section "DRI"
	Mode	0666
EndSection

Playing videos (Overlay)

The overlay driver can only output to one device at a time, i. e. only to internal LCD screen or external monitor. However, you can switch the target on the fly with the `xvattr` package. `xvattr -a XV_SWITCHCRT -v 0` switches to internal LCD, `xvattr -a XV_SWITCHCRT -v 1` switches to external monitor.

Links

Links that helped me:

  • [1] - Gentoo Linux on an iBook G4 1.33 GHz (mid 2005).
  • [2] - Alessandro Ronchi Wiki : LinuxOnIBookG4.
  • [3] - Gentoo wiki page: HOWTO Dual Monitors.
  • [4] - German opensubscriber forums page: solved Re: Xinerama und libnotify.