You are not logged in.

#1 2010-07-09 03:46:26

liangxuliang
Member
Registered: 2010-07-09
Posts: 13

[help] dual display setting of openbox

Anyone konw the setting of openbox for dual display ?

I know the setting of fluxbox for dual display right now.

My display card is ati 4650HD, and the xorg setting working for dual display.
And using the catalyst driver.

Thanks.

Offline

#2 2010-07-09 03:56:29

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [help] dual display setting of openbox

why don't you simply use xrandr instead of using the WM for managing dual heads


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-07-09 05:14:07

liangxuliang
Member
Registered: 2010-07-09
Posts: 13

Re: [help] dual display setting of openbox

Inxsible wrote:

why don't you simply use xrandr instead of using the WM for managing dual heads

How ?

Can you tell me the detail ?

Offline

#4 2010-07-09 07:55:22

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [help] dual display setting of openbox

liangxuliang wrote:
Inxsible wrote:

why don't you simply use xrandr instead of using the WM for managing dual heads

How ?

Can you tell me the detail ?

Did you even try to search for help on what he said?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2010-07-11 04:16:49

liangxuliang
Member
Registered: 2010-07-09
Posts: 13

Re: [help] dual display setting of openbox

Yes, you are right, the xrandr can use for dual display.

Thanks.

from Google:

How To Setup Dual Monitors With XRandR
Posted by: Tavis J. Hampton on June 1st, 2009
3 Comments

xrandr-screens-scaled

Dual monitor setup in Linux has never been easier. While methods such as the xinerama extension sometimes drive people insane, using RandR (Resize and Rotate) is quick and painless. This will allow you to use both monitors as one big screen instead of two identical ones (cloning). Follow these simple steps to get started.

Note: This HOWTO assumes that you are using the opensource drivers for your video card (ATI or Intel). Nvidia and AMD proprietary drivers come with their dual screen components.

1. Setup your xorg.conf configuration file:

Edit it as root:

gksudo gedit /etc/X11/xorg.conf

(in GNOME) or

kdesudo kate /etc/X11/xorg.conf

(in KDE)

2. Create a subsection under the “Screen” section with the following.

SubSection "Display"
Depth 24
Modes "1440x900" "1440x900" #the resolutions of your monitors
Virtual 2880 800
EndSubSection

Xrandr will function without these xorg.conf lines, but it will limit the size of your desktop.

For my computer, I am using two monitors with 1440×900 resolution. If you have a different resolution, put those resolutions under “modes” and then combine the width of both for “virtual”. In other words, if you have a 1280×800 monitor, it would be “Virtual 2560 800?.

3. Save your changes, exit and restart X.

4. Now, you can setup your dual screens however you like. First find out some information about the screens. Open a terminal emulator and type:

xrandr -q

It should tell you the name of each screen and its current resolution. On my computer, my screens are “DVI-0? and “DVI-1?.

5. To make one large desktop including both screens, run this command:

xrandr --auto --output DVI-0 --mode 1440x900 --right-of DVI-1

DVI-0 is on the right, and DVI-1 is on the left.

6. Create a script called “startxrandr” to run this command whenever you want.

#!/bin/sh
xrandr --auto --output DVI-0 --mode 1440x900 --right-of DVI-1

7. Make sure to make the script executable

chmod a+x startxrandr

That is all it takes. You can play around with it and see all of xrandr’s commands by running “xrandr -help”.

Notes:

There are also a few GUI applications that allow you to control xrandr. Check with your Linux distribution.

You can set xrandr to run when your display manager or desktop environment starts. See the its documentation for startup applications.

KDE and GNOME will automatically configure two screens correctly so that maximizing a window will only fill one of the screens. Some desktop environments do not yet have support for this. You will have to test the one you use. You should have no problems with Compiz.

You can have two monitors with different resolutions, which is useful if you are using a laptop connected to a larger monitor.

In KDE, each screen will automatically be a different activity, and you can apply different widgets on each.

Some applications, especially those that rely on SDL (like many Linux games), may not honor your xrandr settings. If you are lucky, it will just clone the game on both screens. For applications like Boxee, you will need to set the environment variable before starting it:

export SDL_VIDEO_FULLSCREEN_HEAD=1

Offline

#6 2010-07-11 05:00:21

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [help] dual display setting of openbox

Perfect !

Problem solved. If you would be so kind to makr your thread solved smile


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2010-07-13 23:10:16

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [help] dual display setting of openbox

I don't want to open a new topic, so I'll ask here. I've managed to get the dualscreen working with xrandr. Now, is it possible to get some dock for Openbox to open/show only on that "external" monitor? I want some Macish dock only on that monitor, so I can make use of the space I have.

Offline

#8 2010-07-14 01:45:52

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: [help] dual display setting of openbox

Have you tried Wbar? I've used it in the past and it was dead simple to learn and (iirc) is good with dual monitors.

Offline

#9 2010-07-14 09:49:51

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [help] dual display setting of openbox

I thought about it, but I have no idea of how to place it on the second screen...
Edit: Tried wbar. Looks awesome, and the position is good. smile

Last edited by archman-cro (2010-07-14 09:58:41)

Offline

Board footer

Powered by FluxBB