LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-28-2009, 02:40 AM   #1
techman83
LQ Newbie
 
Registered: Feb 2006
Location: Perth - Western Australia
Distribution: Ubuntu
Posts: 14

Rep: Reputation: 0
Dual Screen + Dual X-Sessions in 8.10


Hi All,

I have an IBM T60 with an Intel GMA 943 and a Docking Station. Now since 6.06 I have been running Dual X sessions, as I like to separate my work spaces. Now with 8.04 It was pretty straight forward, comment out the Xinerama option and Hey presto, 2 separate sessions. Now with more Automation in Intrepid, my old xorg.conf fails and no matter what I do by hand, it doesn't seem to honour my Xinerama False setting.

Any ideas would be much appreciated as 8.10 seems very snappy compared to 8.04 and I've grown fond of it over the weekend!

Code:
Section "Device"
	Identifier	"Configured Video Device"
	Screen 0
#	Option		"UseFBDev"		"true"
        Option          "MonitorLayout" "LFP,CRT"
	Option 		"NoDRI"
EndSection

Section "Device" # 
        Identifier      "device1"
        Screen  1
        Option          "MonitorLayout" "LFP,CRT"
	Option 		"NoDRI"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "InputDevice"
        Identifier      "Keyboard0"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "us"
        Option          "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier      "Mouse0"
        Driver          "mouse"
        Option          "CorePointer"
EndSection


Section "Monitor"
        Identifier      "External Monitor"
        Vendorname      "Samsung"
        Modelname       "Samsung SyncMaster 204T/204Ts/214T,SyncMaster Magic CX201Ts(Digital)"
        Horizsync       30-81
        Vertrefresh     56-75
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
#        SubSection "Display"
#	        Virtual 2624 1200
# 	EndSubSection
EndSection

Section "Screen"  
        Identifier      "External Monitor"
        Device          "device1"
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
	screen 0 "Default Screen" 
#	screen 1 "External Monitor" 
	screen 1 "External Monitor" rightof "Default Screen"
	InputDevice "Keyboard0" "CoreKeyboard"
	InputDevice "Mouse0" "CorePointer"
	Option "Xinerama" "False"
EndSection

Section "ServerFlags"
#	Option "Xinerama" "0"
EndSection
I have attached 2 Xorg logs, 1 from a crash with the Original xorg.conf and the current log from above Config.

Any help, even just a prod in the right direction, I understand the Xorg.conf and have written custom ones for a few of my other machines, but have probably stared at this one for too long/don't understand enough about what is happening automatically.
Attached Files
File Type: txt Xorg no Dual Sessions.txt (31.1 KB, 21 views)
File Type: txt X crash.txt (16.9 KB, 9 views)
 
Old 02-02-2009, 04:11 AM   #2
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,065

Rep: Reputation: 146Reputation: 146
It looks like you have a "server layout" section that has two screens, each corresponding to both one device section and one monitor section. I have never used a docking station and am trying to get some features in xinerama working so I can do much more than look at it, but it seems clear why it is not honouring xinerama false (which you can call 'multiple screens false.') You could try X -configure, xorgconfig, xorgcfg, and xorgsetup, if they are all on your system. They are not all always mentioned in easy to find docs, but they make different xorg.confs that you can also piece together.
 
Old 02-02-2009, 06:12 PM   #3
techman83
LQ Newbie
 
Registered: Feb 2006
Location: Perth - Western Australia
Distribution: Ubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
X -configure, now that is a pretty cool trick I will have to remember. Got me a nice starting point.

This is where I'm at now.

Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen	    1  "Screen1" RightOf "Screen0"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	Option		"Xinerama" "false"
EndSection

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

