Opensuse 132.1 Display Gamma Settings Not Saving after reboot

HI,

Finally got Opensuse to work from a Live CD from a magazine.

I have changed the display using the gamma settings - even system wide with root password - yet when the pc is started from cold next day the settings have reverted.

This is KDE also.

Any ideas - can i manually chnage for permanent setting of gamma requirements - or are these settings updated to default after a reboot ?.

Thanks and regards,

Shadders.

Hi,

Opensuse 13.1 seems to be reverting to the original gamma settings.

I searched for gamma in the file system and located my home directory settings which do change.

/home/user/.kde4/share/config/kgammarc

This seems to be the global setting which is changing when i use the desktop access to change, but is reverting to a default, even when selecting system wide setting previously and saving.

Any ideas on how to resolve ?.

Thanks and regards,

Shadders.

Hi,

In searching this seems to be a bug that has crept back into to KDE

https://bugzilla.redhat.com/show_bug.cgi?id=139942

Regards,

Shadders.

Did you notice the date on that bug report. A bit old I’d say

Also though you can use a xorg.conf file that is not required any more.

So tell use what video card and what driver??

Hi,

Thanks for the reply.

It is a Dell 660 and Intel Core i5 3330 with internal Intel graphics, driver i915.

So i assume that i need to locate the correct configuration file and modify manually ?

Thanks and regards,

Shadders.

I guess the problem is that apparently xf86gammacfg doesn’t work at all:

xf86gammacfg .9 .9 .9
Usage: xf86gammacfg RGAMMA GGAMMA BGAMMA [RGAMMA GGAMMA BGAMMA [...]]

Probably because it doesn’t find the xorg.conf.

This would be a possibility, yes.

You should add the “Gamma” option to the “Monitor” section.
To do that without an xorg.conf, create a file /etc/X11/xorg.conf.d/50-mymonitor.conf (or edit the existing /etc/X11/xorg.conf.d/50-monitor.conf) like this:

Section "Monitor"
  Identifier "Default Monitor"
  Gamma 1.0 1.0 1.0
EndSection


You should specify your desired values there of course, you can either use one value or 3 values.
From “man xorg.conf”:

       **Gamma**  gamma-value

       **Gamma**  red-gamma green-gamma blue-gamma

              This is an optional entry that can be used to specify the  gamma
              correction  for  the  monitor.   It may be specified as either a
              single value or as three separate RGB values.  The values should
              be  in  the  range 0.1 to 10.0, and the default is 1.0.  Not all
              drivers are capable of using this information.

Then you also need to reference this from a “Screen” section, so create /etc/X11/xorg.conf.d/50-myscreen.conf (or edit the existing /etc/X11/xorg.conf.d/50-screen.conf) like this:

Section "Screen"
  Identifier "Default Screen"
  Device "Default Device"
  Monitor "Default Monitor"
EndSection

I verified that the missing xorg.conf is the reason for xf86gammacfg to not work.

If you create an xorg.conf (with “X --configure” f.e.) xfgammacfg correctly adds that “Gamma” option there:

   Gamma   .9  .9  .9  # created by KGamma

So either edit xorg.conf.d files manually like explained in the previous post, or create an xorg.conf and use KDE’s settings module.

PS: You can set the gamma value with xrandr as well. But this does only apply for the current session then of course.

Hi wolfi323

Thank you for this information - i checked the KDE web pages - but it was not there.

I edited the 50-monitor.conf file - seemed to be fully commented out - so i added the relevant section at the end.

I will reboot the PC later to ensure that it has worked.

Thanks again for this - much appreciated.

Regards,

Shadders.

But you need a “Screen” section as well, see my previous post.

Generally you can adjust gamma at the monitor itself.

Hi,

Thaks for the reminder - i did miss that art. I will try a reboot and see if it works.

Thanks and regards,

Shadders.

Hi,

Thanks - the monitor is always tricky to adjust - prefer the Linux option. Thanks.

Regards,

Shadders.

Hi,

I rebooted the PC and the change did not take effect until i opened up the display and monitor KDE options and only when selecting gamma did the screen change settings.

So this still seems to be an bug.

Regards,

Shadders.

Hi,

Post deleted - i have a sound issue with amazon play lists. Sound is working on the system.

Thanks and regards,

Shadders.

Well, if you created/edited those two files, it should work.

Please post those two files, maybe you made a typo.

Or maybe kscreen interferes? You could try to disable it in KDE’s Systemsettings (Configure Desktop)->Startup and Shutdown->Service Management.

Hi Wolfi323,

Tanks for replying : files are as follows :

linux-9cy6:/etc/X11/xorg.conf.d # more 50-monitor.conf

Having multiple “Monitor” sections is known to be problematic. Make

sure you don’t have in use another one laying around e.g. in another

xorg.conf.d file or even a generic xorg.conf file. More details can

be found in https://bugs.freedesktop.org/show_bug.cgi?id=32430.

#Section “Monitor”

Identifier “Default Monitor”

