Skip to content

Instantly share code, notes, and snippets.

@telamon
Created March 2, 2025 03:39
Show Gist options
  • Save telamon/676ff05fa1d02d1ec7e79deaab5b2fbe to your computer and use it in GitHub Desktop.
Save telamon/676ff05fa1d02d1ec7e79deaab5b2fbe to your computer and use it in GitHub Desktop.
drm_info
```
$ drm_info | grep -i gamma
│ │ │ └───Gamma size: 1024
│ │ ├───"DEGAMMA_LUT": blob = 0
│ │ ├───"DEGAMMA_LUT_SIZE" (immutable): range [0, UINT32_MAX] = 1024
│ │ ├───"GAMMA_LUT": blob = 120
│ │ └───"GAMMA_LUT_SIZE" (immutable): range [0, UINT32_MAX] = 1024
│ │ │ └───Gamma size: 1024
│ │ ├───"DEGAMMA_LUT": blob = 0
│ │ ├───"DEGAMMA_LUT_SIZE" (immutable): range [0, UINT32_MAX] = 1024
│ │ ├───"GAMMA_LUT": blob = 119
│ │ └───"GAMMA_LUT_SIZE" (immutable): range [0, UINT32_MAX] = 1024
│ │ │ └───Gamma size: 1024
│ │ ├───"DEGAMMA_LUT": blob = 0
│ │ ├───"DEGAMMA_LUT_SIZE" (immutable): range [0, UINT32_MAX] = 1024
│ │ ├───"GAMMA_LUT": blob = 0
│ │ └───"GAMMA_LUT_SIZE" (immutable): range [0, UINT32_MAX] = 1024
│ │ └───Gamma size: 1024
│ ├───"DEGAMMA_LUT": blob = 0
│ ├───"DEGAMMA_LUT_SIZE" (immutable): range [0, UINT32_MAX] = 1024
│ ├───"GAMMA_LUT": blob = 0
│ └───"GAMMA_LUT_SIZE" (immutable): range [0, UINT32_MAX] = 1024
$ gammastep -vvv -O 4500
Notice: Brightness: 1.00:1.00
Notice: Gamma (Day): 1.000, 1.000, 1.000
Notice: Gamma (Night): 1.000, 1.000, 1.000
Informational: Using method: 'wayland'
Notice: Color temperature: 4500K
Warning: Zero outputs support gamma adjustment.
Warning: 2/2 output(s) do not support gamma adjustment.
Notice: Press ctrl-c to stop...
^C
# nothing happens try drm
$ gammastep -m drm -vvv -O 4500
Notice: Brightness: 1.00:1.00
Notice: Gamma (Day): 1.000, 1.000, 1.000
Notice: Gamma (Night): 1.000, 1.000, 1.000
Notice: Color temperature: 4500K
# program exits 0, no visual change
gammastep -m randr -vvv -O 4500
Notice: Brightness: 1.00:1.00
Notice: Gamma (Day): 1.000, 1.000, 1.000
Notice: Gamma (Night): 1.000, 1.000, 1.000
Notice: Color temperature: 4500K
# same; no change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment