Xgamma value

Discussion in 'Software & Applications' started by Manoj11, Jun 4, 2017.

  1. Manoj11

    Manoj11 Thread Starter
    Expand Collapse
    New Member

    Jun 4, 2017
    Likes Received:
    Hell friends
    I have installed elementary os 0.4.1 on HP 2000-2120 notebook.
    However screen is faint. I have added xgamma -gamma 0.7 to startup. But after reboot xgamma value changes automatically to 1. I am tired of re-entering value again and again. Plz someone help me.
    Thank you.
  2. Pretzel Jones

    Pretzel Jones
    Expand Collapse

    What I recommend is creating a shell script and a .desktop file linking to the script. Then add the "application" to your startup via the System Settings. This way every time you log in the script is run and the gamma is set. It works perfectly for me. Here is an example of what I've done...

    create a new text file and add the following:


    xrandr --output eDP-1 --gamma 0.85:0.85:0.85

    Note: play with the values to get the gamma to your liking. You can do this on the fly via the terminal.

    Save is gamma.sh or something like that. Note: eDP-1 refers to the monitor on my setup. To identify yours run

    xrandr -q

    Then in the terminal navigate to the folder where your gamma.sh is saved and run the below command in the terminal:

    chmod +x gamma.sh

    This will set the script as executable.

    Now you need to create a desktop file so we can add the script to your startup. Open a new text file and name it something like gamma.desktop.

    add the following to the file:

    [Desktop Entry]
    Name=Gamma Setter Application
    Comment=A script to set gamma on monitor
    Exec=/path/to/gamma.sh //obviously here you want to add the true path to your file
    Icon=/path/to/icon.png //obviously here you want to add the true path to your icon file if you want one different from the base gear

    Once that is done open System Settings > Applications > Startup (I think that's what it's called) and add your gamma setter application.

    Good luck!
    #2 Pretzel Jones, Oct 4, 2017
    Last edited by a moderator: Oct 5, 2017

Share This Page