The forum

How to activate Gamemode ?

Author Replies
Neoman Wednesday 5 May 2021 at 14:19
NeomanAnonymous

Welcome back. Please see this page https://github.com/FeralInteractive/gamemode. How to activate gamemode? In the case of a game on Linux, e.g. SuperTuxKart gamemoderun ./run_game.sh For SuperTuxKart.exe in Playonlinux: in Playonlinux shell: gamemoderun wine supertuxkart.exe Or edit the Steam launch options: gamemoderun% command% Note: for older versions of GameMode (before 1.3) use this string in place of gamemoderun: LD_PRELOAD = "$ LD_PRELOAD: / usr / \ $ LIB / libgamemodeauto.so.0" Please note the backslash here in \ $ LIB is required. To display the status of gamemoderun in the shell: gamemoded -s One more thing just doesn't work in PlayOnLinux Configuration / Miscellaneous Command to be executed before starting the program: gamemoderun, because by running supertuxkart.exe then I saw the status of gamemoderun (in the shell: gamemoded -s): gamemode is inactive. Please enable the missing gamemoderun (some Enabled or Disabled) in PlayOnLinux and correct (Command to be executed before starting the program). Thank you in advance.

Neoman Saturday 10 July 2021 at 3:30
NeomanAnonymous

For the gamemode to work properly:
Valid commands in the terminal:
git clone https://github.com/FeralInteractive/gamemode.git
cd gamemode
./bootstrap.sh
Restart.
gamemoded -t
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgamemodeauto.so
Start the game SuperTuxKart (in the SuperTuxKart directory: command ./run_game.sh) and enter gamemoded -s in a separate console.
Please build the gamemode option in Playonlinux configuration:
General:
Gamemode: enabled or disabled (export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgamemodeauto.so).

DrM1173 Monday 17 July 2023 at 17:21
DrM1173Anonymous

In order to use gamemode in PlayOnLinux succesfully, you can add the following lines in the "PlayOnLinux -> Configure -> select the virtual drive -> Miscellaneous tab -> Command to execute before running the program":

 

export GAMEMODEAUTO="/usr/\$LIB/libgamemodeauto.so.0" && export LD_PRELOAD="${GAMEMODEAUTO}${LD_PRELOAD:+:$LD_PRELOAD}"

I have taken these commands from the /usr/bin/gamemoderun file which is a bash scrip file. By running gamemoded -s in the terminal you can check of gamemode has been enabled while running any game in PlayOnLinux.

Edited by DrM1173

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