virtualbox.org

Exit Full Screen doesn't revert to resolution prior (#18408)

Exit Full Screen doesn't revert to resolution prior (#18408)

Posted: 4. Jan 2019, 22:41

by Spearmint

ModEdit; related ticket:#18408: Exiting seamless mode does not revert guest display back to previous resolutionIn VB 6, My VM's start in a window smaller than my screen, say 1600x900, which is how I like it. Auto Size Guest Display is checked. When I press Host + F it works perfect, full screen. However when I press Host + F to exit full screen, the resolution doesn't return to the 1600x900 in a window, instead I end up with a guest in a window that is the size of my full screen, in this case, 2560 x 1440, with a guest still at full screen resoltion and scrollbars. It doesn't resize back to what I started with. I stayed on VB 5.1.28 forever because exiting full screen returned the guest to the previous resolution before entering full screen. I'm running Win10 1803 and the 2 guest vm's I use: win7pro and win16server both do this. Both upgraded to vbox tools 6 and both using vboxvga display adapters set at 128 mb. Maybe I am missing something?

Re: Exit Full Screen doesn't revert to resolution prior

Posted: 5. Jan 2019, 11:41

by socratis

I would like to see the "recipe" of the VM, the ".vbox" file:

Right-click on the VM in the VirtualBox Manager. Select "Show in Explorer".

ZIP the selected ".vbox" file and attach it to your response.

Also, the "VirtualBox.xml" file from "C:\Users\<you>\.VirtualBox" (note the "."). ZIP that with the ".vbox" file and attach them together.

Re: Exit Full Screen doesn't revert to resolution prior

Posted: 7. Jan 2019, 17:50

by Spearmint

Here is the vbox file. The xml contains a lot of specific information that I am not comfortable posting. Is there any specific lines you'd like to see? Here is a couple that seem relevant to this:

I won't know until I see one that doesn't fit in there, or doesn't match mine.

Nothing weird in the ".vbox" file BTW...

Maybe if you force it to 1600x900 and restart a couple of times without going FullScreen? I have a feeling this might be Windows doing its thing, not VirtualBox...

Re: Exit Full Screen doesn't revert to resolution prior

Posted: 7. Jan 2019, 19:06

by Spearmint

here it is. I tested multiple restarts on the vm without FS and it is the same.

Re: Exit Full Screen doesn't revert to resolution prior

Posted: 7. Jan 2019, 20:24

by socratis

Nothing out of the ordinary I'm afraid...

What if you: start the VM, set it to 1600x900, go FS, exit FS, set it to 1600x900 again, go FS, exit FS, set it to 1600x900 again, shut down, restart.

If that doesn't work, you might have to do some Windows searching on how to "forget" previously set resolutions. There must be something in the Win registry that tells it that this is the "preferred" resolution.

Re: Exit Full Screen doesn't revert to resolution prior

In VBox6 it gets updated on the fly to <ExtraDataItem name="GUI/LastGuestSizeHint" value="2160,1440"/> when you press Host + F, which is my current FS resolution. I believe it therefore stays at that resolution when you press Host + F again to leave Full Screen, which explains the windowed 2160x1440.

I reverted back to my trusty VBox 5.1.28 and it works perfect, <ExtraDataItem name="GUI/LastGuestSizeHint" value="1280,1024"/> doesn't change, it stays with that value in the .vbox file when going Full screen and correctly returns to 1280x1024 when pressing Host + F again.

Thank you btw for your input socratis, I know this is a rather silly issue compared to all the complexities of programming a hypervisor, so I do appreciate it.

Re: Exit Full Screen doesn't revert to resolution prior

Posted: 8. Jan 2019, 00:12

by socratis

Spearmint wrote:ExtraDataItem name="GUI/LastGuestSizeHint" ... In VBox6 it gets updated on the fly

Interesting, it doesn't do it on mine, but I'm on OSX (10.11.6). I'll try it on my Win host and see what I get...

Re: Exit Full Screen doesn't revert to resolution prior

Posted: 8. Jan 2019, 01:20

by socratis

Actually, I just noticed it with a fresh installation of an Ubuntu 18.10. The "ExtraDataItem:GUI/LastGuestSizeHint" changed from 1280x1024 to 1920x1200 as soon as I went full screen, never to return back.

I'll keep on investigating...

Xubuntu guest doesn't leave fullscreen properly

Posted: 11. Jan 2019, 22:24

by IainMcC

I have a Windows 10 host, with VirtualBox 6.0.0 installed on it. The guest OS is Xubuntu 18.04.1

Entering full screen mode with Host-F works fine. The problem is when I try to exit full screen mode. The guest resolution does not go back to what it was before full screen, it stays set to the full native resolution of my host screen, so I get a maximized window with scroll bars, with a 1920x1080 desktop in it.

On previous versions of VBox and Xubuntu, exiting fullscreen mode returned the Xubuntu desktop back to the resolution it was set to before. The display settings app lets me manually set the resolution back to what it is supposed to be, but why should I be forced to go through extra steps?

Also, during startup and shutdown, the guest screen toggles between the proper resolution and fullscreen.

The board won't let me upload the log file.

Re: Exit Full Screen doesn't revert to resolution prior

Posted: 11. Jan 2019, 23:21

by socratis

@IainMcCI merged your post with an existing one that was dealing with the same issue. Since this is a cross-platform issue, I'm moving it to "Using VirtualBox" for the moment, unless we figure out what the common denominator is. For the moment it looks like "Linux Guests"...

IainMcC wrote:The board won't let me upload the log file.

Yes it does. If you ZIP it. But if you read the thread from the beginning it's not your log, it's your VM "recipe", the ".vbox" file that changes and causes this...

I'm rather limited right now and I cant't test not even the most basic of VMs, so the rest of the subscribed users in this thread will have to do some testing, especially checking if this happens with other guests as well...

Re: Exit Full Screen doesn't revert to resolution prior

Posted: 12. Jan 2019, 03:34

by IainMcC

Thanks, this topic is exactly what I'm experiencing.

Uploading is not allowed -- I haven't been a member long enough and haven't posted enough. I'll post my .vbox file tomorrow when I've been a member long enough

Re: Exit Full Screen doesn't revert to resolution prior

Posted: 12. Jan 2019, 03:44

by socratis

There's no problem with uploading a ZIPPED file, read the error message closer.

There's no need to upload the .vbox file, we most certainly know what's going on. If you want to check for yourself, get an editor that does a live update if the file changes, like Notepad++, then load the .vbox file and watch the "ExtraDataItem name="GUI/LastGuestSizeHint"" change, like the other reporters.

BTW, I re-checked the OP's log, and it's a Win2016 guest, so there's more than Linux guests in play...

As you mentioned it's not the real solution, but it achieves the desired result for my scenario. I have a 4k monitor and I don't want either a 1024x768 window (the default) or a full screen window. I want something in the middle like 1920x1080 so I can multitask better. Thanks for the workaround for people who just need a constant size.