← 返回命令列表

Linux command

xgamma 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Display current gamma values

xgamma

Set gamma for all channels

xgamma -gamma [1.2]

Set individual channel gamma

xgamma -rgamma [1.1] -ggamma [1.0] -bgamma [0.9]

Set gamma on specific display

xgamma -display [:0] -gamma [1.2]

Set gamma on specific screen

xgamma -screen [0] -gamma [1.1]

说明

xgamma queries and alters the gamma correction of a monitor via the XFree86-VidModeExtension. Gamma affects mid-tone brightness; values below 1.0 increase contrast while values above 1.0 decrease it. When invoked without gamma arguments, xgamma prints the current red, green, and blue gamma values to standard output. Gamma values are transmitted to the X server with three decimal places of precision. 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. The DISPLAY environment variable provides the default host and display number.

参数

-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.
-help
Show usage summary and exit.

FAQ

What is the xgamma command used for?

xgamma queries and alters the gamma correction of a monitor via the XFree86-VidModeExtension. Gamma affects mid-tone brightness; values below 1.0 increase contrast while values above 1.0 decrease it. When invoked without gamma arguments, xgamma prints the current red, green, and blue gamma values to standard output. Gamma values are transmitted to the X server with three decimal places of precision. 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. The DISPLAY environment variable provides the default host and display number.

How do I run a basic xgamma example?

Run `xgamma` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -gamma _value_ do in xgamma?

Set gamma for all color channels.