Das Forum

Running specific games with 'primusrun'

Autor Antworten
fzninuse Monday 16 December 2013 at 13:32
fzninuseAnonymous

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
petch

Hi,
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
fzninuseAnonymous

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
DionysiusAnonymous

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]
Encoding=UTF-8
Name=Guild Wars 2
Comment=PlayOnLinux
Type=Application
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
StartupWMClass=Gw2.exe
Categories=Game;RolePlaying;

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

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 dmca-notice@playonlinux.com