Joined: 22 May 2004
|Posted: Wed Feb 14, 2018 9:18 pm Post subject: VirtualBox and HiDPI screen tip
|I was struggling to get VirtualBox (booting Kali) looking proper on my HiDPI screen. VirtualBox appears to be scaling everything automatically 2x the size, which is undesirable as everything looked big, blurry, and pixelated. There is apparently an option in VirtualBox to prevent this auto-scaling for HiDPI screens "Use Unscaled HiDPI Output" but that option is not available within the build in portage.
Scaling the display inside VirtualBox either rendered the virtual screen completely black or everything would appear blurry. Instead I decided to scale the native X display then start VirtualBox. This works good enough for me and although it's not a HiDPI resolution the display looks about what you would expect on a standard screen.
Start a second X:
Scale screen to half the size:
|xrandr --output eDP1 --scale 0.5x0.5 |
Then start VirtualBox.