VirtualBox

Opened 9 years ago

Closed 9 years ago

#14151 closed defect (fixed)

Linux fonts became so big after latest virtualbox 4.3.28 upgrade -> fixed in 4.3 and later releases after June 8 2015

Reported by: nengxu Owned by:
Component: GUI Version: VirtualBox 4.3.28
Keywords: font resolution size Cc:
Guest type: Linux Host type: Windows

Description

Found on 2 Virtualbox Linux guests: Arch Linux 64, Lubuntu 2015.04 32, host is Windows 7. The main problem is that fonts become so huge after 4.3.28 upgrade from 4.3.26.

This problem seems a little complicated. It is related to VM screen resolution but strangely. On W7

1) if I shrink the VM screen resolution smaller, say 1024x768, and stay with this small screen, the fonts are normal everywhere.

2) When boot up the VM, I cannot use a large resolution like 1920x1200 (as my VM was running under before the recent virtualbox packages upgrade). Otherwise, all fonts become so huge. So I detoured this out by booting in small resolution.

3) After booting up in small resolution, if I increase the resolution, say back to 1920x1200, the fonts on the console (my case terminator) stay fine. However, when I start applications like Sublime Text, Claws mail, the fonts on those applications' menu bar become so huge. The fonts inside Sublime Text are normal. But the fonts inside Claws mail are huge too.

4) After booting up in small resolution, if first start up the applications, then increase the resolution, say back to 1920x1200, all fonts are fine everywhere.

Attachments (14)

VBox.log (122.9 KB ) - added by nengxu 9 years ago.
Log file from Arch Linux 64 guest
VBox.2.log (132.5 KB ) - added by nengxu 9 years ago.
Log file from Lubuntu 2015.04 32 guest
VirtualBox-14151-01.PNG (44.5 KB ) - added by nengxu 9 years ago.
VirtualBox-14151-02.PNG (26.5 KB ) - added by nengxu 9 years ago.
VirtualBox-14151-03.PNG (86.8 KB ) - added by nengxu 9 years ago.
VirtualBox-14151-04.PNG (93.9 KB ) - added by nengxu 9 years ago.
VirtualBox-14151-05.PNG (43.0 KB ) - added by nengxu 9 years ago.
0001-assign-value-to-mmHeight-not-height.patch (1.1 KB ) - added by Christian Hesse 9 years ago.
assign value to mmHeight, not height
centos.JPG (124.5 KB ) - added by jordanpg 9 years ago.
big-fonts-centos6.6
Xorg.0.log.4.3.28.after.reboot (34.6 KB ) - added by jordanpg 9 years ago.
Xorg.0.log.4.3.29.after.install.before.reboot (35.5 KB ) - added by jordanpg 9 years ago.
Xorg.0.log.4.3.29.after.install.after.reboot (34.6 KB ) - added by jordanpg 9 years ago.
Xorg.0.log.5.0.0.after.install.after.reboot (34.5 KB ) - added by jordanpg 9 years ago.
Xorg.0.log.5.0.0.after.install.before.reboot (35.2 KB ) - added by jordanpg 9 years ago.

Download all attachments as: .zip

Change History (46)

by nengxu, 9 years ago

Attachment: VBox.log added

Log file from Arch Linux 64 guest

by nengxu, 9 years ago

Attachment: VBox.2.log added

Log file from Lubuntu 2015.04 32 guest

comment:1 by nengxu, 9 years ago

I reported this problem firstly in Arch Linux forum:

https://bbs.archlinux.org/viewtopic.php?id=197626

There you can find other users' similar experience.

comment:2 by KCBurns, 9 years ago

Seems reverting to 4.3.26 guest additions (with 4.3.28 VBox) solved this for my Centos6 guest on Centos6 host.

comment:3 by nengxu, 9 years ago

This is a serious regression bug and greatly deteriorates user experience. Please fix it at your earliest convenience. Thanks.

comment:4 by Christian Hesse, 9 years ago

Suffering this as well...

With guest additions 4.3.26:

$ xdpyinfo | grep dots
  resolution:    96x96 dots per inch

This changed with 4.3.28, the dpi values are increased and decreased based on the resize ratio:

$ xdpyinfo | grep dots
  resolution:    181x129 dots per inch

