View previous topic :: View next topic |
Author |
Message |
tomatopi Tux's lil' helper
Joined: 18 Sep 2005 Posts: 130 Location: Ottawa
|
Posted: Tue Mar 04, 2008 10:27 pm Post subject: External monitor and LCD on laptop issues |
|
|
I'm trying for the life of me to get Xorg to have dual monitors - LCD and external monitor, but I'm failing miserably. It's an IBM x41 Tablet with Intel i915 graphics. Windows can deal with dual monitors, but I would much rather use Linux.
The relevant parts of xorg.conf:
Code: |
Section "Monitor"
Identifier "LCD Monitor"
HorizSync 31.5 - 48.5
VertRefresh 50-90
Option "DPMS"
EndSection
Section "Monitor"
Identifier "External LCD"
HorizSync 31.5 - 48.5
VertRefresh 50-90
Option "DPMS"
EndSection
Section "Device"
Identifier "Intel0"
Driver "i810"
Screen 0
BusID "PCI:0:2:0"
Option "MonitorLayout" "CRT,LFP"
Option "Clone" "false"
EndSection
Section "Device"
Identifier "Intel1"
Driver "i810"
Screen 1
BusID "PCI:0:2:1"
Option "Display" "CRT"
Option "MonitorLayout" "CRT,LFP"
EndSection
Section "Screen"
Identifier "Screen 0"
Device "Intel0"
Monitor "LCD Monitor"
DefaultDepth 24
EndSection
Section "Screen"
Identifier "Screen 1"
Device "Intel1"
Monitor "External LCD"
DefaultDepth 24
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen 0 "Screen 0"
Screen 1 "Screen 1" LeftOf "Screen 0"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
EndSection
|
The lspci results for the monitor section is:
Code: |
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
|
However, the best result I get is a clone of the LCD on the external monitor. X won't even start if I try using Xinerama. I read to use the same BusID lines (PCI:0:2:0) for both monitor devices, but X won't start if I do that, either.
I did notice this line in Xorg.0.log which I found strange:
Code: |
(WW) intel: No matching Device section for instance (BusID PCI:0:2:1) found
|
Does anybody have a laptop with i915 and is using both internal and external video outputs that could give me a few clues?
Thanks |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Tue Mar 04, 2008 11:38 pm Post subject: |
|
|
I use the i810 drivers and have cloned my screen. I have tested this with other cards, so I think it's independent of driver, but I can't be sure. Add these lines to your Device section:
Code: | Option "VBERestore" "yes"
Option "Clone" "true"
Option "MonitorLayout" "CRT,LFP"
Option "DevicePresence" "yes" |
This is what my whole driver section looks like:
Code: | Section "Device"
Identifier "Videocard0"
Driver "i810"
BusID "PCI:0:2:0"
### next 4 lines clone display on external VGA ###
Option "VBERestore" "yes"
Option "Clone" "true"
Option "MonitorLayout" "CRT,LFP"
Option "DevicePresence" "yes"
EndSection
|
|
|
Back to top |
|
|
tomatopi Tux's lil' helper
Joined: 18 Sep 2005 Posts: 130 Location: Ottawa
|
Posted: Wed Mar 05, 2008 12:18 am Post subject: |
|
|
Actually, the strange part is, the clone works fine for me here. But I can't get independent dual-head to work in any fashion other than clone mode which is what's frustrating me. I had dual-head working on a desktop with twinview and it works like a charm, though I know that nVidia only, but surely it's possible with i915 graphics.
Peter |
|
Back to top |
|
|
smiffy Apprentice
Joined: 28 Jun 2006 Posts: 259 Location: SA.AU.AP.EARTH
|
Posted: Wed Mar 05, 2008 12:50 am Post subject: |
|
|
You have got different bus IDs for the same card in the two device sections.
I have just this morning set up Xinerama on my ThinkPad (fglrx, but I was following instructions from someone with an Intel driver). Unless you actually have two separate video devices, that PCI address should be the same in both instances - you just change the name. That would explain that error message.
If you are still stuck, just shout and I'll post the relevant bits of my xorg.conf. _________________ Matthew Smith |
|
Back to top |
|
|
tomatopi Tux's lil' helper
Joined: 18 Sep 2005 Posts: 130 Location: Ottawa
|
Posted: Wed Mar 05, 2008 2:47 am Post subject: |
|
|
OK. So I changed the two BusIDs to be the same "PCI:0:2:0". I type startx and I get:
Code: |
(**) intel(0): Framebuffer compression enabled
(**) intel(0): Tiling enabled
(II) intel(0): Attempting memory allocation with tiled buffers.
Backtrace:
0: X(xf86SigHandler+0xa9) [0x80bf84d]
Fatal server error:
Caught signal 11. Server aborting
|
That's my stumbling block that I haven't gotten over. I've been beating my head against the wall for a while on this one with no progress. |
|
Back to top |
|
|
smiffy Apprentice
Joined: 28 Jun 2006 Posts: 259 Location: SA.AU.AP.EARTH
|
Posted: Wed Mar 05, 2008 2:56 am Post subject: |
|
|
Just a few thoughts:
1) Is your driver up to date?
2) Is Xorg up to date?
3) Is Xorg built with the Xinerama USE flag?
I'd try Googling your card or driver model + xorg and see if anyone else is having similar problems - may be a bug specific to that hardware/driver. _________________ Matthew Smith |
|
Back to top |
|
|
basement n00b
Joined: 21 May 2006 Posts: 19
|
Posted: Wed Mar 05, 2008 5:54 am Post subject: |
|
|
If you're using the intel >=2.x driver, you could always drop most of the xorg.conf configuration, and use the xrandr command. I found it easier for my needs.
Relevant part of xorg.conf:
Code: |
Section "Device"
Identifier "Intel 915GM"
Driver "intel"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel 915GM"
SubSection "Display"
Virtual 2048 2048
EndSubSection
EndSection
|
The Virtual is the maximum total resolution. The 915GM seems to disable DRI for resolutions over 2048 pixles, so I keep it at that. When loading X, it will probably start in clone mode. Check what the screen names are called with "xrandr -q", then adjust as you please.
Examples, where LVDS is the x41 screen and VGA is the external screen:
Only external screen: Code: | xrandr --output VGA --auto && xrandr --output LVDS --off |
Only x41 screen: Code: | xrandr --output LVDS --auto && xrandr --output VGA --off |
Dual head with x41 screen located above external screen: Code: | xrandr --output LVDS --auto && xrandr --output VGA --auto --below LVDS |
Then you could throw them into your desktop menu or as keyboard shortcuts. |
|
Back to top |
|
|
tomatopi Tux's lil' helper
Joined: 18 Sep 2005 Posts: 130 Location: Ottawa
|
Posted: Wed Mar 05, 2008 8:12 pm Post subject: |
|
|
Ah ha! That's what I needed. Works perfectly now. I was using xrandr for my screen rotation already, I just didn't know you could use that for dual-head control. It's so easy to work with. I can link that to my IBM hotkey/ACPI function and I'm flying.
Thanks! |
|
Back to top |
|
|
|