Screen resolution of Win10 guest running on Ubuntu host

Discussions about using Windows guests in VirtualBox.
Post Reply
pichuco
Posts: 9
Joined: 19. Apr 2009, 11:14
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows, Ubuntu

Screen resolution of Win10 guest running on Ubuntu host

Post by pichuco »

Hello,

this behavior is seen with both v5.1.22-dfsg-0ubuntu1.17.04.1 and
5.1.26-117224~Ubuntu~zesty running on an Ubuntu 17.04 host (virtualbox
guest additions are installed on the guest corresponding to the
virtualbox version):

I'm unable to set the screen resolution of a patched Windows 10 guest
system. The host system has two monitors, one is the laptop itself, the
other is a Philips. Both are running a native resolution of 1920x1200.

Inside the VM a maximum resolution of 1745x1091 is offered when
switching to fullscreen mode (option "Auto-resize Guest Display" is
selected).

Any ideas?

Code: Select all

~:1> VBoxManage getextradata "Windows10" enumerate
Key: CustomVideoMode1, Value: 1920x1200x24
Key: GUI/AutoresizeGuest, Value: false
Key: GUI/Fullscreen, Value: true
Key: GUI/LastCloseAction, Value: SaveState
Key: GUI/LastGuestSizeHint, Value: 1745,973
Key: GUI/LastNormalWindowPosition, Value: 1920,29,1745,995
Key: GUI/LastScaleWindowPosition, Value: 154,99,843,609
Key: GUI/MenuBar/Enabled, Value: false
Key: GUI/MiniToolBarAlignment, Value: Top
Key: GUI/RestrictedRuntimeDebuggerMenuActions, Value: Statistics,CommandLine
Key: GUI/RestrictedRuntimeDevicesMenuActions, Value: HardDrives
Key: GUI/RestrictedRuntimeMachineMenuActions, Value: PowerOff
Key: GUI/RestrictedRuntimeMenus, Value: Debug
Key: GUI/ScaleFactor, Value: 1
Key: GUI/StatusBar/IndicatorOrder, Value: HardDisks,OpticalDisks,FloppyDisks,Network,USB,SharedFolders,Display,VideoCapture,Features,Mouse,Keyboard
Key: GUI/VirtualScreenToHostScreen0, Value: 0
~:1>
Thanks and regards -- Peter
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by Perryg »

Moving to Windows guests.

You should provide the guess log file ( as an attachment ) and only from the official version from virtualbox.org. If you want to use the distro specific version of virtualbox you need to ask them for help.

But if auto resize is off and it probably will not work properly and you should also remove the custom screen size as well.
pichuco
Posts: 9
Joined: 19. Apr 2009, 11:14
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows, Ubuntu

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by pichuco »

Hello,

thanks for the reply. Attached the logfile of the VM. I can see

Code: Select all

[...]
00:00:11.094840 VMMDev: Guest Log: VBoxMP::vboxWddmPickResources: found the VBE card
00:00:11.097407 VMMDev: Guest Log: VBoxMP::DxgkDdiStartDevice: using HGSMI
00:00:11.097581 VMMDev: Guest Log: VBoxMP::vboxWddmVModesAdd: WARNING! :resolution 1600x1200 not accepted by the frontend
00:00:11.097651 VMMDev: Guest Log: VBoxMP::vboxWddmVModesAdd: WARNING! :resolution 1920x1440 not accepted by the frontend
00:00:11.140087 VBVA: InfoScreen: [0] @0,0 1745x1091, line 0x1b44, BPP 32, flags 0x1
00:00:11.140119 Display::handleDisplayResize: uScreenId=0 pvVRAM=00007f78b4000000 w=1745 h=1091 bpp=32 cbLine=0x1B44 flags=0x1
00:00:11.140160 GUI: UIFrameBufferPrivate::NotifyChange: Screen=0, Origin=0x0, Size=1745x1091, Sending to async-handler
00:00:11.140207 GUI: UIMachineView::sltHandleNotifyChange: Screen=0, Size=1745x1091
00:00:11.140219 GUI: UIFrameBufferPrivate::handleNotifyChange: Size=1745x1091
00:00:11.140296 GUI: UIFrameBufferPrivate::performResize: Size=1745x1091, Directly using source bitmap content
[...]
but I've no idea where this is comming from...

