| View previous topic :: View next topic |
| Author |
Message |
nulo n00b

Joined: 17 Mar 2005 Posts: 2
|
Posted: Thu Mar 17, 2005 1:19 am Post subject: laptop with dual head at work and single elsewhere |
|
|
Hi, I've managed to configure a dual head display on my laptop using xinerama. The problem I'm facing now is that when I'm not at work I haven't got a second monitor and X doesn't seem to notice it .
I face two options here, make a second ServerLayout and somehow detect that I'm not at work and startx that one or configure X so that it notices that the monitor isn't there.
I don't know how to achieve any of those and am open to any other sugestions you might have.
Here goes my xorg.conf in case it helps:
| Code: |
# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************
Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
FontPath "/usr/share/fonts/corefonts"
EndSection
Section "ServerFlags"
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
#DontZap # disable <Crtl><Alt><BS> (server abort)
AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
Option "Xinerama" "On"
Option "DontZoom" "On"
Option "AllowMouseOpenFail" "On"
Option "DontZap" "Off"
EndSection
Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
Load "dri" # direct rendering
EndSection
Section "DRI"
Mode 0666
EndSection
Section "InputDevice"
Identifier "Integrated Keyboard"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "pt"
Option "XkbOptions" ""
EndSection
Section "InputDevice"
Identifier "Touchpad"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/input/mouse0"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "50"
EndSection
Section "InputDevice"
Identifier "Joystick"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/input/mouse1"
EndSection
Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse2"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "Internal Monitor"
VendorName "Generic"
ModelName "Flat Panel 1024x768"
Option "DPMS"
EndSection
Section "Monitor"
Identifier "External Monitor"
VendorName "Generic"
ModelName "External 1024x768"
Option "DPMS"
EndSection
Section "Device"
Identifier "Internal Graphics Adapter"
Driver "radeon"
VendorName "ATI"
BoardName "ATI Radeon Mobility 7500"
BusID "PCI:1:0:0"
Screen 0
Option "MonitorLayout" "LVDS,CRT"
EndSection
Section "Device"
Identifier "External Graphics Adapter"
Driver "radeon"
VendorName "ATI"
BoardName "ATI Radeon"
BusID "PCI:1:0:0"
Screen 1
Option "MonitorLayout" "CRT,LVDS"
EndSection
Section "Screen"
Identifier "Internal Screen"
Device "Internal Graphics Adapter"
Monitor "Internal Monitor"
DefaultColorDepth 24
Subsection "Display"
Depth 24
Modes "1024x768"
EndSubsection
EndSection
Section "Screen"
Identifier "External Screen"
Device "External Graphics Adapter"
Monitor "External Monitor"
DefaultColorDepth 24
Subsection "Display"
Depth 24
Modes "1280x1024"
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Internal Screen" 0 0
Screen 1 "External Screen" LeftOf "Internal Screen"
InputDevice "Integrated Keyboard" "CoreKeyboard"
InputDevice "Touchpad" "CorePointer"
InputDevice "Joystick" "SendCoreEvents"
InputDevice "USB Mouse" "SendCoreEvents"
EndSection
|
|
|
| Back to top |
|
 |
Sir Alaran Apprentice