comment:5 by Michael Thayer, 9 years ago

This is a (slight) shot in the dark, but could you try this Additions build? It is from 5.0, but should be very similar to 4.3.28 (I synchronised a lot of code recently which is presumably where this regression came from).

https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_5.0.0-100804.iso

comment:6 by vtrigonis, 9 years ago

I use an Arch64 guest hosted on Win7 and I start X manually. I noticed that the problem only appears the first time X starts, after the guest has booted. If X is stopped and restarted, the problem goes away. The following are the lines that change in the Xorg log between successive starts:

Started for the first time, immediately after boot (xdpyinfo reporting 181x135 dpi):

(II) VBoxVideo(0): Modeline "1024x768"x60.0   47.83  1024 1026 1028 1030  768 770 772 774 (46.4 kHz Pb)
(II) VBoxVideo(0): Output VGA-0 using initial mode 1024x768
(II) VBoxVideo(0): Setting screen physical size to 270 x 203

After X is restarted (xdpyinfo reporting 96x96 dpi):

(II) VBoxVideo(0): Modeline "1920x1080"x60.0  125.50  1920 1922 1924 1926  1080 1082 1084 1086 (65.2 kHz Pb)
(II) VBoxVideo(0): Output VGA-0 using initial mode 1920x1080
(II) VBoxVideo(0): Setting screen physical size to 508 x 285

comment:7 by Frank Mehnert, 9 years ago

vtrigonis, could you test if the Additions Michael posted in comment 5 make any difference?

comment:8 by vtrigonis, 9 years ago

Unfortunately I can't use those with Arch. I use the ones provided by the distro's package manager.

comment:9 by Michael Thayer, 9 years ago

I made a silly typing mistake in my fix, don't know how I managed to test without noticing it. Here is a fixed build:

https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_5.0.0-100817.iso

comment:10 by Christian Hesse, 9 years ago

Basically I have the same issue as vtrigonis has. Installing software without package manager in bad. :-p

But I have an Arch live system available, so I do not care about testing the additions without package manager. I was not successful, though: With the addition 5.0.0rc1 (build 100817) I see xfce4-display-settings being started on guest window resize, but guest display stays at 1024x768.

comment:11 by Frank Mehnert, 9 years ago

eworm, could you precise your observations with the Guest Additions from r100817? Do I understand you correct that the guest display stays at 1024x768 and does not adapt to the window size? And how look the fonts, are they correct now?

comment:12 by Frank Mehnert, 9 years ago

I just updated the Additions .iso image on the test builds page, please use that one instead.

comment:13 by Christian Hesse, 9 years ago

Oh, I was wrong. Well, kind of... Uninstalled the package virtualbox-guest-utils, which provided vboxvideo.so (the Xorg driver module). It did not work for me as Xorg used plain VESA modes.

So after putting the file back in place everything works as expected. Here is what I did:

  • uninstall virtualbox-guest-utils, virtualbox-guest-modules
  • restore vboxvideo.so
  • install VBoxLinuxAdditions.run from VBoxGuestAdditions_5.0.0-100817.iso
  • build modules via dkms
  • reboot

-> works!

Any chance to get a patch against 4.3.28 with the required changes? :D

comment:14 by Christian Hesse, 9 years ago

BTW, dpi values still change, but font does not change as long as I have enabled "Custom DPI settings" in Xfce config. I do not know whether or not the values changed before.

comment:15 by nengxu, 9 years ago

Just installed VirtualBox-4.3.29-100833-Win.exe on W7. On my Lubuntu 32 guest, installed 4.3.29 guest addition and restart. Still have fonts problems. Please see attached screen shots.

by nengxu, 9 years ago

Attachment: VirtualBox-14151-01.PNG added

by nengxu, 9 years ago

Attachment: VirtualBox-14151-02.PNG added

by nengxu, 9 years ago

Attachment: VirtualBox-14151-03.PNG added

by nengxu, 9 years ago

Attachment: VirtualBox-14151-04.PNG added

by nengxu, 9 years ago

Attachment: VirtualBox-14151-05.PNG added

comment:18 by Michael Thayer, 9 years ago

