2

I have a startup command to set my gamma in xgamma; whenever I log in, it flickers briefly to what I have it set to, then goes back to 1. Why? Is there a better way to adjust gamma defaults?

Anwar
  • 75,875
  • 31
  • 191
  • 309
Ness
  • 21
  • 1
  • 3
  • 4
    possible duplicate of [How to run xrandr commands at startup in Ubuntu](http://askubuntu.com/questions/637911/how-to-run-xrandr-commands-at-startup-in-ubuntu) – Jacob Vlijm Aug 20 '15 at 07:31
  • see futher below in the answer: http://askubuntu.com/a/637921/72216 : "Important note: adding xrandr commands to Startup Applications" There is no difference with setting `xrandr` commands on startup (log in). – Jacob Vlijm Aug 20 '15 at 07:34

2 Answers2

3

I had the same problem.

The solution for me was to set a sleep command in the bash script for 10 seconds to delay the initiation.

#! /bin/sh
sleep 10
xgamma -rgamma x.xxx -ggamma x.xxx -bgamma x.xxx

This seems to work on 12.10 with HD 4000 graphics (mesa driver)

(If you need to create a script, you open your text editor, paste the lines above in the text file, chage x.xxx values to what you need, and save the file with .sh name ( is you file name))

(Than you want to add script to start up applications, type start up in unity bar, and than add the file in the new window)

Cheers,

user143697
  • 31
  • 1
0

Add the xgamma -gamma x.xxx command to ~/.xinitrc

thinkmassive
  • 773
  • 5
  • 9