Joined: 11 Dec 2003 Posts: 182 Location: KSJC
|
Posted: Thu Mar 17, 2005 5:17 am Post subject: |
|
|
The solution to this is pretty trivial. (It's just that knowing the right trivia is so tricky...)
Here's how I did it on my laptop:
| Code: |
Section "Monitor"
Identifier "Monitor0"
#VertRefresh 50-100
#HorizSync 30-50
Option "DPMS" "enable"
EndSection
#Dual Screen
Section "Device"
Identifier "Card0"
Driver "radeon"
Option "RenderAccel" "true"
Option "AGPFastWrite" "true"
Option "MonitorLayout" "LVDS, TMDS"
Option "CRT2Position" "LeftOf"
Option "CRT2HSync" "40-83"
Option "CRT2VRefresh" "50-75"
Option "MergedFB" "true"
Option "MetaModes" "1024x768-1024x768"
BusID "PCI:01:05:0"
BoardName "ATI Radeon D7"
EndSection
#Laptop
Section "Device"
Identifier "Card1"
Driver "radeon"
Option "RenderAccel" "true"
Option "AGPFastWrite" "true"
Option "PageFlip" "true"
BusID "PCI:01:05:0"
BoardName "ATI Radeon D7"
EndSection
#Dual Screen
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x768"
Virtual 2048 768
Viewport 0 0
EndSubsection
EndSection
#Laptop
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor0"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x768"
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Laptop"
Screen "Screen1"
Option "OffTime" "10"
InputDevice "Mouse1" "CorePointer"
InputDevice "Mouse2" "SendCoreEvents"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Section "ServerLayout"
Identifier "Dual"
Screen "Screen0"
Option "OffTime" "10"
InputDevice "Mouse1" "CorePointer"
InputDevice "Mouse2" "SendCoreEvents"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
|
The trick here is to startx using the dual layout you use | Code: | | startx -- -layout Dual | Single monitor is just
Edit: Fixed tags. Submit and Preview buttons are too close together for careless people like me  _________________ D is awesome.
Textadept is my friend. |
|
| Back to top |
|
 |
nulo n00b

Joined: 17 Mar 2005 Posts: 2
|
Posted: Thu Mar 17, 2005 1:02 pm Post subject: make it automaticly on startup |
|
|
I know that way, but I would like to do that automagically on startup . I went through the start scripts but didn't figure this one out. Maybe base it on network, etc. |
|
| Back to top |
|
 |
ZZamboni Tux's lil' helper


Joined: 16 Jan 2004 Posts: 96 Location: Zurich, Switzerland
|
Posted: Thu Mar 17, 2005 1:32 pm Post subject: |
|
|
If your graphics card supports it (for example, Radeon), use MergedFB. It is like Xinerama, but allows "meta-modes", so you configure your two screens, but by switching the meta-mode you can have them displayed on two monitors, or on a single one, which you can scroll about and still have access to all your screens. X.org now contains built-in support for MergedFB. Here's more information:
http://dri.freedesktop.org/wiki/MergedFB
http://gefechtsdienst.de/uman/xorg-alpha.html
And below are the relevant sections of my xorg.conf.
Once you configure this, you use Ctrl-Alt-Plus to switch between meta-modes. So in my setup, I switch between two monitors (1400x1050-1600x1200), a single monitor at internal-LCD resolution (1400x1050), and a single monitor at 1024x768 (for use when I need to connect to a projector). In the second two metamodes, the screen is mirrored on both monitors, and I can scroll around the whole virtual screen.
Note that in my setup, my internal and external monitors have different resolutions. Because the virtual screen needs to be rectangular, this means that even in two-monitor mode, my internal screen scrolls up and down. I've gotten used to it, but I'm also expecting to get a new laptop with internal 1600x1200 soon
| Code: |
Section "ServerLayout"
Identifier "Default Layout"
Screen "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection
...
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Generic Laptop Display Panel 1280x1024"
HorizSync 31.5 - 93.7
VertRefresh 59.0 - 75.0
EndSection
Section "Device"
Identifier "Videocard0"
Driver "radeon"
VendorName "Videocard vendor"
BoardName "ATI Radeon Mobility M6"
Option "AGPMode" "4"
Option "AGPFastWrite" "true"
Option "EnablePageFlip" "true"
Option "dpms"
Option "MergedFB" "true"
Option "DDCMode" "on"
### This is where you define the metamodes, and the characteristics and
### layout of the external monitor
Option "MetaModes" "1400x1050-1600x1200 1400x1050 1024x768"
Option "CRT2Position" "RightOf"
Option "CRT2HSync" "31.5-93.7"
Option "CRT2VRefresh" "59-75"
Option "CRT2ForceOn" "true"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Virtual 3000 1200
Modes "1600x1200" "1400x1050" "1024x768"
EndSubSection
EndSection
|
|
|
| Back to top |
|
 |
un1k77 n00b

Joined: 18 Jul 2005 Posts: 2
|
Posted: Mon Jul 18, 2005 9:53 am Post subject: clone desktop |
|
|
| Hello, I configured my IBM Notebook (RADEON 7500) like the way "ZZamboni" does and I have got a few questions. I use the "clone" parameter to clone my desktop. I have got a TFT with a 1280x1024 resolution and an internal Notebook Display with 1024x768! Is ist possible to use a cloned desktop with different resolutions? Now I have to scroll on my Notebook Display because it uses 1280x1024, too! Thanks for your help! |
|
| Back to top |
|
 |
ZZamboni Tux's lil' helper


Joined: 16 Jan 2004 Posts: 96 Location: Zurich, Switzerland
|
Posted: Mon Jul 18, 2005 6:18 pm Post subject: Re: clone desktop |
|
|
| un1k77 wrote: | | Is ist possible to use a cloned desktop with different resolutions? Now I have to scroll on my Notebook Display because it uses 1280x1024, too! Thanks for your help! |
No, the two cloned displays must have the same resolution. You could create a cloned 1024x768 displays... |
|
| Back to top |
|
 |
un1k77 n00b

Joined: 18 Jul 2005 Posts: 2
|
Posted: Mon Jul 18, 2005 8:33 pm Post subject: video |
|
|
| ok so I have to use only my 19" TFT and scroll on my IBM 1024x768 display. Another Problem I have is that when I want to watch a Video with any Player like VLC or mplayer, it is shown on my Laptop Display and the window on my TFT is black. There is no picture but on my Laptop TFT direct is all fine! Do you have an idea how to switch Videos to my external Display? |
|
| Back to top |
|
 |
ph03n1x l33t


Joined: 06 Feb 2003 Posts: 756
|
Posted: Mon Jul 18, 2005 8:56 pm Post subject: |
|
|
Just a question:
Is the 3D-Acceleration as good as the binary-drivers ati provides? |
|
| Back to top |
|
 |
|