The forum

Change Desktop Resolution on Launch

with virtual desktop

Author Replies
booman Tuesday 19 May 2015 at 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 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained
petch Tuesday 19 May 2015 at 19:40
petch

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

booman Tuesday 19 May 2015 at 19:43
booman

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


† Booman †
Mint 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained
booman Friday 22 May 2015 at 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 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained
petch Friday 22 May 2015 at 23:56
petch

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

booman Saturday 23 May 2015 at 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 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained
booman Wednesday 27 May 2015 at 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 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com