View previous topic :: View next topic |
Author |
Message |
hgentoo n00b
Joined: 23 Jan 2007 Posts: 74 Location: Ile de France
|
Posted: Wed Jan 31, 2007 12:36 pm Post subject: [SOLVED]Xorg + 2 Monitors/Desktops + Beryl + nvidia + window |
|
|
Hi, I've tried to run a "dual screen" like on windows nvidia drivers (I mean 2 desktops and you can move window like cursor from one to the other). Now on linux I have two desktops but I can't move window from one to the other just cursor. And the problem is that I like very much beryl and when beryl-wm is running the second desktop is freezing, I can move the cursor but nothing happends. So I would like beryl to work on both desktops/monitors and to have the possibility to move window from one to the other.
Here is me xorg.conf:
Code: | Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "glx"
Load "extmod"
Load "xtrap"
Load "record"
Load "dbe"
#Load "dri"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31-60
VertRefresh 56-75
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV40 [GeForce 6800 GT]"
BusID "AGP:1:0:0"
Option "AllowGLXWithComposite" "On"
Option "RenderAccel" "true"
Option "UseDisplayDevice" "DFP-0"
Screen 0
EndSection
Section "Device"
Identifier "Card1"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV40 [GeForce 6800 GT]"
BusID "AGP:1:0:0"
Option "AllowGLXWithComposite" "On"
Option "RenderAccel" "true"
Option "UseDisplayDevice" "CRT-1"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
|
Last edited by hgentoo on Fri Feb 02, 2007 8:59 pm; edited 1 time in total |
|
Back to top |
|
|
tylerwylie Guru
Joined: 19 Sep 2004 Posts: 458 Location: /US/Georgia/Atlanta
|
Posted: Wed Jan 31, 2007 12:50 pm Post subject: Re: Xorg + 2 Monitors/Desktops + Beryl + nvidia + window |
|
|
hgentoo wrote: | Hi, I've tried to run a "dual screen" like on windows nvidia drivers (I mean 2 desktops and you can move window like cursor from one to the other). Now on linux I have two desktops but I can't move window from one to the other just cursor. And the problem is that I like very much beryl and when beryl-wm is running the second desktop is freezing, I can move the cursor but nothing happends. So I would like beryl to work on both desktops/monitors and to have the possibility to move window from one to the other.
Here is me xorg.conf:
Code: | Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "glx"
Load "extmod"
Load "xtrap"
Load "record"
Load "dbe"
#Load "dri"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31-60
VertRefresh 56-75
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV40 [GeForce 6800 GT]"
BusID "AGP:1:0:0"
Option "AllowGLXWithComposite" "On"
Option "RenderAccel" "true"
Option "UseDisplayDevice" "DFP-0"
Screen 0
EndSection
Section "Device"
Identifier "Card1"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV40 [GeForce 6800 GT]"
BusID "AGP:1:0:0"
Option "AllowGLXWithComposite" "On"
Option "RenderAccel" "true"
Option "UseDisplayDevice" "CRT-1"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
|
| You're missing the twinview options, and if you have only 1 card you should only need one Device section, with both screens using Card0. Gentoo-wiki has info on how to setup TwinView, also make sure everything's compiled with Xinerama support |
|
Back to top |
|
|
hgentoo n00b
Joined: 23 Jan 2007 Posts: 74 Location: Ile de France
|
Posted: Wed Jan 31, 2007 6:04 pm Post subject: |
|
|
No no I don't want twin screen: I want two distincts desktops like I got now + the possibility to move window from a screen to the other. |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Wed Jan 31, 2007 6:22 pm Post subject: |
|
|
I could be wrong, but I think beryl does not work on multiple screens
unless you use twinview. But also, doesn't twinview have a "clone"
option to get what you want? |
|
Back to top |
|
|
hgentoo n00b
Joined: 23 Jan 2007 Posts: 74 Location: Ile de France
|
Posted: Wed Jan 31, 2007 6:59 pm Post subject: |
|
|
Ok I understand now what you mean: but I would like kde to recognize the border of each screen (ex: to watch tv in one) and ksmoothdock and kpannel not to start in the middle of the virtual screen like they do now. I think I have to re emerge kde + gnome with the xinerama flag.
Here is a xorg.conf that works with twinview for me but kde sees both monitor like a unique:
Code: | Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "glx"
Load "extmod"
Load "xtrap"
Load "record"
Load "dbe"
#Load "dri"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31-79
VertRefresh 56-75
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV40 [GeForce 6800 GT]"
BusID "AGP:1:0:0"
Option "AllowGLXWithComposite" "On"
Option "RenderAccel" "true"
Option "ConnectedMonitor" "DFP-0,CRT-1"
Option "IgnoreDisplayDevices" "TV"
Option "TwinView" "true"
Option "SecondMonitorHorizSync" "31-79"
Option "SecondMonitorVertRefresh" "56-75"
Option "MetaModes" "DFP-0: 1280x1024, CRT-1: 1024x768;"
Option "TwinViewOrientation" "LeftOf"
Option "Xinerama" "on"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
|
Last edited by hgentoo on Wed Jan 31, 2007 7:32 pm; edited 1 time in total |
|
Back to top |
|
|
Dan Veteran
Joined: 25 Oct 2005 Posts: 1302
|
Posted: Wed Jan 31, 2007 7:28 pm Post subject: |
|
|
using twinview will give you what you want. Single desktop that you can drag windows from one monitor to the other at your discretion. You can place icons on either and drag the task bar/toolbar to either monitor.
and no you can not use xinerama with beryl, use twinview. _________________ - Failure is not an option. It's bundled with your software. |
|
Back to top |
|
|
shakti Guru
Joined: 15 May 2002 Posts: 358 Location: omnipresent
|
Posted: Wed Jan 31, 2007 8:04 pm Post subject: |
|
|
is the xinerama useflag set and everything compiled with it?
beryl will not run with xinerama active. (grey windows on one screen and flicker windows on the other for me) _________________ Using Gentoo since 2002. |
|
Back to top |
|
|
hgentoo n00b
Joined: 23 Jan 2007 Posts: 74 Location: Ile de France
|
Posted: Thu Feb 01, 2007 7:23 am Post subject: |
|
|
Okay done, kde works , just ksmoothdock keeps staying in the middle of the virtual screen and I don't understand why (even if I had emerge it wihe xinerama flag (maybe I have to reboot ?). |
|
Back to top |
|
|
martin20450 Tux's lil' helper
Joined: 30 Sep 2005 Posts: 91
|
|
Back to top |
|
|
hgentoo n00b
Joined: 23 Jan 2007 Posts: 74 Location: Ile de France
|
Posted: Thu Feb 01, 2007 5:15 pm Post subject: |
|
|
Ok, beryl doesn't seem to work neither ksmooth and I don't understand why my CRT monitor is set as first monitor, I want to switch and I don't know how to do that... |
|
Back to top |
|
|
hgentoo n00b
Joined: 23 Jan 2007 Posts: 74 Location: Ile de France
|
Posted: Thu Feb 01, 2007 6:18 pm Post subject: |
|
|
Please some one knows how to switch monitor order ?? I would like the DFP to be the 1 and the CRT to be the 2 in kde & kdm but I can't find how . |
|
Back to top |
|
|
martin20450 Tux's lil' helper
Joined: 30 Sep 2005 Posts: 91
|
Posted: Thu Feb 01, 2007 6:33 pm Post subject: |
|
|
See the link above - here's the line you need: Code: | Option "ConnectedMonitor" "DFP,CRT" | change to suite your needs |
|
Back to top |
|
|
hgentoo n00b
Joined: 23 Jan 2007 Posts: 74 Location: Ile de France
|
Posted: Thu Feb 01, 2007 7:22 pm Post subject: |
|
|
it crashes my X |
|
Back to top |
|
|
martin20450 Tux's lil' helper
Joined: 30 Sep 2005 Posts: 91
|
Posted: Thu Feb 01, 2007 9:23 pm Post subject: |
|
|
Have you used the whole config and altered to suit your graphics chip? |
|
Back to top |
|
|
Dan Veteran
Joined: 25 Oct 2005 Posts: 1302
|
Posted: Thu Feb 01, 2007 11:04 pm Post subject: |
|
|
Quote: | Please some one knows how to switch monitor order ?? I would like the DFP to be the 1 and the CRT to be the 2 in kde & kdm but I can't find how . |
Option "TwinView" "on"
Option "ConnectedMonitor" "DFP,CRT"
Option "TwinViewOrientation" "RightOf"
Option "TwinViewXineramaInfoOrder" "DFP, CRT"
is what you want.
You may decide you want LeftOf depending on your situation. But that will get your DFP 1st. _________________ - Failure is not an option. It's bundled with your software. |
|
Back to top |
|
|
hgentoo n00b
Joined: 23 Jan 2007 Posts: 74 Location: Ile de France
|
Posted: Fri Feb 02, 2007 1:30 am Post subject: |
|
|
If I set Option "ConnectedMonitor" "DFP,CRT" and not "DFP-0,CRT-1" X crashes with two green empty sreeen and I have to reboot! To add Option "TwinViewXineramaOrder" "DFP-0,CRT-1" doesn't change any thing , kde still says that the DFT is the second screen and not the first! Maybe ther is a kde's config file where to set the first and the second monitor?
Code: |
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "glx"
Load "extmod"
Load "xtrap"
Load "record"
Load "dbe"
#Load "dri"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
#HorizSync 31-79
#VertRefresh 56-75
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV40 [GeForce 6800 GT]"
BusID "AGP:1:0:0"
Option "AllowGLXWithComposite" "On"
Option "RenderAccel" "true"
Option "ConnectedMonitor" "CRT-1,DFP-0"
Option "IgnoreDisplayDevices" "TV"
Option "TwinViewXineramaInfoOrder" "DFP-0,CRT-1"
Option "TwinView" "on"
Option "SecondMonitorHorizSync" "31-79"
Option "SecondMonitorVertRefresh" "56-75"
Option "MetaModes" "DFP-1: 1280x1024, CRT-0: 1280x1024;"
Option "TwinViewOrientation" "CRT-1 RightOf DFP-0"
Option "DynamicTwinView" "1"
Option "Xinerama" "on"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
|
Is there anything wrong ? ? |
|
Back to top |
|
|
hgentoo n00b
Joined: 23 Jan 2007 Posts: 74 Location: Ile de France
|
|
Back to top |
|
|
|