LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2007, 05:10 PM   #1
kristof_v
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Debian
Posts: 84

Rep: Reputation: 15
dual screen


hi all,

I had a working dual screen setup on my debian machine.
But after I upgraded from XF86 to xorg, this xorg.conf setup doesn't work anymore.

Now I read this on a Debian wiki:
Code:
o solve this problem, you need to update your xorg.conf:

    *

      drop dual Device/Screen/Monitor sections from
    *

      drop MonitorLayout option and Screen lines from the remaining Device section
    *

      drop dual Screen lines from the ServerLayout section
    *

      drop RightOf/LeftOf indication to the remaining Screen line in ServerLayout section
    *

      add a "Virtual 2048 2048" line in SubSection "Display" to create a large virtual screen where physical monitor will be placed (note that boards < i945 will disable DRI if you use more than 2048 in one direction)
    *

      use xrandr --output VGA --right-of LVDS to place you VGA screen on the right of your internal LCD (see xrandr manpage for details)
Now I removes all the duplicate sections (device, screen, monitor), and the xserver is starting again and I have an image on both screens.
But the image is the same on both (cloned) and I would like to have big desktop spread over the screens like before.
I'm only having troubles with this:

add a "Virtual 2048 2048" line in SubSection "Display" to create a large virtual screen where physical monitor will be placed (note that boards < i945 will disable DRI if you use more than 2048 in one direction)
*

use xrandr --output VGA --right-of LVDS to place you VGA screen on the right of your internal LCD (see xrandr manpage for details)

this is my current xorg.conf:
Code:
Section "Files"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"be"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	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 "Device"
	Identifier	"Device0"
	Driver		"i810"
	BusID		"PCI:0:2:0"
EndSection

Section "Monitor"
	Identifier	"Macbook Monitor"
	Option		"DPMS"
	HorizSync	28-64
	VertRefresh	43-60
EndSection

Section "Screen"
	Identifier	"Macbook Screen"
	Device		"Device0"
	Monitor		"Macbook Monitor"
	DefaultDepth	24
	SubSection "Display"
		Modes		"1280x800"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Dualscreen Layout"
	Screen		"Macbook Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Synaptics Touchpad"
EndSection
any ideas??

Last edited by kristof_v; 06-30-2007 at 05:14 PM.
 
Old 06-30-2007, 05:21 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Well I use xorg and my conf is:

Code:
Section "ServerLayout"
     Identifier     "Layout0"
     Screen      0  "Screen0" 0 0
     Screen      1  "Screen1" RightOf "Screen0"
     InputDevice    "Keyboard0" "CoreKeyboard"
     InputDevice    "Mouse0" "CorePointer"
 EndSection
Unless things have changed dramatically after 6.9
 
Old 06-30-2007, 05:31 PM   #3
kristof_v
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
well, this was my working xorg file:

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

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

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"be"
	Option              "XkbOptions"    "lv3:rwin_switch"
EndSection

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

Section "Device"
	Identifier	"Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
	Driver		"i810"
	Screen		0
	Option 		"MonitorLayout" "DFP,LFP"
	BusID		"PCI:0:2:0"
EndSection

Section "Device"
	Identifier "Device1"
	Driver "i810"
	Screen 1
	Option 	"MonitorLayout" "DFP,LFP"
	BusID "PCI:0:2:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	HorizSync	28-64
	VertRefresh	43-60
EndSection

Section "Monitor"
	Identifier "External Monitor"
	Option "DPMS"
	HorizSync 30-65
	VertRefresh 50-75
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x800"
	EndSubSection
EndSection

Section "Screen"
	Identifier "Secondary Screen"
	Device "Device1"
	Monitor "External Monitor"
	DefaultDepth 24
	SubSection "Display"
		Depth 1
		Modes "1280x1024" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth 4
		Modes "1280x1024" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth 8
		Modes "1280x1024" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth 16
		Modes "1280x1024" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth 24
		Modes "1280x1024" "1024x768" "800x600"
	EndSubSection
EndSection


