Het forum

Change Desktop Resolution on Launch

with virtual desktop

Auteur Antwoorden
booman Dinsdag 19 Mei 2015 om 19:29
booman

I play a lot of old games in PlayOnLinux and they support smaller resolutions like 1024x768 and 2048x1024
I also always use the virtual desktop because of the mouse support
So when I launch an old game and my Linux Desktop is 1680x1050, they appear windowed because the desktop doesn't switch to the game resolution.

Is there a way to run a command like\

xrandr 1024x768

When I launch a game in PlayOnLinux so the Linux Desktop will match the in-game resolution?


† Booman †
Mint 20.1 64-bit | Nvidia 460 | GeForce GTX 1060
Linux for Beginners | List of Linux Games | My Games
PlayOnLinux Guides | PlayOnLinux Explained
petch Dinsdag 19 Mei 2015 om 19:40
petch
Developer

Configure button > (select  shortcut) > Miscellaneous tab > Command to exec before running the program

booman Dinsdag 19 Mei 2015 om 19:43
booman

Perfect, what is a good command for Mint to resize the desktop resolution?
Will xrandr work?


† Booman †
Mint 20.1 64-bit | Nvidia 460 | GeForce GTX 1060
Linux for Beginners | List of Linux Games | My Games
PlayOnLinux Guides | PlayOnLinux Explained
booman Vrijdag 22 Mei 2015 om 23:54
booman

Is there a way to run Terminal commands from the PlayOnLinux shortcut, so when I Run the game the xrandr -s command runs automatically?


† Booman †
Mint 20.1 64-bit | Nvidia 460 | GeForce GTX 1060
Linux for Beginners | List of Linux Games | My Games
PlayOnLinux Guides | PlayOnLinux Explained
petch Vrijdag 22 Mei 2015 om 23:56
petch
Developer

Isn't that the same as what you asked before?

booman Zaterdag 23 Mei 2015 om 0:00
booman

Oh, I didn't realize the "command to exec" before running the program applied to the shortcuts on the desktop.
I'll try it again.

Thanks


† Booman †
Mint 20.1 64-bit | Nvidia 460 | GeForce GTX 1060
Linux for Beginners | List of Linux Games | My Games
PlayOnLinux Guides | PlayOnLinux Explained
booman Woensdag 27 Mei 2015 om 23:47
booman

this works perfectly!  Thanks for the tip Petch

Also, do you think running:

taskset -c 0

would work as well?

would I have to add:

taskset -c 0 steam.exe

Or whatever the game executable is?


† Booman †
Mint 20.1 64-bit | Nvidia 460 | GeForce GTX 1060
Linux for Beginners | List of Linux Games | My Games
PlayOnLinux Guides | PlayOnLinux Explained