Back to the main site

Maximise Virtual Desktop

Is they’re a good way to maximize Virtual Desktop? Games tend to run more consistently with Virtual Desktop, but you can’t really expand windows because it stays locked at a set resolution is they’re a work around for that?

Thanks

You could enter a custom resolution in WINE config to match your screen resolution. In Lutris you can find this in the game options -advanced settings- or you can run Wine configuration.

If you want to use a virtual desktop size lower than your screen resolution but have it full screen then I think you’ll need two shell scripts which can do the resolution changes. For instance a game-start.sh and a game-end.sh where the first changes the resolution to the game resolution and the second one changes it back to the native resolution. The first can be added to Game configuration -advanced settings- / System options tab / Pre launch command, the last one can be added to the same location but then the Post launch command.

This stack overflow question has some nice options provided:
how-do-i-change-the-screen-resolution-using-ubuntu-command-line

These scripts could look like this:
game-start.sh:
#!/bin/bash
xrandr --output HDMI-0 --mode 1920x1080

game-end.sh:
#!/bin/bash
xrandr --output HDMI-0 --mode 2560x1440

Note: this is untested material. It’s just a hint where you can start tweaking… :slight_smile:

1 Like

Awesome, those are some great details, thanks :slightly_smiling_face: still learning xrandr in the terminal