Could someone give me a quick recap about how to reproduce this problem with a freshly installed virtual machine (Ubuntu is nice, but others will do) and the test build Additions? It is fine if it involves installing old Additions first. Thanks.

comment:19 by KCBurns, 9 years ago

Guest Additions 5.0.0_100817 (with 4.3.28 VBox) seems to have solved this for my Centos6 guest on Centos6 host.

Michael - in my case, I got desired results on first boot after installing guest additions 4.3.28, but when booted up fresh for next day's work I had to re-install guest additions 4.3.28 to get desired results. This was consistently reproduced when using GA 4.3.28 in a Centos6 guest. However I have been able to resolve the problem by installing either GA 4.3.26 or 5.0.0_100817 (while running VBox 4.3.28 on host).

by Christian Hesse, 9 years ago

assign value to mmHeight, not height

comment:20 by Christian Hesse, 9 years ago

Not sure if this is related, but looks like there is a typo in vboxvideo.c...

comment:21 by Michael Thayer, 9 years ago

It is related - that was the mistake I mentioned in comment 9.

comment:22 by Michael Thayer, 9 years ago

Summary: Linux fonts became so big after latest virtualbox 4.3.28 upgradeLinux fonts became so big after latest virtualbox 4.3.28 upgrade -> fixed in 4.3 and later releases after June 8 2015

First confirmation that the fix back-ported to 4.3 testing works too:

https://forums.virtualbox.org/viewtopic.php?f=1&t=67837&p=324090#p324089

I will close this ticket - please re-open if necessary.

comment:24 by jordanpg, 9 years ago

Using 4.3.28r100309 with vanilla CentOS 6.6 guest.

Neither the 4.3.29 nor 5.0RC1 GA builds fix the font problem for me.

Please let me know if I can provide any diagnostic info for troubleshooting.

Last edited 9 years ago by jordanpg (previous) (diff)

comment:25 by Frank Mehnert, 9 years ago

jordanpg, could you post screenshots together with the corresponding /var/log/Xorg.0.log for a guest when you use the 4.3.26 Additions and when you use the latest 4.3 Additions which still don't fix your font size problems?

comment:26 by nengxu, 9 years ago

Tried Guest Additions 5.0.0_100817 under VirtualBox-4.3.29-100833-Win.exe on W7, now my Lubuntu 32 box works fine with the fonts. Thanks.

However, please note that VirtualBox-4.3.29-100833-Win.exe alone is not solving the problem as shown in my previous comment and screen shots.

by jordanpg, 9 years ago

Attachment: centos.JPG added

big-fonts-centos6.6

comment:27 by nengxu, 9 years ago

@eworm Tried your 64 Arch package. Worked fine with the latest Linux 4.0.5-1. Thanks!

by jordanpg, 9 years ago

comment:28 by jordanpg, 9 years ago

@frank, screenshot and logs attached. Screenshot is the same in all cases.

comment:29 by Michael Thayer, 9 years ago

jordanp: you might need to delete the GNOME 2 configuration directory (I forget the exact path) in your user's home directory on the virtual machine. GNOME 2 may have remembered the font size from when you were using the previous Additions build. (Based on something someone else said.)

comment:30 by jordanpg, 9 years ago

That did not fix it, but I tried creating a new user and logging in and that did.

This points to a lingering config issue at the per-user level.

comment:31 by jordanpg, 9 years ago

Update: deleted all dotted directories in my home directory and restarted. This has fixed the problem for me. Not sure which directory was causing the problem.

comment:32 by VBoxGrl, 9 years ago

My specs;

Slackware 14.1 x86_64 Host

Slackware 14.1 x86_64 Guest running Openbox 3.5.0

I just compiled from source 4.3.28 and I am also experiencing larger fonts.

I am only seeing this the first time I type 'startx' and log into X.

After running X for the first time, if I log out of X, and then log back in the fonts return to normal, which seems odd...

Hmm

Last edited 9 years ago by VBoxGrl (previous) (diff)

comment:33 by Michael Thayer, 9 years ago

Yes, 4.3.28 (specifically the 4.3.28 Guest Additions) is known to have this problem. Please read the comments above.

comment:34 by Frank Mehnert, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in VBox 5.0. The fix will be also available in the next 4.3.x maintenance release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use