Section "ServerLayout"
	Identifier "Dual-monitor Layout"
	Screen 0 "Default Screen"
	Screen 1 "Secondary Screen" RightOf "Default Screen"
	#Option "Xinerama" "On"
	#Option "Clone" "On"
	InputDevice "Generic Keyboard"
	InputDevice "Configured Mouse"
EndSection


Section "DRI"
	Mode	0666
EndSection
but the server crashes with:
No valid device on BusID "PCI:0:2:1"

Then I changed BusID "PCI:0:2:0" to BusID "PCI:0:2:1" in Device1 and the server starts.
But again I have the same screen (cloned) on both screens.

Any idea how I can get the extended desktop back like I used to have?
One thing I think that changed is that in the past I used a VGA cable to connect the external screen, and now I'm using a DVI cable.
Could that be the problem?
I don't have the VGA cable anymore to test...
 
Old 06-30-2007, 06:09 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Log out of X and run 'X -scanpci'
It will tell you the correct BusID to use. May help.
 
Old 07-01-2007, 03:43 AM   #5
kristof_v
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
ok dive,

I used X -scanpci and it gives me three lines regarding the video chip.
0:0:0
0:2:0
0:2:1

I use 0:2:0 for device0 (internal laptop lcd) and I tried both 0:0:0 and 0:2:1 for device1 (the external lcd screen).
The Xserver starts, but both screens are cloned and the resolution of device0 is being used for both screens although I set a diiferent resolution for device1 in xorg.conf
The strange thing is that the dual screen setup worked perfectly before the xorg upgrade, with the xorg.conf file I'm using now

Maybe something with the MonitorLayout settings?

these are the warnings in the log file:
Code:
macbook:~# cat /var/log/Xorg.0.log | grep WW
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/X11R6/lib/X11/fonts/misc" does not exist.
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/cyrillic" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/100dpi/" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/75dpi/" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/Type1" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/100dpi" does not exist.
(WW) The directory "/usr/X11R6/lib/X11/fonts/75dpi" does not exist.
(WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
(WW) Including the default font path /usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType.
(WW) intel: No matching Device section for instance (BusID PCI:0:2:1) found
(WW) intel(0): Bad V_BIOS checksum
(WW) intel(0): xf86AllocateGARTMemory: allocation of 10 pages failed
(WW) intel(0): ESR is 0x00000010, page table error
(WW) intel(0): PGTBL_ER is 0x00000102, host pte data, display B pte
(WW) intel(0): Existing errors found in hardware state.
(WW) intel(0): Option "MonitorLayout" is not used
(WW) AIGLX: 3D driver claims to not support visual 0x23
(WW) AIGLX: 3D driver claims to not support visual 0x24
(WW) AIGLX: 3D driver claims to not support visual 0x25
(WW) AIGLX: 3D driver claims to not support visual 0x26
(WW) AIGLX: 3D driver claims to not support visual 0x27
(WW) AIGLX: 3D driver claims to not support visual 0x28
(WW) AIGLX: 3D driver claims to not support visual 0x29
(WW) AIGLX: 3D driver claims to not support visual 0x2a
(WW) AIGLX: 3D driver claims to not support visual 0x2b
(WW) AIGLX: 3D driver claims to not support visual 0x2c
(WW) AIGLX: 3D driver claims to not support visual 0x2d
(WW) AIGLX: 3D driver claims to not support visual 0x2e
(WW) AIGLX: 3D driver claims to not support visual 0x2f
(WW) AIGLX: 3D driver claims to not support visual 0x30
(WW) AIGLX: 3D driver claims to not support visual 0x31
(WW) AIGLX: 3D driver claims to not support visual 0x32

Last edited by kristof_v; 07-01-2007 at 03:50 AM.
 
  


Reply



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
[SOLVED] Dual Monitors, Swapping screen 1 for screen 0 almcneill Linux - Hardware 2 11-30-2006 12:54 PM
fullscreen application and dual-screen: selecting which which screen to use silex_88 Ubuntu 3 10-19-2006 07:51 PM
dual screen Kernel 2.6.5 Ubuntu 1 02-19-2006 11:48 AM
Dual screen, dual X server problem persia Linux - Software 1 08-01-2004 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:08 AM.

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