Screen resolution of Win10 guest running on Ubuntu host

Discussions about using Windows guests in VirtualBox.

Screen resolution of Win10 guest running on Ubuntu host

Postby pichuco » 7. Sep 2017, 13:46

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   Expand viewCollapse view
~: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
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

Postby Perryg » 7. Sep 2017, 13:55

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.
Perryg
Site Moderator
 
Posts: 34209
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

Postby pichuco » 14. Sep 2017, 10:52

Hello,

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

Code: Select all   Expand viewCollapse view
[...]
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   Expand viewCollapse view
~/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 4 times
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

Postby mpack » 14. Sep 2017, 11:53

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

Remove any video mode hints you might have created.
mpack
Site Moderator
 
Posts: 25242
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

Postby pichuco » 14. Sep 2017, 12:43

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   Expand viewCollapse view
~/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   Expand viewCollapse view
[...]
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 1 time
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

Postby mpack » 14. Sep 2017, 16:33

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.
mpack
Site Moderator
 
Posts: 25242
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

Postby Perryg » 14. Sep 2017, 16:51

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.
Perryg
Site Moderator
 
Posts: 34209
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

Postby pichuco » 15. Sep 2017, 11:31

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   Expand viewCollapse view
~: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>


vbox1745x1091.png
Sample screen shot, VM running full screen, but guest is able to use only 1745x1091 resolution.
vbox1745x1091.png (23.27 KiB) Viewed 282 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

Postby pichuco » 13. Oct 2017, 16:54

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
pichuco
 
Posts: 9
Joined: 19. Apr 2009, 11:14
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows, Ubuntu


Return to Windows Guests

Who is online

Users browsing this forum: No registered users and 9 guests