All Rights Reserved.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The XFree86 Project shall
not be used in advertising or otherwise to promote the sale, use or
other dealings in this Software without prior written authorization
from The XFree86 Project.
xgamma allows X users to query and alter the gamma correction of a monitor via the X video mode extension (XFree86-VidModeExtension).
Note that the xgamma utility is obsolete and deficient, xrandr should be used with drivers that support the XRandr extension.
If no value for the gamma correction is given via the -gamma or -rgamma / -ggamma / -bgamma options, xgamma prints the current gamma correction of the display.
8 "-display display" This argument allows you to specify the server to connect to; see X(__miscmansuffix__).
8 "-screen screen" When multiple displays are configured as a single logical display, this option allows you to select the screen you wish to change.
8 "-quiet" Silence the normal output of xgamma
8 "-help" Print out the `Usage:' command syntax summary.
8 "-version" Print out the program version and exit.
8 "-gamma f.f" The gamma correction can either be defined as a single value, or separately for the red, green and blue components. This argument specifies the gamma correction as a single value.
8 "-rgamma f.f" This argument specifies the red component of the gamma correction.
8 "-ggamma f.f" This argument specifies the green component of the gamma correction.
8 "-bgamma f.f" This argument specifies the blue component of the gamma correction.
8 DISPLAY To get default host and display number.
This client changes the internal values of the gamma correction for the Xserver. Whether or not these values are respected depends on the video drivers.
The gamma values are passed to the Xserver with 3 decimal places of accuracy.
David Dawes, David Bateman