<div dir="ltr"><div class="im" style="font-family:arial,sans-serif;font-size:13px">>Actually VBoxHeadless sets framebuffers for each guest monitor (in VBox<br>>4.3 or older).<br>>Where exactly did you see that VBoxHeadless uses one IFramebuffer instance?<br>
><br>>If no Framebuffer is assigned then graphics output from the VM does not<br>>work.<br><div><br></div></div><div style="font-family:arial,sans-serif;font-size:13px">Sorry my bad, I guess I was working too late, I looked at:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div><font face="arial, sans-serif">    if (RT_SUCCESS(rrc) && rcc == S_OK)</font></div><div>
<font face="arial, sans-serif">    {</font></div><div><font face="arial, sans-serif">        Log2(("VBoxHeadless: Registering framebuffer\n"));</font></div><div><font face="arial, sans-serif">        pFramebuffer->AddRef();</font></div>
<div><font face="arial, sans-serif">        display->SetFramebuffer(VBOX_VIDEO_PRIMARY_SCREEN, pFramebuffer);</font></div><div><font face="arial, sans-serif">    }</font></div></div><div style="font-family:arial,sans-serif;font-size:13px">
<font face="arial, sans-serif"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif">when actually lower there is a loop that adds a framebuffer to all the screens, my bad.</font></div>
<div class="im" style="font-family:arial,sans-serif;font-size:13px"><div><font face="arial, sans-serif"><br></font></div><div>>I wonder why monitors in your guest resize to 1280x720.<br>>Did you allow all modes in IFramebuffer::VideoModeSupported?<br>
>Can you run 1 monitor at 1920x1200?<br>>How do you resize the guest monitors: from the guest or using VBoxManage<br>>controlvm setvideomodehint?<font face="arial, sans-serif"><br></font></div><div><br></div></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font face="arial, sans-serif">Yep, I allow all modes:</font></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
    STDMETHODIMP CVirtualBoxCaptureSourceOutput::raw_VideoModeSupported(/*[in]*/ unsigned long aWidth, /*[in]*/ unsigned long aHeight, /*[in]*/ unsigned long aBpp, /*[out,retval]*/ long * aSupported)<br></div><div style="font-family:arial,sans-serif;font-size:13px">
<font face="arial, sans-serif"><div>    {</div><div><span style="white-space:pre-wrap">        </span>CHECK_PARAMETER(aSupported, E_POINTER);</div><div><span style="white-space:pre-wrap">      </span>*aSupported = true;</div><div>
<span style="white-space:pre-wrap">     </span>return S_OK;</div><div><span style="white-space:pre-wrap">    </span>}</div><div><br></div><div>And I try to force the desired resolution like this:</div><div><div><span style="white-space:pre-wrap"><br>

</span></div><div><span style="white-space:pre-wrap">    </span>for (unsigned short nMonitorIndex = 0; nMonitorIndex < m_nMonitorCount; ++nMonitorIndex)</div><div><span style="white-space:pre-wrap">    </span>{</div><div>
<span style="white-space:pre-wrap">        </span>// Set full hd for all the screens</div><div><span style="white-space:pre-wrap">   </span>CHECK_HRESULT(m_pDisplay->SetVideoModeHint(nMonitorIndex, true, false, 0, 0, 1920, 1080, 32));</div>
<div><span style="white-space:pre-wrap">    </span>}<br></div></div><div><br></div><div>One monitor runs fine, 7 also work, I didn't have time now to find exact boundary but I will do it. Bascially in all the configuriation the VirtualBox logs shows the hint for 1920x1080 but a bit later just resizes to 1280x720 and does not even try that. I'll mail you the source and logs directly, thanks for the help.</div>
<div><br></div><div>Rudolfs</div></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-09-04 2:00 GMT+03:00 Vitali Pelenjow <span dir="ltr"><<a href="mailto:Vitali.Pelenjow@oracle.com" target="_blank">Vitali.Pelenjow@oracle.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Actually VBoxHeadless sets framebuffers for each guest monitor (in VBox<br>
4.3 or older).<br>
Where exactly did you see that VBoxHeadless uses one IFramebuffer instance?<br>
<br>
If no Framebuffer is assigned then graphics output from the VM does not<br>
work.<br>
<br>
I wonder why monitors in your guest resize to 1280x720.<br>
Did you allow all modes in IFramebuffer::VideoModeSupported?<br>
Can you run 1 monitor at 1920x1200?<br>
How do you resize the guest monitors: from the guest or using VBoxManage<br>
controlvm setvideomodehint?<br>
<br>
BTW, you can send me source code of the framebuffer implementation and<br>
code which sets framebuffers fro the VM.<br>
I could take a look.<br>
<br>
When I tested Win7 32 bit guest with VBoxHeadless and 24 monitors, I used<br>
VBoxManage controlvm setvideomodehint to resize and enable them.<br>
<br>
Vitali<br>
<div class=""><br>
Rūdolfs Bundulis wrote:<br>
> Hi,<br>
><br>
> >I just tested a VBoxHeadless VM with 24 monitors at 1920x1200 and 256 MB<br>
> >of guest VRAM and it seems to work fine.<br>
><br>
> I fixed errors on my side, and still got the same (which is still much<br>
> better than with the WDDM driver) but it seems that you actually<br>
> cannot run that many monitors on full hd. I tried 25,24,20,16 and all<br>
> these numbers resized to 1280x720, didn't go much lower, but I will<br>
> find the boundary. I looked at VBoxHeadless, since it was mentioned<br>
> that it did work, and I saw that VBoxHeadless actually injects only<br>
> one IFramebuffer instance. So can that actually affect the behaivor?<br>
> What happens if no IFramebuffer implementation is provided for the a<br>
> display? Does that count as a disconnected video output or what?<br>
><br>
><br>
> 2014-09-03 12:01 GMT+03:00 Rūdolfs Bundulis<br>
</div>> <<a href="mailto:rudolfs.bundulis@gmail.com">rudolfs.bundulis@gmail.com</a> <mailto:<a href="mailto:rudolfs.bundulis@gmail.com">rudolfs.bundulis@gmail.com</a>>>:<br>
<div class="">><br>
>     Hi,<br>
><br>
>     I made a new Windows 7 machine and installed the guest additions<br>
>     without the 3D support, verified that the XPDM files were<br>
>     installed and now the machine booted to 1280x720 at all 25<br>
>     monitors and my software acutally run out of memory for the<br>
>     NV12/H264 buffers so I guess if I fix that I should be able to go<br>
>     to 1920x1200, thanks for the pointers on XPDM, I'll fix everything<br>
>     on my side with the memory and try again.<br>
><br>
><br>
>     2014-09-02 17:07 GMT+03:00 Rūdolfs Bundulis<br>
</div>>     <<a href="mailto:rudolfs.bundulis@gmail.com">rudolfs.bundulis@gmail.com</a> <mailto:<a href="mailto:rudolfs.bundulis@gmail.com">rudolfs.bundulis@gmail.com</a>>>:<br>
<div class="im HOEnZb">><br>
>             Yes. However HGSMI is "The Interface" between the vitual<br>
>             graphics card<br>
>             and the host and<br>
>             therefore can not be disabled.<br>
><br>
>             Moreover HGSMI does not affect the memory allocation much.<br>
>             The monitor count is limited by the screen surface memory.<br>
><br>
><br>
>         Thanks a lot for the explanation.<br>
><br>
><br>
><br>
><br>
><br>
</div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> vbox-dev mailing list<br>
> <a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
> <a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
<br>
<br>
_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
<a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
</div></div></blockquote></div><br></div>