You are not logged in.

#1 2007-11-13 12:30:46

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 327
Website

Running two wm on two separate x screens

I have set up my tv-out with nvidia-settings to run two separate xscreens since I don't want twinview or xinerama.
When I start x everything works fine and my openbox-session starts on my first screen. The tv displays a black background ( I can set the background for it with nitrogen if I want) and I see the mousepointer on the tv (an x).

Anyway the problem I'm having is that I want fluxbox to handle the windows on the tv, while still running openbox on my computer.
It seems that this could be done by applying the -display option to fluxbox, and that fluxbox (once started on the separate xscreen) will run all applications it start on that screen.
The idea was to run startx and have ~/.xinitrc first run the openbox-session (default on screen 0) and then start the fluxbox-session on screen 1.

But I get this error:

fluxbox -display :1
Error: Couldn't connect to XServer

Even when I put it in .xinitrc. Any ideas?

edit: xorg.conf

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 768
    Screen      1  "Screen1" Above "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    RgbPath         "/usr/X11R6/lib/X11/rgb"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "se"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "BenQ FP222W"
    HorizSync       30.0 - 84.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "SAMSUNG"
    HorizSync       30.0 - 61.0
    VertRefresh     60.0 - 75.0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8500 GT"
    BusID          "PCI:4:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8500 GT"
    BusID          "PCI:4:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard1"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AddARGBGLXVisuals" "True"
    Option         "TwinView" "0"
    Option         "metamodes" "CRT-0: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard0"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "CRT-1: nvidia-auto-select +0+0"
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection

Last edited by xd-0 (2007-11-13 12:32:45)

Offline

#2 2008-01-22 15:38:04

nightm4re
Member
Registered: 2005-12-30
Posts: 42
Website

Re: Running two wm on two separate x screens

your second display is usually :0.1, not :1.

on your first display, open a terminal and do echo $DISPLAY, if that is :0.0, then the second one is usually :0.1.

Offline

Board footer

Powered by FluxBB