Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th November 2008, 03:48 PM
voodoodoc Offline
Registered User
 
Join Date: Jun 2007
Location: RTP, NC
Age: 32
Posts: 112
Dual head setup for laptop that works in and out of the dock

I want to use my laptop at work in dual head mode, plugging 2 LCDs into the docking station, where I have a dvi and a vga port.

I also want to be able to take the laptop out of the docking station and have the display revert back to just working on the laptop. For now I'll settle for just getting dual head working. Xorg does a good job autoconfiguring for the display type when its just 1 thing plugged in, but not so much with two monitors.

One other detail, the LCD panels I want to use are different sizes, one is wide screen the other is not. Here is my xorg.conf, any input is appreciated:

Code:
  2  
  3 Section "ServerLayout" 
  4     Identifier     "Default Layout" 
  5     Screen         "Screen0"  
  6     Screen         "Screen1" RightOf "Screen0" 
  7     InputDevice    "Keyboard0" "CoreKeyboard" 
  8     Option         "xinerama" "on" 
  9     Option         "clone" "off" 
 10 EndSection 
 11  
 12 Section "InputDevice" 
 13 # keyboard added by rhpxl 
 14     Identifier  "Keyboard0" 
 15     Driver      "kbd" 
 16     Option      "XkbModel" "pc105" 
 17     Option      "XkbLayout" "us" 
 18 EndSection 
 19  
 20 Section "Device" 
 21     Identifier  "Videocard0" 
 22     Driver      "intel" 
 23     Screen 0 
 24 EndSection 
 25  
 26 Section "Device" 
 27     Identifier "Videocard1" 
 28     Driver      "intel" 
 29     Screen 1 
 30 EndSection 
 31  
 32 Section "Monitor" 
 33     Identifier "Monitor0" 
 34     Option "DPMS" 
 35 EndSection 
 36  
 37 Section "Monitor" 
 38     Identifier "Monitor1" 
 39     Option "DPMS" 
 40 EndSection 
 41  
 42 Section "Screen" 
 43     Identifier "Screen0" 
 44     Device     "Videocard0" 
 45     DefaultDepth     24 
 46     SubSection "Display" 
 47         Viewport   0 0 
 48         Depth     24 
 49         Modes "1440x900" 
 50     EndSubSection 
 51 EndSection 
 52  
 53 Section "Screen" 
 54     Identifier "Screen1" 
 55     Device     "Videocard1" 
 56     DefaultDepth     24 
 57     SubSection "Display" 
 58         Viewport   0 0 
 59         Depth     24 
 60         Modes "1280x1024" 
 61     EndSubSection 
 62 EndSection
I suspect part of the problem is that xorg doesn't know which LCD to use for which "Monitor" section.

Last edited by voodoodoc; 12th November 2008 at 03:50 PM. Reason: *spell dock right
Reply With Quote
  #2  
Old 13th November 2008, 07:41 PM
voodoodoc Offline
Registered User
 
Join Date: Jun 2007
Location: RTP, NC
Age: 32
Posts: 112
If it helps any I have the following in lspci:
Code:
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
Reply With Quote
  #3  
Old 16th December 2008, 09:21 PM
blacflame Offline
Registered User
 
Join Date: Nov 2008
Posts: 28
Wink Dual Head - Xorg -XRandR - laptops

Voodoodoc,

In general you'll find lots of "dual head" faqs/howtos most are if you have problems with normal configurations, with your particular chipset/card I've had no problem with using XandR an Xorg configuration tool for multiple outputs (TV too). Here is the xorg link for support

http://wiki.x.org/wiki/Projects/XRandR

There is a few of them there, I suggest going with the second one Dual Head/IntelLinuxGraphics for an in depth direction on using the tool, or the third one Think Wiki, just because I found it to be quick and direct with some tech detail.

Either way XrandR 1.2 is great if your using Intel or Radeon X drivers (Xorg) on a laptop w/ or w/o dock. So far I've have a latitude D630 (x64), T43, X60, T60P (current use, eyes are going bad needed the bigger screen)



