<div class="gmail_quote">On Mon, Mar 28, 2011 at 4:20 PM, Alon Levy <span dir="ltr"><<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Mon, Mar 28, 2011 at 04:04:11PM +0400, Emre Erenoglu wrote:<br>
> On Mon, Mar 28, 2011 at 3:16 PM, Alon Levy <<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>> wrote:<br>
><br>
> > On Mon, Mar 28, 2011 at 10:11:38AM +0400, Emre Erenoglu wrote:<br>
> > > On Sun, Mar 27, 2011 at 7:00 PM, Alon Levy <<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>> wrote:<br>
> > ><br>
> > > > On Sun, Mar 27, 2011 at 06:36:17PM +0400, Emre Erenoglu wrote:<br>
> > > > > Hi,<br>
> > > > ><br>
> > > > > I have a linux system with two monitors, one internal screen of my<br>
> > laptop<br>
> > > > > running at 1280x800 and the other is a 22" monitor with 1920x1080<br>
> > > > > resolution. I use them in an extended desktop mode.<br>
> > > > ><br>
> > > > > I would like to assign both of these screens to the virtual machine<br>
> > > > running<br>
> > > > > qxl, but I didn't see anywhere how I can do that. I want that the<br>
> > guest<br>
> > > > > machine sees two monitors connected to it, so that I can use it just<br>
> > like<br>
> > > > I<br>
> > > > > use a real system (ie moving windows from one screen to another,<br>
> > etc.).<br>
> > > > ><br>
> > > > > The only option I found relevant is the -f,<br>
> > --full-screen[=auto-conf]<br>
> > > > but<br>
> > > > > it does not work as I expect. Would this boil down to the guest agent<br>
> > > > issue<br>
> > > > > or is there something I need to do?<br>
> > > > ><br>
> > > > > spice is 0.8.0, qemu 0.14.<br>
> > > ><br>
> > > > To get two monitors you need to run the vm with two qxl devices. The<br>
> > first<br>
> > > > one gets created by the "-vga qxl", the second (and more - you can have<br>
> > > > up to four) gets created with "-device qxl". The client should pick<br>
> > them<br>
> > > > up automatically, the old client knows to close or open a window if the<br>
> > > > guest<br>
> > > > disables or reenables the screen, the spice-gtk client doesn't do that<br>
> > yet<br>
> > > > so you will get a number of windows with it anyway.<br>
> > > ><br>
> > > ><br>
> > > Hi Alon,<br>
> > ><br>
> > > Thanks, I managed to do what you're saying. The only issue I'm facing is<br>
> > > that mouse is now sometimes loosing coordinate synchronization so it<br>
> > becomes<br>
> > > impossible to work. Is this a known bug? Shall I report it somewhere?<br>
> ><br>
> > I am not aware of it, please check if it's already reported in freedesktop<br>
> > or<br>
> > redhat bugzillas (<a href="http://bugzilla.freedesktop.org" target="_blank">bugzilla.freedesktop.org</a> and bugzilla.redhat.comrespectively).<br>
> > If it isn't reported please report it in freedesktop, thanks!<br>
> ><br>
> ><br>
> I will, thanks. I was using spicec client (which you referred as "old"), so<br>
> I will also try with the spice-gtk client to reproduce.<br>
><br>
> ><br>
> > > Is there any way that this works in fullscreen mode covering both screens<br>
> > of<br>
> > > my system?<br>
> ><br>
> > You mean you want to have a single qxl device (i.e. single monitor since<br>
> > each qxl<br>
> > device is a single monitor device) and the client should use both client<br>
> > (physical)<br>
> > screens in fullscreen? we don't support that in spicec afaik, and I don't<br>
> > think<br>
> > anyone has ever considered that - sounds useful if you have two monitors of<br>
> > the<br>
> > same resolution and physically adjacent. Actually just setting a resolution<br>
> > in the<br>
> > guest should work in windowed mode (set a large enough resolution and the<br>
> > window<br>
> > will use space from both monitors), but fullscreen I think will pick one of<br>
> > the monitors.<br>
> ><br>
> ><br>
> Well, not really. In my setup, I have a big VGA monitor (22") with 1920x1080<br>
> resolution, and below it, I have my laptop screen (1280x800). For example, I<br>
> adjust 2nd screen to match the laptop resolution (ie 1280x800), so I get a<br>
> 2nd window matching this in my host.<br>
><br>
> I want to maximize this window in the laptop screen such that it covers the<br>
> entire screen (since resolutions match) --> fullscreen.<br>
</div></div>The entire laptop's screen?<br>
<br>
So:<br>
Guest:<br>
Monitor 1: 1920x1080<br>
Monitor 2: 1280x800<br>
?<br></blockquote><div><br></div><div>Yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">><br>
> We can image the same thing if the 1st window (ie 1920x1080) also matches<br>
> the VGA monitor at 1920x1080. It shall also be "fullscreen-able".<br>
><br>
> In the current client, if I set a 2nd monitor of 1280x800, I get this window<br>
> in the host system, I move it to the laptop screen (at 1280x800 also), but I<br>
> have to deal with the window borders and it can't be fully occupying the<br>
> whole screen in that monitor. Hope I could explain myself :)<br>
</div>Yes, of course, and you also have the window manager's bottom/top parts that<br>
occupy some screen real-estate. That's what fullscreen is for.<br>
<div class="im"><br></div></blockquote><div><br></div><div>Exactly :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
><br>
> It would be good, if we could double click any client window border and it<br>
> can become fullscreen in the monitor it is residing, with a key-press option<br>
> to return to a window mode (ie CTRL+ALT+ENTER etc.). With this, I could have<br>
> a virtual system exactly as if I'm working on real hardware.<br>
><br>
</div>Right - we have fullscreen support, it's triggered (in and out) by default by<br>
Shift-F11 with spicec, and with spicy (in spicy you can also toggle it from the<br>
menu). In spicec the shortcut is configurable, not sure about spicy. In vinagre<br>
you can also use the fullscreen feature via it's spice support (that uses<br>
spice-gtk).<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br></div><div>OK, that's great, I didn't know that. I will give SHIFT-F11 it a try and also with spicy client. Would this work even if I have two windows for the two monitors of the virtual system? Would they be independentely full-screenable? ie the Shift-F11 will impact only the active spice client window? I guess I'd better try :)</div>
<div><br></div></div>-- <br>Emre<br>