Section "Module"
	Load  "glx"
	Load  "extmod"
	Load  "xtrap"
	Load  "record"
	Load  "dbe"
	Load  "dri"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	Option        "Position" "0 0"
	Option 	     "PreferredMode"  "1024x768"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	 Vendorname      "Samsung"
        Modelname       "Samsung SyncMaster 204T/204Ts/214T,SyncMaster Magic CX201Ts(Digital)"
        Horizsync       30-81
        Vertrefresh     56-75
  modeline  "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
  modeline  "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
  modeline  "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
  modeline  "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
  modeline  "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
  modeline  "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
  modeline  "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
  modeline  "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -vsync -hsync
  modeline  "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
  modeline  "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -vsync -hsync
  modeline  "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
  modeline  "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
  modeline  "1280x1024@75" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
  modeline  "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
  modeline  "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
  modeline  "1280x960@75" 129.86 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
  modeline  "1400x1050@60" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
  modeline  "1600x1200@65" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
  modeline  "1600x1200@60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
	Option "PreferredMode"  "1600x1200"
	Option "RightOf"  "Monitor0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "CacheLines"         	# <i>
        #Option     "Dac6Bit"            	# [<bool>]
        #Option     "DRI"                	# [<bool>]
        #Option     "NoDDC"              	# [<bool>]
        #Option     "ShowCache"          	# [<bool>]
        #Option     "XvMCSurfaces"       	# <i>
        #Option     "PageFlip"           	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	VendorName  "Intel Corporation"
	BoardName   "Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
	BusID       "PCI:0:2:0"
	Option "Monitor-LVDS" "Monitor0"
	Option "Monitor-VGA" "Monitor1"
	Option "MonitorLayout" "CRT,LFP"
	Option "Clone" "false"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Virtual 2624 1200
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card0"
	Monitor    "Monitor1"
EndSection
The big problem is that I think things are transitioning to xRandr and I am not even sure it is possible to do anything more than stretched screen with it (Xinerama is now depreciated I think).

I'm at least a little further in my research. Need to ponder more and take another look after I move house.
 
Old 02-02-2009, 08:17 PM   #4
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,065

Rep: Reputation: 146Reputation: 146
But you wanted to comment out the monitor/screen you are not using, right?
 
Old 02-02-2009, 09:31 PM   #5
techman83
LQ Newbie
 
Registered: Feb 2006
Location: Perth - Western Australia
Distribution: Ubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
Not quite.

Screen One -> X session 1
Screen Two -> X session 2

Currently I can only get clone to work. After more research it seems that I am not the only one having this trouble.

Ie: http://ubuntuforums.org/showthread.php?t=971560

I think it may lie somewhere between Intel's open source driver and xrandr.

Thanks for your help so far. Prompted me to look from a few different angles.

Leon
 
Old 02-11-2009, 03:03 AM   #6
techman83
LQ Newbie
 
Registered: Feb 2006
Location: Perth - Western Australia
Distribution: Ubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
Problem not solved, but I now know what the problem is. The new Intel drivers do not have Zaphod mode and the old i810 drivers (the ones I was using with 8.04) are now depreciated. I installed the packaged and they don't work, so that's as far as I've got time for since I at least have something now.

Using xrandr and the gconftool I can get basically a merged desktop and the panels lining up on the LCD panel, but not the separate "sessions" as before.

Code:
        xrandr --output LVDS --auto --output VGA --auto --right-of LVDS
        gconftool --type int --set /apps/panel/toplevels/top_panel_screen0/monitor 1
        gconftool --type int --set /apps/panel/toplevels/bottom_panel_screen0/monitor 1
Oh and I reduced my xorg.conf down to the following:

Code:
Section "Screen"
	Identifier	"Configured Screen Device"
	Device	"Configured Video Device"
	SubSection "Display"
		Virtual	2624 1200
	EndSubSection
EndSection

Section "Device"
	Identifier	"Configured Video Device"
EndSection
 
  


Reply

Tags
ubuntu810, xorgconf



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using dual monitors/dual heads displays a black screen (Fedora 6) ttnunam Linux - General 4 04-21-2007 12:50 AM
fullscreen application and dual-screen: selecting which which screen to use silex_88 Ubuntu 3 10-19-2006 07:51 PM
Between sessions: cut/paste, multiple on one screen, dual monitors Z505 Linux - General 0 04-03-2005 01:42 PM
Run two different WMs (or gnome-sessions) on dual monitors guardian653 Linux - Software 1 10-31-2004 01:02 AM
Dual screen, dual X server problem persia Linux - Software 1 08-01-2004 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration