Multi-monitor + multiscreen

Discussions about using Linux guests in VirtualBox.
Post Reply
aruzsi
Posts: 24
Joined: 3. Oct 2008, 20:52
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Linux, Win, DOS

Multi-monitor + multiscreen

Post by aruzsi »

Hi,

Is the Subject: possible?

VBox 4.0.4. Host OS Win XP (not relevant) Guest OS SLES11 SP1 64 bit uptodate with GA.
WM is Gnome.
Configured 2 monitors and 23MB videoRAM.

Linux detects 2 monitors. The resolution is 1024x768. Mode: mirrored.
I can "break up" the mirror and the I get a big screen: 2048x768. sdypinfo said only 1 screen:
:0.0

I want to virtualize my real dual-head environment on the above guest config.
My program is running on 2 (or 4 or 6) monitors but it has to be on different screens
like this: :0.0; :0.1 (:0.2; :0.3 etc.)

I modify the xorg.conf by hand putting into a 2nd monitor+screen definition and I changed
the server layout section. Nothing happened. After it I added a plus device config which
was the same device[0] (device[1]). Nothing.

Can I solve my task in Vbox?
The application program is not too inteligent. The max. resolution can be 1600x1200 but
in that setup the picture is very ugly (my guest resolution in not mirrored mode is
2048x768) and I can't use the remaining pixels. In the real configuration there are
six monitors 1280x1024 each.

So I don't know what is the relatition to multi-monitor, multi-screen, multi-display.

I don't know my xorg.conf is wrong or VBox can't virtualize more heads with one
VGA card.

TIA,
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Multi-monitor + multiscreen

Post by Sasquatch »

Read up on the subject please, you're completely missing the point. VB can provide multiple monitors, just read the manual about it, it explains it all. You also need to install the Guest Additions, then you can use multiple monitors in the Guest and get higher resolutions as well.

What you want to set up is xinerama. What you described with :0.0 and :0.1 is separate X screens, not xinerama where you can drag windows from one monitor to another. Separate X displays have their own X environment and applications cannot be moved between the screens.

So, you've got some reading to do. You're too far off for me to even begin explaining what you need to do. Get the basics, then we can continue.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
aruzsi
Posts: 24
Joined: 3. Oct 2008, 20:52
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Linux, Win, DOS

Re: Multi-monitor + multiscreen

Post by aruzsi »

Sasquatch wrote: What you want to set up is xinerama. What you described with :0.0 and :0.1 is separate X screens, not xinerama where you can drag windows from one monitor to another. Separate X displays have their own X environment and applications cannot be moved between the screens.

So, you've got some reading to do. You're too far off for me to even begin explaining what you need to do. Get the basics, then we can continue.
Maybe you're right.

Here is my real config:
Section "ServerLayout"

# Removed Option "Xinerama" "off"
Identifier "Layout[all]"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" RightOf "Screen1"
Screen 3 "Screen3" RightOf "Screen2"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "0"
EndSection

I think xinerama is off ("0") and I can move the windows between the screens.
The application program runs like this:
3706 ? R 181287:11 ../bin/visual_LINUX MR1.sys MR1.schemas0 . 0 :0.1 MR1.schemas1
3707 ? R 181217:09 ../bin/visual_LINUX2 MR12.sys MR1.schemas2 . 0 :0.3 MR1.schemas3
(I don't have to explice config :0.0 and :0.2.)

The hw is 2 nVidia VGA cards with 4 monitors.
I'd like to virtualize this behaviour.

TIA,
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Multi-monitor + multiscreen

Post by Sasquatch »

Ah, you run apps like that. Let me explain that behaviour by using X forwarding in SSH to explain it.

Two systems, one runs normal, the other uses SSH to connect to the first and has X forwarding enabled, so it can run GUI applications from the other computer on it's own display. The $DISPLAY variable is set as follows:
- Main system :0.0
- Remote system :0.5

On the remote system (that uses SSH), we run firefox. FF shows nicely on the remote system. We however, can't drag it to show on the main system, because it's a separate X display (noted by the $DISPLAY variable). What we actually want is to run firefox on the main display, but executed by the remote system. You would then use your command like this:
env DISPLAY=:0.0 firefox
This will start firefox on the main system, executed through SSH from the remote one. So in essence, you started an application on X display 0, executed by another application on X display 5.

I'm guessing, by your example, the above is what you want to achieve. For that to happen, you have to Google it. I don't know the config to get this going on a dual head system on the top of my head. All that matters is that VB is able to provide this. Some keywords you can use is "separate X config linux" and "multiseat config linux".

Good luck.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply