Increase DPI

Discussions related to using VirtualBox on Windows hosts.
Post Reply
balcerman
Posts: 12
Joined: 7. Dec 2020, 17:07

Increase DPI

Post by balcerman »

Hello,

How can I increase my screen resolution?
I know how to increase the screen itself with guest additions, but I also need something else - I specifically mean increasing the DPI, so everything is smaller and there are more pixels on the screen.

My current configuration:

Code: Select all

Windows version: 7 (host)

Linux version (guest):
$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)

Kernel version:
$ uname --kernel-release
3.10.0-1127.19.1.el7.x86_64


$ plasma-desktop --version
Qt: 4.8.5
KDE Development Platform: 4.14.8
Plasma Desktop Shell: 4.11.19

$ gnome-shell --version
GNOME Shell 3.14.4

Xserver version:
$ rpm -qa |grep xorg-x11-server-Xorg
xorg-x11-server-Xorg-1.17.2-10.el7.x86_64

Oracle VM VirtualBox version:
6.1.18 r142142 (Qt5.6.2)

Guest Additions version:
$ ls /opt | grep GuestAdditions
VBoxGuestAdditions-6.1.18
$ lsmod | grep -io vboxguest | xargs modinfo | grep -iw version
version:        6.1.18 r142142
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Increase DPI

Post by scottgus1 »

Virtualbox doesn't have anything to make the VM render dpi smaller or bigger. That is covered by the OS installed in the VM. Web-search your VM OS's controls for changing DPI, font size, etc.

The actual number of pixels will not change, that's dependent on the physical and virtual monitor(s).
balcerman
Posts: 12
Joined: 7. Dec 2020, 17:07

Re: Increase DPI

Post by balcerman »

Hello scottgus1,

Isn't it that graphics controller combo has impact on the maximum resolution?

EDIT: it seems to me that the VirtualBox has some influence on the resolution settings - I can easily change the resolution on CentOS but all I get is the increase or decrease of the VirtualBox screen instead of VM screen matching my monitor size. When I set the resolution to big enough numbers, I don't get the "smaller objects on the screen" effect but the VM screen exceeds the monitor size, making part of it not visible. I'd like to keep VM screen size matching my monitor, no matter what resolution I choose.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Increase DPI

Post by mpack »

balcerman wrote: Isn't it that graphics controller combo has impact on the maximum resolution?
No. Your physical monitor determines resolution.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Increase DPI

Post by scottgus1 »

balcerman wrote:I'd like to keep VM screen size matching my monitor, no matter what resolution I choose.
The only setup that I know of that does this is Scaled. On an XP VM I first set the VM to Full-screen so it could register 16:9 resolutions from my monitor. Then I set the VM to Scaled Mode and maximized the VM window to lock the window to my monitor size. After that, I could set screen sizes larger than the monitor size and the VM scaled appropriately. Note that scaling a VM whose resolution is larger than the host's physical monitor resolution will be fuzzy. The VM window's title bar is also always displayed.
Post Reply