Code: Select all

~/VMs/Windows10/Logs:1> dpkg -l virtualbox-5.1
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                  Version                 Architecture            Description
+++-=====================================-=======================-=======================-================================================================================
ii  virtualbox-5.1                        5.1.26-117224~Ubuntu~ze amd64                   Oracle VM VirtualBox
~/VMs/Windows10/Logs:1>
Thank and regards -- Peter
Attachments
VBox.log
Windows10 Guest VM Log
(74.83 KiB) Downloaded 125 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by mpack »

In the UI, try setting File|Preferences|Display|Maximum Guest Screen Size to None.

Remove any video mode hints you might have created.
pichuco
Posts: 9
Joined: 19. Apr 2009, 11:14
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows, Ubuntu

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by pichuco »

Hi, thanks for that hint, I haven't seen this option yet. But still no
improvement. Windows screen options show an ugly resolution of
1745x1091, which is a pain. Also 1920x1440 is offered, which is wrong,
correct resolution would be 1920x1200.

Code: Select all

~/VMs/Windows10/Logs:1> vbox getextradata "Windows10" enumerate
Key: GUI/Fullscreen, Value: true
Key: GUI/LastCloseAction, Value: SaveState
Key: GUI/LastNormalWindowPosition, Value: 1920,29,1745,995
Key: GUI/LastScaleWindowPosition, Value: 154,99,843,609
Key: GUI/MenuBar/Enabled, Value: false
Key: GUI/MiniToolBarAlignment, Value: Top
Key: GUI/RestrictedRuntimeDebuggerMenuActions, Value: Statistics,CommandLine
Key: GUI/RestrictedRuntimeDevicesMenuActions, Value: HardDrives
Key: GUI/RestrictedRuntimeMachineMenuActions, Value: PowerOff
Key: GUI/RestrictedRuntimeMenus, Value: Debug
Key: GUI/ScaleFactor, Value: 1
Key: GUI/StatusBar/IndicatorOrder, Value: HardDisks,OpticalDisks,FloppyDisks,Network,USB,SharedFolders,Display,VideoCapture,Features,Mouse,Keyboard
Key: GUI/VirtualScreenToHostScreen0, Value: 0
~/VMs/Windows10/Logs:1>
The warning shown before has gone, corresponding Logfile section looks now like:

Code: Select all

[...]
00:00:07.443147 VMMDev: Guest Log: VBoxMP::vboxWddmPickResources: found the VBE card
00:00:07.446103 VMMDev: Guest Log: VBoxMP::DxgkDdiStartDevice: using HGSMI
00:00:07.604247 VBVA: InfoScreen: [0] @0,0 1745x1091, line 0x1b44, BPP 32, flags 0x1
00:00:07.604281 Display::handleDisplayResize: uScreenId=0 pvVRAM=00007fc344000000 w=1745 h=1091 bpp=32 cbLine=0x1B44 flags=0x1
00:00:07.604327 GUI: UIFrameBufferPrivate::NotifyChange: Screen=0, Origin=0x0, Size=1745x1091, Sending to async-handler
00:00:07.604381 GUI: UIMachineView::sltHandleNotifyChange: Screen=0, Size=1745x1091
00:00:07.604396 GUI: UIFrameBufferPrivate::handleNotifyChange: Size=1745x1091
00:00:07.604537 GUI: UIFrameBufferPrivate::performResize: Size=1745x1091, Directly using source bitmap content
00:00:10.467138 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners.
00:00:10.517492 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners.
00:00:10.517524 GUI: UIMachineLogicFullscreen: Additions-state actual-change event, rebuild multi-screen layout
00:00:10.517545 GUI: UIMultiScreenLayout::update: GUI/AutomountGuestScreens is disabled
00:00:10.517563 GUI: UIMachineViewFullscreen::adjustGuestScreenSize: Adjust guest-screen size if necessary.
00:00:10.517571 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners.
[...]
Peter
Attachments
VBox.log.zip
New VBox.log file
(23 KiB) Downloaded 112 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by mpack »