## If your monitor doesn’t support DDC you may override the

## defaults here

#HorizSync 28-85

#VertRefresh 50-100

## Add your mode lines here, use e.g the cvt tool

#EndSection
Section “Monitor”
Identifier “Default Monitor”
Gamma 0.7 0.7 0.7
EndSection

and

linux-9cy6:/etc/X11/xorg.conf.d # more 50-screen.conf

Having multiple “Screen” sections is known to be problematic. Make

sure you don’t have in use another one laying around e.g. in another

xorg.conf.d file or even a generic xorg.conf file. More details can

be found in https://bugs.freedesktop.org/show_bug.cgi?id=32430.

#Section “Screen”

Identifier “Default Screen”

Device “Default Device”

## Doesn’t help for radeon/radeonhd drivers; use magic in

## 50-device.conf instead

Monitor “Default Monitor”

#EndSection
Section “Screen”
Identifier “Default Screen”
Device “Default Device”
Monitor “Default Monitor”
EndSection

I think i have it correct. Thanks.

In the service manager - system setting - Display Management is not running - so should this be set for startup initialisation ?. Thanks.

Regards,

Shadders_X

Yes.
And it works fine here with those 2 files (I copy/pasted the contents).

What does this say after boot? (before you enter systemsettings)

xrandr --verbose | grep Gamma

Can you set the Gamma value with this line?

xrandr --output VGA1 --gamma 0.7:0.7:0.7

You have to change the name of the display (“VGA1”) if necessary, of course.

If that works (it should, since KDE’s Gamma settings do nothing else I think), you could create a script in ~/.kde4/env/ with that line to set the Gamma on login.

In the service manager - system setting - Display Management is not running - so should this be set for startup initialisation ?. Thanks.

No.
I meant to disable the “KScreen 2” service in the lower list.
But I just tried it myself now, and this doesn’t seem to interfere with the Gamma setting, so you shouldn’t have to disable it.

PS: Have you maybe created an /etc/X11/xorg.conf file in the meantime?
That would explain why those 2 files didn’t work for you, as /etc/X11/xorg.conf.d/ is ignored then.

In that case xf86gamma, resp. “Save settings system wide” in KDE’s Gamma settings, should work though. (You may have to run it as root with “kdesu systemsettings”)
If not, remove /etc/X11/xorg.conf and the 2 files in /etc/X11/xorg.conf.d/ should take effect.

Hi wolfi323,

I checked for the xorg.conf, and this is not present.

Thanks and regards,

Shadders.

Hi wolfi323,

I ran the command you suggested :

linux-9cy6:/etc # xrandr --output VGA1 --gamma 0.7:0.7:0.7
xrandr: Need crtc to set gamma on.

I searched for Gamma and the following :

linux-9cy6:/etc/X11 # grep -R Gamma
xorg.conf.d/50-monitor.conf: Gamma 0.7 0.7 0.7

I then did a further search :

l

inux-9cy6:/etc # grep -R Gamma
sane.d/artec_eplus48u.confption redGamma 1.0
sane.d/artec_eplus48u.confption greenGamma 1.0
sane.d/artec_eplus48u.confption blueGamma 1.0
sane.d/artec_eplus48u.confption masterGamma 1.9
sane.d/plustek.confption redGamma 1.0
sane.d/plustek.confption greenGamma 1.0
sane.d/plustek.confption blueGamma 1.0
sane.d/plustek.confption grayGamma 1.0
sane.d/u12.conf:#option redGamma 1.5
sane.d/u12.conf:#option greenGamma 1.5
sane.d/u12.conf:#option blueGamma 1.5
sane.d/u12.conf:#option grayGamma 1.5
X11/xorg.conf.d/50-monitor.conf: Gamma 0.7 0.7 0.7
Binary file splashy/themes/default/FreeSans.ttf matches
ImageMagick-6/english.xml: <message name=“UnableToAllocateGammaMap”>
ImageMagick-6/english.xml: <GammaCorrect>
ImageMagick-6/english.xml: </GammaCorrect>
ImageMagick-6/francais.xml: <message name=“UnableToAllocateGammaMap”>
ImageMagick-6/francais.xml: <GammaCorrect>
ImageMagick-6/francais.xml: </GammaCorrect>
Binary file alternatives/jre_1.7.0/lib/amd64/server/classes.jsa matches
Binary file alternatives/jre/lib/amd64/server/classes.jsa matches
Binary file alternatives/jre_openjdk/lib/amd64/server/classes.jsa matches
Binary file udev/hwdb.bin matches
services:gammafetchsvr 1859/tcp # Gamma Fetcher Server [Cnaan_Aviv]
services:gammafetchsvr 1859/udp # Gamma Fetcher Server [Cnaan_Aviv]
services:# Weldon_J_Showalter Weldon J. Showalter mailto:Gamma&mintaka.dca.mil

For the xrandr command - what should i change VGA1 to - not sure of the relevant switch or variable ?.

Thanks and regards,

Shadders.