[clug] Xinerama with a Radeon mobile chipset

Fergus McKenzie-Kay linux at nerdit.com
Fri Jul 2 00:12:36 GMT 2004


On Fri, 02 Jul 2004 09:11:23 +1000, Michael Still <mikal at stillhq.com> wrote:
> 
> Michael Still wrote:
> 
> > What I want is to be able to use the latop dual head with an external
> > monitor, but also quickly and easily swap back to having the external
> > monitor display the same thing as the internal monitor for presentations
> > (at 1024x768). All the xinerama stuff I find on the web seems to be
> > aimed at people with two video cards.
> 
> You guys rock. Anyways, I now have xinerama working on the machine,
> which is very nice. My only final stupid question is "why can't I drag
> windows between the two monitors?" followed on by "can I treat them as
> one big workspace and have a window which goes over both monitors?" (I'm
> thinking huge remote desktop session here.

You should be able to treat it as one big screen.  I know I can with my
desktop.. and my laptop (laptop uses nvidia, but that shouldn't matter).
I'm not sure if it helps but I've attached my XF86Config (see below,
I've left in some of the options commented so I can easily try them out
again) which has radeon card with xinerama working great.  
Both my screens are the same size on my desktop which makes a bit of
difference.. when I use my laptop with an external monitor the laptop
has a much better resolution which can mean that you end up with dead
spots as xinerama treats you 2 monitors as one big "screen" so it takes
the dimensions from the screen with the largest resolution. (If I am
wrong.. or anyone knows a way to get around this please let me know).

 
> It is matters, I'm using something along the lines of
> 
> ScreenLayout "Screen1" LeftOf "Screen2"
> 
> and the mouse moves between the two screens just fine. I'm using Gnome /
> Metacity.
> 
> Config file available on application.
> 
> 
> 
> Cheers,
> Mikal
> 
> --
> 
> Michael Still (mikal at stillhq.com) | "All my life I've had one dream,
> http://www.stillhq.com            |  to achieve my many goals"
> UTC + 10                          |    -- Homer Simpson
> --
> linux mailing list
> linux at lists.samba.org
> http://lists.samba.org/mailman/listinfo/linux
> 



XF86Config:

Section "ServerLayout"
	Identifier     "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	Screen	    1  "Screen1" LeftOf "Screen0"	
	InputDevice    "Keyboard0" "CoreKeyboard"
  InputDevice    "USB Mouse" "CorePointer"
EndSection

Section "ServerFlags"
	Option "Xinerama" "true"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi"
	FontPath     "/usr/X11R6/lib/X11/fonts/Speedo"
	FontPath     "/usr/X11R6/lib/X11/fonts/PEX"
# Additional fonts: Locale, Gimp, TTF...
	FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
#	FontPath     "/usr/X11R6/lib/X11/fonts/latin2/75dpi"
#	FontPath     "/usr/X11R6/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
	FontPath     "/usr/share/fonts/ttf/western"
	FontPath     "/usr/share/fonts/ttf/decoratives"
	FontPath     "/usr/share/fonts/truetype/openoffice"
	FontPath     "/usr/X11R6/lib/X11/fonts/defoma/CID"
	FontPath     "/usr/X11R6/lib/X11/fonts/defoma/TrueType"
EndSection

Section "Module"
  Load  "ddc"  
	Load  "GLcore"
	Load  "dbe"
	Load  "dri"
	#SubSection "extmod"
	#  Option "omit xfree86-dga"  #don't initialise the DGA extension
	#EndSubSection
	Load  "glx"
  Load  "bitmap" # bitmap-fonts
	Load  "speedo"
	Load  "type1"
	Load  "extmod"
	Load  "fbdevhw" 
	Load  "freetype"
	Load  "record"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
  Option      "CoreKeyboard"
	Option "XkbRules" "xfree86"
	Option "XkbModel" "pc104"
	Option "XkbLayout" "us"

EndSection

Section "InputDevice"
	Identifier  "PS/2 Mouse"
	Driver      "mouse"
	Option      "Protocol" "ImPS/2"
	Option      "Device" "/dev/psaux"
	#Option      "Emulate3Buttons" "true"
	#Option      "Emulate3Timeout" "70"
	Option	    "SendCoreEvents"  "true"
EndSection

Section "InputDevice"
  Identifier      "USB Mouse"
  Driver          "mouse"
  Option          "Device"                "/dev/input/mice"
	Option		      "SendCoreEvents"	"true"
  Option          "Protocol"              "IMPS/2"
  Option          "ZAxisMapping"          "4 5"
  Option          "Buttons"               "5"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	ModelName    "DEL FP1702 #0"
	HorizSync    30-80
	VertRefresh  56-60
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	ModelName    "DEL FP1702 #1"
	HorizSync    30-80
	VertRefresh  56-60
EndSection

Section "Device"
	### Available Driver options are:-
# sw_cursor is needed for some ati and radeon cards
        #Option     "sw_cursor"
        #Option     "hw_cursor"
        #Option     "NoAccel"
        #Option     "ShowCache"
        #Option     "ShadowFB"
        #Option     "UseFBDev"
        #Option     "Rotate"
	Identifier  "Card0"
	#Driver      "ati"
	Driver	    "radeon"
	VendorName  "All"
	BoardName   "All"
	BusID       "PCI:1:0:0"
	Screen 0
	Option      "AGPMode" "4"
	Option	    "noaccel"
EndSection

Section "Device"
	### Available Driver options are:-
# sw_cursor is needed for some ati and radeon cards
        #Option     "sw_cursor"
        #Option     "hw_cursor"
        #Option     "NoAccel"
        #Option     "ShowCache"
        #Option     "ShadowFB"
        #Option     "UseFBDev"
        #Option     "Rotate"
	Identifier  "Card1"
# The following line is auto-generated by KNOPPIX mkxf86config
	#Driver      "ati"
	Driver 	    "radeon"
	VendorName  "All"
	BoardName   "All"
	BusID       "PCI:1:0:0"
	Screen 1
	Option      "AGPMode"  "4"
	Option 	    "noaccel"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultColorDepth 16 
	SubSection "Display"
		Depth     16
		Modes "1280x1024"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes "1280x1024"
	EndSubSection
	SubSection "Display"
		Depth     32
		Modes "1280x1024"
	EndSubSection
EndSection


Section "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	DefaultColorDepth 16
	SubSection "Display"
		Depth     16
		Modes "1280x1024"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes "1280x1024"
	EndSubSection
	SubSection "Display"
		Depth     32
		Modes "1280x1024"
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection


More information about the linux mailing list