pichuco wrote: Also 1920x1440 is offered, which is wrong,
Why is that wrong? Are you assuming that the host capabilities dictates what the VM offers? AFAIK setting "Max Guest Display Size" to none stops that being the case.

There is no way that VirtualBox offers 1745x1091 to the guest, that must be a remnant of a previously used display size.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by Perryg »

IMHO the guest resolution will never equal the host if it is in windowed mode. Only full screen ( host+F ) will produce the exact values. I have also seen the guest not being able to show the proper values until it has first achieved the full screen mode due to the restricted size to begin with.
pichuco
Posts: 9
Joined: 19. Apr 2009, 11:14
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows, Ubuntu

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by pichuco »

Sure, that's what I'm trying to do: Get the full resulotion of the host system, which has 2 monitors with 1900x1200 each:

Code: Select all

~:1> xrandr --verbose | grep -w connected
eDP-1 connected 1920x1080+0+0 (0x49) normal (normal left inverted right x axis y axis) 344mm x 194mm
HDMI-1 connected primary 1920x1200+1920+0 (0x6e) normal (normal left inverted right x axis y axis) 519mm x 324mm
~:1>
Sample screen shot, VM running full screen, but guest is able to use only 1745x1091 resolution.
Sample screen shot, VM running full screen, but guest is able to use only 1745x1091 resolution.
vbox1745x1091.png (23.27 KiB) Viewed 12332 times
What I expect is that the guest is able to use this resolution when running in full screen mode. The aliasing looks awful, see attached screenshot. I think this used to work in the past, because I did not see this ugly resolution when running the VM in fullscreen mode.

Thanks -- Peter
Last edited by socratis on 14. Oct 2017, 01:04, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
pichuco
Posts: 9
Joined: 19. Apr 2009, 11:14
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows, Ubuntu

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by pichuco »

Some news on this:

Without any change but connecting the cable to the same Monitor via DVI port of the docking station the resolution is perfect as it should 1920x1200!

On the native monitor of the notebook still the bad resolution 1745x1091 is used.

Could this be a DBus related problem?

Peter
friend.yara
Posts: 1
Joined: 31. Jul 2018, 15:09

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by friend.yara »

If display scale factor of Ubuntu host been changed, try to drop it to 1 (one) and reboot. Then start your VirtualBox guest and look at resolution.
karls0
Posts: 10
Joined: 21. Feb 2010, 18:50
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: WinXP, Debian ...

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by karls0 »

mpack wrote:In the UI, try setting File|Preferences|Display|Maximum Guest Screen Size to None.

Remove any video mode hints you might have created.
Hi mpack,
after following your hint, I now have 1920x1440 also. Since my Monitors only has 1080 lines, I would need a resolution of 1920x1080.
How can I get this???

TIA, Karl

I have a Win10 guest on LINUX Mint Rosa 17.3 (=trusty) with two LG-Monitors, VB 5.2.16 with the corresponding extension pack and the guest additions are installed in Win10 (Win 10 Pro, Version 1803, build 17134.191).
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by mpack »

karls0 wrote: Since my Monitors only has 1080 lines, I would need a resolution of 1920x1080.
If you mean that you are trying to get the VM to occupy the full screen then use the full screen command (host+F). Otherwise the VM display is always going to be in a desktop window which is smaller than the host desktop.
karls0
Posts: 10
Joined: 21. Feb 2010, 18:50
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: WinXP, Debian ...

Re: Screen resolution of Win10 guest running on Ubuntu host

Post by karls0 »

mpack wrote: If you mean that you are trying to get the VM to occupy the full screen then use the full screen command (host+F). Otherwise the VM display is always going to be in a desktop window which is smaller than the host desktop.
Both my monitors have a native resolution of 1680x1050 (16:10). Since the last update of VB (and an update of Win10 a few days earlier) it looks like the picture in attached file (in full screen mode)! As you can see there is no resolution that fits my monitors, so I choose 1280x1024 (4:3). The extension-pack and the guest additions are installed in the corresponding version. To me it looks like the display-driver for the virtual Windows10 "sees" another monitor, has no resolution for it or that the VB-engine emulates the monitor wrong.

Hoping for your help, Karl
Attachments
full screen mode
full screen mode
Win10 in VB_c600x375.png (125.26 KiB) Viewed 8945 times
Post Reply