Problems setting gamma in a script

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
epsilon_da
Level 2
Level 2
Posts: 10
Joined: Mon Jun 09, 2008 10:07 pm

Problems setting gamma in a script

Post by epsilon_da »

Hello.

I am trying to make an script for a game that is working perfectly on wine.
The script should make its own .wine-games folder

Code: Select all

#!/bin/bash
export WINEPREFIX=/home/data/wine/.wine-games
#export WINEDEBUG=loaddll,relay
#export WINEDLLOVERRIDES="msvcp60"

xgamma -gamma 2.5
$TERM -title $0 -e wine explorer /desktop=winedesktop,1024x768 "`winepath -w "$*"`"
xgamma -gamma 1.0
xrandr -s 0 
Everything works.

But, after i set gamma to 2.5, the game launches and it resetes the gamma back again to 1.0.
I want wine to NOT change the gamma value, and do it by my own with this script.

Is there a way to do that?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Problems setting gamma in a script

Post by vitamin »

epsilon_da wrote:I want wine to NOT change the gamma value, and do it by my own with this script.

Is there a way to do that?
Even if you disable XVidMode Wine will still use it's part to set gama. So the answer is - no.

Tell your game not to reset gama. Wine does what game asks it to do.
Locked