One's who has no-where to go cannot be lost.....

Last edited by blacflame; 25th June 2009 at 01:30 PM. Reason: Grammatical
Reply With Quote
  #4  
Old 17th December 2008, 02:48 AM
voodoodoc Offline
Registered User
 
Join Date: Jun 2007
Location: RTP, NC
Age: 32
Posts: 112
xrandr is no help, it detects the second monitor but won't display anything on it. The Intel Linux Graphics llink you posted is no good, but I know what website your talkigng about, I've used a setup similar to what they talk about but no go either.

I do have a setup now where it acts like it wants to work, then DRI dumps core.

If I ever get some time I'll debug Xorg and see what the problem and update the post here.
Reply With Quote
  #5  
Old 17th December 2008, 01:15 PM
moosetooth's Avatar
moosetooth Offline
Registered User
 
Join Date: Mar 2006
Location: Land of the "free"
Posts: 128
blacflame is correct. I have intel video on my laptop and that site (http://intellinuxgraphics.org/dualhead.html) was what I used to get dual head working.

In xorg.conf it's important that you have
Code:
# in the Section "Screen"
SubSection "Display"   
   Virtual                 2048 2048
EndSubSection
Or an resolution large enough to encompass both screen resolutions.

Once you have that and restart X you can issue a command such as
xrandr --output TMDS-1 --above LVDS --mode 1920x1080 --rate 60

On my laptop this will cause my LCD tv to become the primary display while my laptop screen becomes secondary. My tv operates at 1920x1080 and my laptop at 1280x800
Reply With Quote
  #6  
Old 17th December 2008, 04:49 PM
voodoodoc Offline
Registered User
 
Join Date: Jun 2007
Location: RTP, NC
Age: 32
Posts: 112
I can get my monitor an laptop display to do "dual head" but that's not what I'm interested in. I can also do the laptop and a TV no problem, I can delete xorg.conf and xorg is smart enough to figure it out for its self. The problem is the scenario where I have my two LCD displays one is wide screen the other is not.

For the record my xorg.conf file now looks like:
Code:
Section "Device"
	Identifier  "Videocard0"
	Driver      "intel"
	#BusID	    "PCI:00:02.0"
    	#Screen 0
    	Option "monitor-VGA" "vga"
	Option "monitor-TMDS-1" "dvi"
	#Option "monitor-LVDS" "internal"
EndSection

Section "Monitor"
   	Identifier "dvi"
	Option "Enable" "true"
EndSection

Section "Monitor"
	Identifier "vga"
	Option "RightOf" "dvi"
	Option "Enable" "true"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	Monitor    "dvi"
	DefaultDepth     24
	Subsection "Display"
		Depth 24
		Virtual 2048 2048
	EndSubSection
EndSection
Reply With Quote
  #7  
Old 17th December 2008, 04:52 PM
moosetooth's Avatar
moosetooth Offline
Registered User
 
Join Date: Mar 2006
Location: Land of the "free"
Posts: 128
What's the output of xrandr when you have the two monitors plugged in?
Reply With Quote
  #8  
Old 18th December 2008, 05:50 PM
blacflame Offline
Registered User
 
Join Date: Nov 2008
Posts: 28
Wink wide screen is me

Voodoo, i'm using wide screen's. You have to mod your xorg.conf with the virtual option in order for it to work, the 2048x2048 default of xrandr makes it numerical impossible to use a wide screen, (less you are using 640x480 on the laptop). Its putting a rectangle in a square....

xrandr -q
--------------------------------------------------------------------------------------------
Screen 0: minimum 320 x 200, current 3360 x 1050, maximum 3360 x 1050
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS connected 1680x1050+1680+0 (normal left inverted right x axis y axis) 331mm x 207mm
1680x1050 60.0*+ 50.0
1280x1024 60.0
1280x960 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
DVI-0 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 434mm x 270mm
1680x1050 59.9*+
1400x1050 60.0
1280x1024 75.0 60.0 60.0
1280x960 60.0
1152x864 75.0 75.0
1024x768 75.1 75.0 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 75.0 72.8 75.0 60.0 59.9
720x400 70.1
------------------------------------------------------------------------------------------------

as you see i use too WFP LCD in high res.
Here's an example xorg.conf. this is one of the primary goals of xorg/xrandr is to get rid of the over complicated xorg.conf. You have no need for multiple screens monitors or devices any more. You simply add the appropriate output options, and the virtual screen.

xorg.conf
---------------------------------------------------------------------------------------------------
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
# keyboard added by rhpxl
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "Monitor" #<- I don't put the location of the monitor so i don't loose a screen (if i want to hot undock) I just open up a terminal when i log in and do "xrandr --output DVI-0 --auto --left-of" and when you #
Identifier "Monitor1" #<- undock just type in a "xrandr --output DVI-0 --off" and you pop it on out roll with it. #
VendorName "MonitorVendor"
VertRefresh 56.0 - 76.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "radeon"
Option "monitor-LVDS" "Monitor0"
Option "monitor-DVD-0" "Monitor1"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 3360 1050 #<- the key here is to add the two desired resolutions (the laptop's, and the monitor's), thats how you figure your Virtual screen, be aware pre intel 960 chipsets will crash with 2048+ sizes#
EndSubSection
EndSection
----------------------------------------------------------------------------------------------------

Hope this helps, you pretty much have everything else right on plus some, , just the also keep in mind, this particular laptop has an ATI card in it so the output references are a bit more sensible. Intel cards have DVI labeled as TMDS. (I failed to pay attention to this detail and was very confused for an hour or two!)
__________________
One who has no-where to go cannot be lost....

Last edited by blacflame; 18th December 2008 at 05:59 PM. Reason: corrected errors
Reply With Quote
  #9  
Old 18th December 2008, 06:21 PM
moosetooth's Avatar
moosetooth Offline
Registered User
 
Join Date: Mar 2006
Location: Land of the "free"
Posts: 128
2048x2048 isn't the default. It must be set.

For intel's site:
Code:
SubSection "Display"
    Depth          24
    Modes         "1280x1024"  "1024x768"   "640x480"
    # This optional entry specifies the virtual screen resolution to be used.
    # If this entry is not present, the virtual screen resolution will be set to
    # accommodate all the valid video modes given in the Modes entry.
    # There is a known issue that DRI doesn't work on pre-965 if maximum is larger than 2048x2048.
    Virtual                 2048 2048
EndSubSection
The intel driver currently has a max of 2048x2048 for the following reason:
Code:
# There is a known issue that DRI doesn't work on pre-965 if maximum is larger than 2048x2048.
So long as you position your screens correctly (one on top of the other) within the virtual screen space everything should fit fine. Also the only thing necessary in the xorg.conf is the virtual declaration. Everything else can be controlled with xrandr. I know. I do it all the time.
Reply With Quote
  #10  
Old 19th December 2008, 05:22 PM
voodoodoc Offline
Registered User
 
Join Date: Jun 2007
Location: RTP, NC
Age: 32
Posts: 112
FINALLY got it working. Thanks for you guys' help. I simplified my xorg.conf to basically look like blacflame's.

xrandr -q still looked the same, said everything was connected, but the damn monitor just would not turn on. So I did what was in his xorg comments:

Code:
xrandr --output VGA --auto

xrandr: cannot find crtc for output VGA
So I ended up killing the laptop screen.
Code:
xrandr --output LVDS --off
Then I was able to run the following command to turn on and position things:
Code:
 xrandr --output TMDS-1 --mode 1440x900 --pos 0x0 --output VGA --mode 1280x960 --pos 1440x0
So to summarize the key things to do are:
1. don't make xorg.conf any more complicated than it needs be should have a single ServerLayout, InputDevice, Monitor, and Screen section. The screen section needs to have the Virtual setting which needs to be set to accommodate both monitors.

2. Make sure xrandr detects all monitors as connected

3. Turn off laptop screen (LVDS)

4. Turn on and position the other monitor
Reply With Quote
  #11  
Old 19th December 2008, 07:07 PM
blacflame Offline
Registered User
 
Join Date: Nov 2008
Posts: 28
Weeners!

Sweet, well done team.

Some additional heads up to you for performance issues.

If you want a higher res than 2048 then you'll start to take a performance hit after about 3100 with a higher end graphics set. not huge, but not game worthy, still productive though, ( i the occasion re-sync flash and a few delayed reactions, but all my systems have 2GBs or more of RAM (and i give max [bios dependent] for dedicated shared VRAM).

And I've got to know, moosetooth you really have stacked monitors for home/office workstations?

An experiment for ya moose, is drop your virtual line in xorg.conf. You'll still be able to extend your desktop no problem. just as long as you don't surpass 2048 horizontally or vertically.
__________________
One who has no-where to go cannot be lost....
Reply With Quote
  #12  
Old 19th December 2008, 07:27 PM
moosetooth's Avatar
moosetooth Offline
Registered User
 
Join Date: Mar 2006
Location: Land of the "free"
Posts: 128
Not physically stacked no. That would be hilarious. Maybe I'll try it.

Quote:
drop your virtual line in xorg.conf. You'll still be able to extend your desktop no problem. just as long as you don't surpass 2048 horizontally or vertically.
Meh, then I'd have to restart X.
Reply With Quote
  #13  
Old 19th December 2008, 11:26 PM
voodoodoc Offline
Registered User
 
Join Date: Jun 2007
Location: RTP, NC
Age: 32
Posts: 112
I changed things to run a much higher resolution, don't notice any performance degradation at all, but I don't play games. Runs a bunch of terminal windows just fine though!
Reply With Quote
  #14  
Old 5th February 2009, 03:05 AM
popogigio Offline
Registered User
 
Join Date: Feb 2009
Posts: 10
Have you been able to figure out the docking?
I'm using an M6300, with F10, and can't seem to get the video to display on my external monitor when docked. I'm still new to the world of Linux, but it looks like I may have to edit the xorg.conf file. I've already posted on the forums, but I'm wondering if I need to do something like you've done voodoodoc?
Reply With Quote
  #15  
Old 2nd March 2009, 11:02 PM
dh96 Offline
Registered User
 
Join Date: Feb 2009
Posts: 6
I'm having similar issues, however a tad simpler. I have a dell d530, and am trying to use both the laptops LCD and a monitor (through the docking station).

As of right now, the only thing I can get is a mirror of the laptops screen, it wont extend.

These are the useful outputs:
Quote:
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
Quote:
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 768
VGA connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
1024x768 60.0*+
800x600 60.3
640x480 59.9
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
1024x768 60.0*+
800x600 60.3
640x480 59.9
TMDS-1 disconnected (normal left inverted right x axis y axis)
TV disconnected (normal left inverted right x axis y axis)
Quote:
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

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

Section "Monitor"
Identifier "Monitor1"
VendorName "Dell"
VertRefresh 60.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "intel"
Option "monitor-LVDS" "Monitor0"
Option "monitor-VGA" "Monitor1"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Modes "1024x768"
Viewport 0 0
Depth 24
Virtual 1024 768
EndSubSection
EndSection
It boots fine with this xorg.conf, however it won't do anything other than mirror the monitors. Any help?
Reply With Quote
Reply

Tags
intel, xrandr

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
no dual head with kde, works with gnome r1200gs Using Fedora 5 13th July 2009 05:33 AM
dual head works in console but not in x voodoodoc Using Fedora 1 18th June 2008 09:19 PM
Dual head setup simon_r2d2 Using Fedora 1 19th May 2006 08:56 PM
Dual head setup decker Hardware & Laptops 2 11th September 2005 03:20 PM


Current GMT-time: 08:32 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat