Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Xorg + 2 Monitors/Desktops + Beryl + nvidia + window
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
hgentoo
n00b
n00b


Joined: 23 Jan 2007
Posts: 74
Location: Ile de France

PostPosted: Wed Jan 31, 2007 12:36 pm    Post subject: [SOLVED]Xorg + 2 Monitors/Desktops + Beryl + nvidia + window Reply with quote

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
View user's profile Send private message
tylerwylie
Guru
Guru


Joined: 19 Sep 2004
Posts: 458
Location: /US/Georgia/Atlanta

PostPosted: Wed Jan 31, 2007 12:50 pm    Post subject: Re: Xorg + 2 Monitors/Desktops + Beryl + nvidia + window Reply with quote

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
View user's profile Send private message
hgentoo
n00b
n00b


Joined: 23 Jan 2007
Posts: 74
Location: Ile de France

PostPosted: Wed Jan 31, 2007 6:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Wed Jan 31, 2007 6:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
hgentoo
n00b
n00b


Joined: 23 Jan 2007
Posts: 74
Location: Ile de France

PostPosted: Wed Jan 31, 2007 6:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Wed Jan 31, 2007 7:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Wed Jan 31, 2007 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
hgentoo
n00b
n00b


Joined: 23 Jan 2007
Posts: 74
Location: Ile de France

PostPosted: Thu Feb 01, 2007 7:23 am    Post subject: Reply with quote

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
View user's profile Send private message
martin20450
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2005
Posts: 91

PostPosted: Thu Feb 01, 2007 9:19 am    Post subject: Reply with quote

Not using Beryl but using enlightenment with all the composite eye candy enabled - see

https://forums.gentoo.org/viewtopic-t-535429-highlight-.html
Back to top
View user's profile Send private message
hgentoo
n00b
n00b


Joined: 23 Jan 2007
Posts: 74
Location: Ile de France

PostPosted: Thu Feb 01, 2007 5:15 pm    Post subject: Reply with quote

Ok, beryl doesn't seem to work neither ksmooth :cry: 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... :roll:
Back to top
View user's profile Send private message
hgentoo
n00b
n00b


Joined: 23 Jan 2007
Posts: 74
Location: Ile de France

PostPosted: Thu Feb 01, 2007 6:18 pm    Post subject: Reply with 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 .
Back to top
View user's profile Send private message
martin20450
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2005
Posts: 91

PostPosted: Thu Feb 01, 2007 6:33 pm    Post subject: Reply with quote

See the link above - here's the line you need:
Code:
Option "ConnectedMonitor" "DFP,CRT"
change to suite your needs
Back to top
View user's profile Send private message
hgentoo
n00b
n00b


Joined: 23 Jan 2007
Posts: 74
Location: Ile de France

PostPosted: Thu Feb 01, 2007 7:22 pm    Post subject: Reply with quote

it crashes my X :?
Back to top
View user's profile Send private message
martin20450
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2005
Posts: 91

PostPosted: Thu Feb 01, 2007 9:23 pm    Post subject: Reply with quote

Have you used the whole config and altered to suit your graphics chip?
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Thu Feb 01, 2007 11:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
hgentoo
n00b
n00b


Joined: 23 Jan 2007
Posts: 74
Location: Ile de France

PostPosted: Fri Feb 02, 2007 1:30 am    Post subject: Reply with quote

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
View user's profile Send private message
hgentoo
n00b
n00b


Joined: 23 Jan 2007
Posts: 74
Location: Ile de France

PostPosted: Fri Feb 02, 2007 2:43 am    Post subject: Reply with quote

I finally find this thread: http://www.nvnews.net/vbulletin/showthread.php?t=54638&page=8 very funny :wink:

Then I updated my nvidia-drivers and all works (the fonts are huge :( ) thanx for all.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum