Set Resolution to 1280*720 exactly?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
bleeper
Posts: 3
Joined: 10. Jul 2013, 17:19

Set Resolution to 1280*720 exactly?

Post by bleeper »

I have a Win 7-64 guest, and have the add-on extensions installed in the guest, so I have the ability to do seamless, resize, etc.

What I'd like to do is set the resolution dimensions inside the Guest OS to be a specific resolution (for instance 1280*720 at 32-bit). However, the only way to do this is to resize the window, then go into the graphic properties and see if I'm close, because the only resolutions shown in the guest OS graphic properties, are 800*600, 640*480, and whatever the resolution is that the screen is currently resized to (for instance 863*627)...

I've tried the nircmd.exe setdisplay function, but it appears to have been intercepted by VB's graphics driver?

Any shortcut way to do what I'm trying to do? (I'm trying to resize the interior dimensions of the Guest OS window for screen capture utilities)...
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Set Resolution to 1280*720 exactly?

Post by mpack »

I've tried many times to do what you are tying to do (i.e. hit a specific display size), but no, I have to admit that I don't know of a faster way either.

In the past I used to be able to drag the window and the display properties would change dynamically, so at least I correct the size quickly enough. These days the dialog doesn't update until I let go the mouse, so it's a much slower trial and error process (*). Configuring a particular size in the .vbox file doesn't work either - the Windows guest overrides the display mode as it boots up.

(*) Once close, I make sure the edge of the window is overlapping a suitable icon on the host desktop, I can see how much of that icon is exposed as I adjust the window size, so I can get it to the exact pixel.
bleeper
Posts: 3
Joined: 10. Jul 2013, 17:19

Re: Set Resolution to 1280*720 exactly?

Post by bleeper »

Thanks for the confirmation, mpack. I'll work around it.
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Set Resolution to 1280*720 exactly?

Post by Martin »

Does 'VboxManage controlvm setvideomodehint' work in this case?
jorgensen
Posts: 589
Joined: 20. Oct 2009, 01:22
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows

Re: Set Resolution to 1280*720 exactly?

Post by jorgensen »

Try this inside the guest.
VBoxControl addcustommode 1280 720 32
VBoxControl setvideomode 1280 720 32
VBoxControl.exe resides in VirtualBox Guest Additions folder.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Set Resolution to 1280*720 exactly?

Post by mpack »

jorgensen wrote:Try this inside the guest.
VBoxControl addcustommode 1280 720 32
VBoxControl setvideomode 1280 720 32
Nice find, but strangely it doesn't seem to work for me in an XP guest I just tested. The tool claims to have worked, but the display size doesn't change. I rebooted the guest and it didn't change then either. There's barely a mention of the VBoxControl tool in the user manual. I also tried the "VBoxControl poweroff" command and got "not implemented" (another thread was looking for that recently).
Post Reply