VirtualBox

Opened 15 months ago

Last modified 13 months ago

#21512 new defect

Auto-Resize Guest Display not applied at X startup

Reported by: Nicolas Owned by:
Component: guest additions Version: VirtualBox-7.0.6
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

Hi,

Sometimes, especially at startup, guest resolution is not changed, even, if Auto-Resize Guest Display. This is a regression from 6.1.

Steps to reproduce:

  • Start a VM in full screen mode (Debian stable, UEFI resolution set to 1080p, physical screen is QHD)
  • X starts, guest stays in 1080p
  • quit then re-enter full screen: guest screen size correctly adapts to QHD resolution

Regards, Nicolas

Attachments (4)

Work-2023-02-23-08-57-46.log (145.6 KB ) - added by Nicolas 15 months ago.
VBox-7.0.4.log (180.4 KB ) - added by alealeale 13 months ago.
alealeale 7.0.4 VBox.log
VBox-7.0.6.log (178.6 KB ) - added by alealeale 13 months ago.
alealeale 7.0.6 VBox.log
Work-2023-04-14-19-20-02_6.1.42.log (210.2 KB ) - added by Nicolas 13 months ago.

Download all attachments as: .zip

Change History (13)

by Nicolas, 15 months ago

comment:1 by galitsyn, 15 months ago

Hi Nicolas,

I think it was always an issue, also with 6.1. We cannot prevent guest window manager from setting screen resolution to its default value when it starts. At least there is no simple solution for this at the moment.

comment:2 by Nicolas, 14 months ago

Hi galitsyn,

It works perfectly with 6.1, with the exact same VM.

comment:3 by galitsyn, 14 months ago

Hi Nicolas,

Could you please attach VBox.log for this VM when running VirtualBox 6.1, so we could compare two logs?

comment:4 by alealeale, 14 months ago

I have a similar problem with 7.0.6 (guest OS Oracle Linux Server release 7.9, host OS MS Windows 10).

In my case the physical screen is FHD and when X starts it's not in FHD; doing a restart of the guest OS X starts in FHD, but restarting VirtualBox makes the problem happens again.

The problem started with a 6.x version (I can't remember correctly, it should be upgrading from 6.1.6 to 6.1.10). @Nicolas, which was your 6.1 version exactly?

Then that problem apparently was fixed starting from 7.0.0 and it is also working correctly with 7.0.2 and 7.0.4 but the problems appeared again upgrading to 7.0.6.

Obvioulsy VBoxGuestAdditions are rebuilt at every upgrade.

P.S. sorry, I don't want to "steal" your ticket, I just want report another case about what seems to be the same issue.

P.S.S. Starting from 7.0.6 I also have a problem with serviced at shutdown, it hangs on vboxadd as far as I can remember; I have to wait 5 minutes for the timeout at every shutdown, so I went back to 7.0.4.

by alealeale, 13 months ago

Attachment: VBox-7.0.4.log added

alealeale 7.0.4 VBox.log

by alealeale, 13 months ago

Attachment: VBox-7.0.6.log added

alealeale 7.0.6 VBox.log

comment:5 by alealeale, 13 months ago

I reinstalled 7.0.6 again (and than 7.0.4 again). The problem seems different from the similar one I had from 6.1.x (with x > 6) and solved starting from 7.0.0 because in that case pressing R_CTRL+F2 and then R_CTRL+F1 was enough to make the screen fit the whole screen.

About the previosly mentioned problem with the vboxadd.service I wasn't remembering correctly. The problem starts after installing 7.0.4 after 7.0.6. It seems that installing GA 7.0.4 twice solve the problem, even if I run uninstall.sh on GA 7.0.6 before uninstalling 7.0.6 and installing 7.0.4 again.

I added VBox.log from both 7.0.6 and 7.0.4. I stripped the time "column" to make a comparison easier.

comment:6 by Nicolas, 13 months ago

Hi all,

@galitsyn attaching 6.1 log. @alealeale currently running 6.1.42, but the behavior is consistent across the whole 6.1 series.

Regards, Nicolas

comment:7 by alealeale, 13 months ago

@NicolaF_
does the display resize correctly for you on 6.1.x pressing R_CTRL+F2 and then R_CTRL+F1 on the first login screen?

EDIT: I tried that "trick" which was working on last 6.1.x versions again on 7.0.6 with no luck. Yesterday I installed 7.0.8 and it behaves as 7.0.6. On 7.0.8 the FHD resolution is not available on System->Preferences->Hardware->Display (Oracle Linux 7 + Mate) while even higer resolutions are available (e.g. 1920x1200). I tried exiting from Full Screen Mode and then re-entering Full Screen Mode again and the screen resized correctly, and also the 1920x1080 resultion became available from guest settings.

Last edited 13 months ago by alealeale (previous) (diff)

comment:8 by coterp, 13 months ago

This started happening for me too in 7.0.6. This was an issue I remember from 6.something that has been fixed for a long time. 7.0.6 reintroduced the problem. If I start in full screen, I have to exit and re-enter full screen for the guest resolution to refresh. 7.0.8 is doing the same thing. I have a Windows 10 host and this happens with every Linux guest. I have multiple Ubuntu guests at 18.04, 20.04, and 22.04. Also, an Oracle Linux 7.9. Windows guests do not have this problem.

This is logged as a guest additions issue, but it's happening for me regardless of guest additions version. I have a VM still running 6.1.36 and it happens on that machine too. It seems to be related to VirtualBox itself.

comment:9 by Nicolas, 13 months ago

Hi, Just looked further, and there ineed seems to be an issue with advertized mode. Here is the xrandr -q output just after X startup (host sscreen is 2560x1440):

nico@work:~$ xrandr -q
Screen 0: minimum 1 x 1, current 1920 x 1080, maximum 16384 x 16384
Virtual1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1920x1080     60.00*+
   2560x1600     59.99  
   1920x1440     60.00  
   1856x1392     60.00  
   1792x1344     60.00  
   1920x1200     59.88  
   1600x1200     60.00  
   1680x1050     59.95  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      60.02  
   1280x800      59.81  
   1152x864      75.00  
   1280x768      59.87  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
Virtual5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
Virtual7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)

and after leaving/reentering full screen:

Screen 0: minimum 1 x 1, current 2560 x 1440, maximum 16384 x 16384
Virtual1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   2560x1440     60.00*+
   2560x1600     59.99  
   1920x1440     60.00  
   1856x1392     60.00  
   1792x1344     60.00  
   1920x1200     59.88  
   1600x1200     60.00  
   1680x1050     59.95  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      60.02  
   1280x800      59.81  
   1152x864      75.00  
   1280x768      59.87  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
Virtual5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
Virtual7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use