Running specific games with 'primusrun'

Autor Odpowiedzi
fzninuse Monday 16 December 2013 at 13:32

Hi guys,

I want to run only specific games with the 'primusrun' command. After searching for a solution I've only found POL_Config_Write PRE_WINE 'primusrun' but this forces every game to be run with 'primusrun'.

e.g.: For Hearthstone I don't need to run the game with 'primusrun' and for Diablo III I want to use 'primusrun' to have nice graphics.
petch Monday 16 December 2013 at 16:00

That was tried for integrated hybrid graphics support in PlayOnLinux 4.1.0 and soon removed as it broke the way PlayOnLinux controls processes.

So I don't think it'll work that way, but any suggestion welcome.
fzninuse Monday 16 December 2013 at 16:52

So this is not possible at the moment? The only way to achieve this is to "POL_Config_Delete PRE_WINE" and start POL from console with 'primusrun POL game' if needed?
Dionysius Friday 27 December 2013 at 15:39

There is a trick/solution. I'm also using a laptop which needs bumblebee to run. I edit the .desktop files to decide if it should run with or without primus. If you don't have your shortcuts anymore, create a new one using the playonlinux gui.

Here's what for example my playonlinux-Guildwars2.desktop looks like:
[Desktop Entry]
Name=Guild Wars 2
Exec=optirun /usr/share/playonlinux/playonlinux --run "Guild Wars 2" %F
Icon=/home/dionysius/.PlayOnLinux//icones/full_size/Guild Wars 2
Name[fr_FR]=Guild Wars 2

So in the Exec line you can decide if you want opti-/primus-run or not.
Clicksights Saturday 8 March 2014 at 16:36

I found out it is game dependend how to use optirun/primus run.
Some games like farcry 2 i also put primusrun in the shortcut to start the game.
In Ubuntu you can use the main menu app for it.
But for Diablo 3 that would not work at all.
I posted a tuto on it a while back.

Will be updating it shortly, cause i just had to reinstall my laptop...

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