Page 1 of 2

[Solved] Resolution problem

Posted: 5. Oct 2009, 15:09
by garycooper
Hi everyone,

My maximum resolution on my XP is 1024*768 but i want to increase it.

How could i do that ?

I have installed guest addition.

Thanks for your help

Re: Resolution problem

Posted: 5. Oct 2009, 15:38
by Perryg
The guest resolution is fixed to be no more than the host.
If you want it bigger you must run the VBoxManage and tell it to increase. See the VBox Users Guide Chapter 8. VBoxManage reference for the syntax and how to do this.

Re: Resolution problem

Posted: 5. Oct 2009, 16:02
by garycooper
Perryg wrote:The guest resolution is fixed to be no more than the host.
If you want it bigger you must run the VBoxManage and tell it to increase. See the VBox Users Guide Chapter 8. VBoxManage reference for the syntax and how to do this.
thanks,

but my host in on 1440*900 ... why my guest is stuck on 1024*768 ?

i'm looking the documentationbut i can't find the good command line, is that on "VBoxManage modifyvm" ??

Re: Resolution problem

Posted: 5. Oct 2009, 16:10
by Perryg
Look at the top left of the window and click on machine. then make sure that auto-resize is selected. After that you use the mouse click drag to resize the guest window or the host+f toggle to go in and out of full screen.

Re: Resolution problem

Posted: 5. Oct 2009, 16:16
by garycooper
Perryg wrote:Look at the top left of the window and click on machine. then make sure that auto-resize is selected. After that you use the mouse click drag to resize the guest window or the host+f toggle to go in and out of full screen.

amazing !! it works !!

i'm now on exactly same resolution as my host.

and now if i want to increase it i must use command line ?

could you give me the command line please ?

thanks again for your patience

Re: Resolution problem

Posted: 5. Oct 2009, 16:51
by Perryg
For the life of me I don't know why you would want it to be larger than your screen but this is the command to make it happen.
  • VBoxManage controlvm <VM name> setvideomodehint <xres> <yres> <bpp>
Run the same command without the options to turn it off.
You realize that this will cause you to need to use your scroll bars if you set it bigger.

Re: Resolution problem

Posted: 5. Oct 2009, 17:10
by garycooper
cause i have to test some applications running on high resolution (2048*1536).

Nothing happens when i execute this command line.

I started my virtual machines and then on my host command line i execute :
VBoxManage controlvm TINY setvideomodehint 2048 1536 32

am i doing something wrong ?

thanks again :)

Re: Resolution problem

Posted: 5. Oct 2009, 17:16
by garycooper
ok it works i just have to reduce 32 to 24.

Topic solved, thanks for your support.

Re: [Solved] Resolution problem

Posted: 5. Oct 2009, 17:22
by Perryg
No problem I have marked this solved for you.

Re: [Solved] Resolution problem

Posted: 5. Oct 2009, 18:01
by garycooper
Perryg wrote:No problem I have marked this solved for you.

sorry to reopen it, i tought it was solved.

But only the first change of resolution works, after that i try to put back to default resolution (1024*768) and now he doesn't want to move back to the old one

my command : VBoxManage controlvm TINY setvideomodehint 2048 1536 24 do not work now.

for information on logs
when i try to resize to 1024*768 32it works
00:27:36.347 VMMDev::SetVideoModeHint: got a video mode hint (1024x768x32) at 0
00:27:36.363 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=10250000 w=1024 h=768 bpp=32 cbLine=0x1000
00:27:36.364 VBVA: Disabled.
00:27:36.367 VBVA: Enabled.
when i try to resize to 2048*1536 24 it doesnt works
00:27:23.300 VMMDev::SetVideoModeHint: got a video mode hint (2048x1536x24) at 0

Re: [Solved] Resolution problem

Posted: 5. Oct 2009, 18:20
by Perryg
You need to stop and restart the guest.
I do not change the resolution that often from the CLI but if memory serves me I always do it with the guest off.

Re: [Solved] Resolution problem

Posted: 5. Oct 2009, 18:30
by garycooper
Perryg wrote:You need to stop and restart the guest.
I do not change the resolution that often from the CLI but if memory serves me I always do it with the guest off.
no you can't do it when guest is off
ERROR: The machine 'TINY' does not have an open session
Details: code VBOX_E_INVALID_SESSION_STATE (0x80bb000b), component Machine, inte
rface IMachine, callee IUnknown
Context: "OpenExistingSession (a->session, uuid)" at line 584 of file VBoxManage
.cpp
already try to stop and restart it...i guess it's a virtualbox bugs :(

Re: [Solved] Resolution problem

Posted: 5. Oct 2009, 18:41
by Perryg
You are correct. It must be on. As I said I don't do this too often.
I did just got through testing it out though and it works for me.
I switched several times and it changes the screen like it is supposed to.
There is another command that I need to look up that might help and will send that to you in a bit.
I need to leave for a while but will be back in an hour or less.

Re: [Solved] Resolution problem

Posted: 5. Oct 2009, 20:13
by Perryg
Well after I set a few things and tried a few more now I can not set the resolution any higher than the host either.
I know you can set the extradata and it gets saved to the machine xml and I know that controlvm works as well, but after a while everything stops to work properly even stopping the guest and shutting down the service fails to make it return to larger than host size.

I will do some more research and if I find something I will post it here.

Re: [Solved] Resolution problem

Posted: 9. Nov 2009, 17:32
by garycooper
just tested with 3.0.10 and still same problem

any ideas ?