Bug 268174

Summary: .kde4/share/config/kgammarc resets to default on logout/reboot
Product: [Applications] systemsettings Reporter: Nils Martin <nilsmsa>
Component: kcm_kgammaAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Nils Martin 2011-03-11 00:14:08 UTC
Version:           unspecified (using KDE 4.6.1) 
OS:                Linux

After setting gamma to 0.85, kgammarc looks like this:
[ConfigFile]
use=kgammarc

[Screen 0]
bgamma=0.85
ggamma=0.85
rgamma=0.85

[SyncBox]
sync=no

After logout or reboot the file is reset (no gamma information) and gamma is set to the default value (1.0 1.0 1.0) acording to xgamma and the systemsettings module.

Removing write permission from .kde4/share/config/kgammarc after setting gamma to 0.85 fixes the problem.


Reproducible: Always

Steps to Reproduce:
1. Set gamma to 0.85 using systemsettings.
2. rebot
3. Check gamma in systemsettings.

Actual Results:  
Gamma was back to 1.0 after reboot.

Expected Results:  
Gamma at 0.85 after reboot.
Comment 1 Nils Martin 2011-03-12 19:03:34 UTC
The overwrite of kgammarc occurs on logout/reboot, not during login. 
When removing write permission on kgammarc and rebooting, system settings reports the gamma value from kgammarc (0.85), but "xgamma -gamma" reports 1.0 and based on the actual brigthnes the gamma apears to be 1.0.
Comment 2 Christoph Feck 2012-11-11 00:49:03 UTC

*** This bug has been marked as a duplicate of bug 218668 ***