You are not logged in.
hi,
i have 2 x screens, but cant get openbox on both at the same time! i looked at the faq in the openbox wiki, but it wasn;t much help;
How do I run Openbox across multiple X screens?
In order to have Openbox manage multiple X screens (this is not the same as multi-monitor TwinView or Xinerama), you need to run an instance of Openbox directly on each screen. We've put work into making Openbox work well with other instances of itself, for this type of configuration.
In order to run Openbox on two screens, use commands such as these:
# run openbox on the second screen (they start from 0)
DISPLAY=:0.1 openbox
# by default openbox will run on the first screen (screen number 0)
exec openbox-session
i assumed that after reading this, all i need to do is put the following into my ~/.xinitrc
DISPLAY=:0.0 openbox
DISPLAY=:0.1 openbox
or
DISPLAY=:0.1 openbox
but neither worked! what have i missed?
Last edited by ninjaprawn (2008-12-16 20:36:14)
2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound
Offline
You can, for example, use this:
xinit /usr/bin/openbox -- :0 # start on display 0.0
xinit /usr/bin/openbox -- :1 # start on display 0.1
Note: you don't put this in .xinitrc, you just run it.
Last edited by moljac024 (2008-11-12 23:05:50)
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
or simply run
startx -- :1
in a terminal from your running openbox session on DISPLAY 0:0. that opens a new openbox session on DISPLAY 0:1.
you can change then with strg-alt-F8.
Last edited by DonVla (2008-11-12 23:35:42)
Offline
or simply run
startx -- :1
in a terminal from your running openbox session on DISPLAY 0:0. that opens a new openbox session on DISPLAY 0:1.
you can change then with strg-alt-F8.
True, but that's assuming that you have OB set up in ~/.xinitrc.... while most people asking this question probably do, never assume.
Offline
Yea, so just put "startx -- :1" in your ~/.config/openbox/autostart.sh and put "exec openbox-session" in your ~/.xinitrc
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
thank you very much!
2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound
Offline
sorry, i might have missed something there! all those suggestions didnt work! X runs on both screens fine already, so does nitrogen! OB only is on my crt, and the mouse goes to my tv fine, just no OB to interact with!
when i run;
xinit /usr/bin/openbox -- :1
its almost like a brand new X server identical to the previous one is started on top! but with no OB, just 2 blank screens with an X for a cursor that moves between the 2 x servers!!! when I ctrl+alt+backspace, X kills on the new session, and I am back to OB on my crt!
when I run;
startx -- :1
OB starts up another session on top of my current one on my crt! when I ctrl+alt+backspace, the new instance of OB is killed, and im back to the previous one on my crt still!!
Last edited by ninjaprawn (2008-11-13 18:34:36)
2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound
Offline
ok, after re-reading all the advice, i think you have all missed the point of what i am trying to achieve!
fluxbox, kde, gnome & xfce all achieve this 'out of the box', openbox & icewm dont!!
i am now concentrating on openbox. i currently have my pc looking & running perfectly, but i cant fire up vlc on my tv! I have a gforce 6200 with crt connection going to a 17" crt, & a tv-out going to a 28" tv!!
my xorg.conf
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/100dpi:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
EndSection
Section "Module"
Load "xtrap"
Load "extmod"
Load "record"
Load "dbe"
Load "glx"
Load "freetype"
EndSection
Section "ServerFlags"
Option "Xinerama" "0"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "logiaccess"
Option "XkbLayout" "gb"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "NCI NEC CI A727"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 150.0
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "TV-0"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NV44A [GeForce 6200]"
Option "MigrationHeuristic" "greedy"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 6200"
BusID "PCI:1:0:0"
Screen 0
Option "MigrationHeuristic" "greedy"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection
Section "Device"
Identifier "Videocard1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 6200"
BusID "PCI:1:0:0"
Screen 1
Option "MigrationHeuristic" "greedy"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "CRT: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "Monitor1"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
Option "TwinView" "0"
Option "metamodes" "TV: 640x400 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
Option "RENDER" "Enable"
EndSection
however, openbox does absolutely nothng with the second screen! x fires up fine on it, but there is no openbox. the way fluxbox achieves this is with its config script having parameters for multiple screens;
session.screen0.tab.placement: TopLeft
session.screen0.tab.width: 64
session.screen0.tab.height: 16
session.screen0.menu.alpha: 150
session.screen0.tabs.maxOver: false
session.screen0.tabs.intitlebar: true
session.screen0.tabs.usePixmap: false
session.screen0.toolbar.tools: prevworkspace, nextworkspace, iconbar, systemtray, clock
session.screen0.toolbar.onTop: False
session.screen0.toolbar.maxOver: false
session.screen0.toolbar.alpha: 224
session.screen0.toolbar.visible: true
session.screen0.toolbar.widthPercent: 86
session.screen0.toolbar.layer: Dock
session.screen0.toolbar.autoHide: false
session.screen0.toolbar.placement: BottomCenter
session.screen0.toolbar.height: 0
session.screen0.toolbar.onhead: 0
session.screen0.titlebar.left: Stick
session.screen0.titlebar.right: Minimize Maximize Close
session.screen0.clientMenu.usePixmap: true
session.screen0.window.focus.alpha: 168
session.screen0.window.unfocus.alpha: 150
session.screen0.iconbar.iconWidth: 140
session.screen0.iconbar.alignment: Left
session.screen0.iconbar.wheelMode: Screen
session.screen0.iconbar.mode: {static groups}
session.screen0.iconbar.iconTextPadding: 40l
session.screen0.iconbar.usePixmap: true
session.screen0.overlay.lineWidth: 1
session.screen0.overlay.lineStyle: LineSolid
session.screen0.overlay.joinStyle: JoinMiter
session.screen0.overlay.capStyle: CapNotLast
session.screen0.slit.onTop: False
session.screen0.slit.acceptKdeDockapps: true
session.screen0.slit.maxOver: false
session.screen0.slit.alpha: 255
session.screen0.slit.direction: Vertical
session.screen0.slit.autoHide: false
session.screen0.slit.layer: Desktop
session.screen0.slit.onhead: 0
session.screen0.slit.placement: LeftBottom
session.screen0.menuMode: Delay
session.screen0.colPlacementDirection: TopToBottom
session.screen0.windowScrollAction:
session.screen0.showwindowposition: false
session.screen0.defaultDeco: NORMAL
session.screen0.noFocusWhileTypingDelay: 0l
session.screen0.decorateTransient: true
session.screen0.workspaceNames: Page 1,Page 2,three,four,
session.screen0.fullMaximization: false
session.screen0.workspacewarping: false
session.screen0.allowRemoteActions: false
session.screen0.userFollowModel: Follow
session.screen0.focusLastWindow: True
session.screen0.rowPlacementDirection: LeftToRight
session.screen0.menuDelayClose: 0
session.screen0.followModel: Ignore
session.screen0.menuDelay: 0
session.screen0.windowPlacement: RowSmartPlacement
session.screen0.reversewheeling: false
session.screen0.focusNewWindows: true
session.screen0.workspaces: 2
session.screen0.opaqueMove: true
session.screen0.clickRaises: true
session.screen0.autoRaise: true
session.screen0.maxIgnoreIncrement: true
session.screen0.demandsAttentionTimeout: 500
session.screen0.desktopwheeling: true
session.screen0.edgeSnapThreshold: 5
session.screen0.tooltipDelay: 500
session.screen0.maxDisableResize: false
session.screen0.windowScrollReverse: false
session.screen0.focusModel: ClickFocus
session.screen0.imageDither: false
session.screen0.resizeMode: Bottom
session.screen0.tabFocusModel: ClickToTabFocus
session.screen0.windowMenu:
session.screen0.strftimeFormat: | %k:%M | %a - %e / %m / 20%y
session.screen0.rootCommand: fbsetbg #/wallpaper/night.jpg
session.screen0.maxDisableMove: false
session.screen1.tab.placement: TopLeft
session.screen1.tab.width: 64
session.screen1.menu.alpha: 150
session.screen1.tabs.maxOver: false
session.screen1.tabs.intitlebar: true
session.screen1.tabs.usePixmap: true
session.screen1.toolbar.tools: iconbar, systemtray, clock
session.screen1.toolbar.maxOver: false
session.screen1.toolbar.alpha: 40
session.screen1.toolbar.visible: true
session.screen1.toolbar.autoHide: true
session.screen1.toolbar.layer: Normal
session.screen1.toolbar.widthPercent: 65
session.screen1.toolbar.placement: BottomCenter
session.screen1.toolbar.height: 0
session.screen1.toolbar.onhead: 0
session.screen1.titlebar.left: Stick
session.screen1.titlebar.right: Minimize Maximize Close
session.screen1.clientMenu.usePixmap: true
session.screen1.window.focus.alpha: 55
session.screen1.window.unfocus.alpha: 40
session.screen1.iconbar.iconWidth: 70
session.screen1.iconbar.alignment: Relative
session.screen1.iconbar.wheelMode: Screen
session.screen1.iconbar.mode: Workspace
session.screen1.iconbar.iconTextPadding: 10l
session.screen1.iconbar.usePixmap: true
session.screen1.overlay.lineWidth: 1
session.screen1.overlay.lineStyle: LineSolid
session.screen1.overlay.joinStyle: JoinMiter
session.screen1.overlay.capStyle: CapNotLast
session.screen1.slit.acceptKdeDockapps: true
session.screen1.slit.layer: Dock
session.screen1.slit.autoHide: false
session.screen1.slit.alpha: 255
session.screen1.slit.maxOver: false
session.screen1.slit.placement: BottomRight
session.screen1.slit.onhead: 0
session.screen1.slit.direction: Vertical
session.screen1.menuMode: Delay
session.screen1.colPlacementDirection: TopToBottom
session.screen1.windowScrollAction:
session.screen1.showwindowposition: true
session.screen1.defaultDeco: NORMAL
session.screen1.noFocusWhileTypingDelay: 0l
session.screen1.decorateTransient: true
session.screen1.workspaceNames: Workspace 2,Workspace 2,
session.screen1.fullMaximization: false
session.screen1.workspacewarping: true
session.screen1.allowRemoteActions: false
session.screen1.userFollowModel: Follow
session.screen1.rowPlacementDirection: LeftToRight
session.screen1.menuDelayClose: 0
session.screen1.menuDelay: 0
session.screen1.followModel: Ignore
session.screen1.windowPlacement: RowSmartPlacement
session.screen1.workspaces: 2
session.screen1.reversewheeling: false
session.screen1.focusNewWindows: true
session.screen1.opaqueMove: false
session.screen1.clickRaises: true
session.screen1.autoRaise: true
session.screen1.maxIgnoreIncrement: true
session.screen1.desktopwheeling: true
session.screen1.edgeSnapThreshold: 0
session.screen1.tooltipDelay: 500
session.screen1.maxDisableResize: false
session.screen1.windowScrollReverse: false
session.screen1.focusModel: ClickFocus
session.screen1.imageDither: false
session.screen1.resizeMode: Bottom
session.screen1.tabFocusModel: ClickToTabFocus
session.screen1.windowMenu:
session.screen1.strftimeFormat: [%k:%M]-[%d/%m/%y]
session.screen1.rootCommand: fbsetbg ~/wallpaper/night.jpg
session.screen1.maxDisableMove: false
session.styleOverlay: ~/.fluxbox/overlay
session.cacheMax: 200l
session.ignoreBorder: false
session.menuFile: ~/.fluxbox/menu
session.opaqueMove: False
session.tabPadding: 0
session.tabsAttachArea: Window
session.groupFile: ~/.fluxbox/groups
session.cacheLife: 5l
session.autoRaiseDelay: 250
session.slitlistFile: ~/.fluxbox/slitlist
session.imageDither: True
session.keyFile: ~/.fluxbox/keys
session.modKey: Mod1
session.styleFile: /home/danny/.fluxbox/styles/MacOSX
session.forcePseudoTransparency: true
session.doubleClickInterval: 250
session.colorsPerChannel: 4
session.configVersion: 10
session.appsFile: ~/.fluxbox/apps
as you can see, screen 0 is defined as well as screen 1!! is there a way of doing this in openbox??
sorry for the long post!
2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound
Offline
ok, i solved the problem!!!! very simple, from everyones advice and the wiki, there is 1 thing missing which was stopping it! '&'
i added this line to my ~/.xinitrc
DISPLAY=:0.1 openbox
but with out it being backgrounded, the script stops on this command until openbox stops running on the 2nd screen! so it never reaches
exec openbox-session
the line that gets added to ~/.xinitrc should be;
DISPLAY=:0.1 openbox &
2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound
Offline