LinuxCommandLibrary

xgamma

TLDR

Display current gamma values

$ xgamma
copy
Set gamma for all channels
$ xgamma -gamma [1.2]
copy
Set individual channel gamma
$ xgamma -rgamma [1.1] -ggamma [1.0] -bgamma [0.9]
copy
Set gamma on specific display
$ xgamma -display [:0] -gamma [1.2]
copy
Set gamma on specific screen
$ xgamma -screen [0] -gamma [1.1]
copy

SYNOPSIS

xgamma [options]

DESCRIPTION

xgamma queries and sets gamma correction values for X11 displays. Gamma affects mid-tone brightness; values below 1.0 increase contrast while values above 1.0 decrease it.
The tool adjusts the video lookup table (LUT) through the X server. Default gamma is 1.0. Separate control of red, green, and blue channels allows color temperature adjustment.
Settings are temporary and reset on X server restart. For persistence, add xgamma commands to ~/.xinitrc or ~/.xprofile, or configure in xorg.conf.

PARAMETERS

-gamma value

Set gamma for all color channels.
-rgamma value
Set red channel gamma.
-ggamma value
Set green channel gamma.
-bgamma value
Set blue channel gamma.
-display name
X display to use.
-screen num
Screen number to adjust.
-quiet
Suppress normal output.

CAVEATS

X11 only; no effect on Wayland. Settings don't persist across reboots without scripting. May conflict with color management tools like Redshift. Hardware support varies.

HISTORY

xgamma is part of the X.Org utility collection, providing simple gamma correction since early X11 implementations. While largely superseded by xrandr for display configuration, xgamma remains useful for quick gamma adjustments.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

$239.99
New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

$54.00
GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

$739.99
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

$739.99
Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

$1,589.00
nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

$129.95