Since Genymotion Desktop 3.8.0, Genymotion support auto-scaling which makes it possible to use it on 4k monitors without further tweaking.
However, the icons may appear blurry and some parts of the interface may be out of screen on some 4k monitor resolutions.
To fix this, this feature can be disabled and customized. In order to do so, you can set the following variables:
QT_AUTO_SCREEN_SCALE_FACTOR=0
to disable auto-scaling.QT_SCALE_FACTOR=[value]
to customize scaling.
Windows
- Press Windows + R to open the Windows Run prompt.
- Type in sysdm.cpl and click OK.
- Click the “Environment variables” button under the “Advanced” tab:
- You can either create a User Variable or a System Variable.
- User variable: available to only that specific user.
- System variable: available to all users including the system programs.
- To create a user variable, click “New” under the “User Variables” section.
- To create a system variable, click “New” under the “System Variables” section.
- Type "QT_AUTO_SCREEN_SCALE_FACTOR" in "Variable Name" field.
- In the "Variable value" field, type "0" to disable auto-scaling. Click "OK" to confirm.
- Create another new variable.
- Now, type "QT_SCALE_FACTOR" in "Variable Name" field.
- Next, in the "Variable Value" field, insert a number to increase (>1) or decrease (<1) the scaling factor. For exemple "0.75" will decrease scaling of text and icons by 0.75.
- In the main window, click “Apply” and “Ok” buttons.
- Restart Windows to apply the new environment variable.
Linux/macOS
You can either start Genymotion from a terminal with the variables:
$ QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCALE_FACTOR=0.75 ./genymotion
Or export the variable temporarily and start Genymotion from a terminal
$ export QT_AUTO_SCREEN_SCALE_FACTOR=0
$ export QT_SCALE_FACTOR=0.75
$ ./genymotion
Or add the variables to your .bashrc
(Linux) or ~/.bash-profile
(macOS) file, to set it permanently.
In this example, we have set a value of "0.75" to decrease scaling of text and icons by 0.75, but you can use any other value to change scaling to your liking (>1 to increase scaling, <1 to decrease it).