Hummer12007/brightnessctl

C
Linux

A program to read and control device brightness

brightnessbacklightlinuxwayland
스타 성장
스타
1.3k
포크
63
주간 성장
+2
이슈
15
5001k
2023년 1월2024년 3월2025년 6월2026년 8월
README

brightnessctl

This program allows you read and control device brightness on Linux. Devices, by default, include backlight and LEDs (searched for in corresponding classes). If omitted, the first found device is selected.

It can also preserve current brightness before applying the operation (allowing for usecases like disabling backlight on lid close).

Installation

The program is available in:

One can build and install the program using ./configure && make install. Consult ./configure --help for relevant build-time options.

Permissions

Modifying brightness requires write permissions for device files or systemd support. brightnessctl accomplishes this (without using sudo/su/etc.) by either of the following means:

  1. installing relevant udev rules to add permissions to backlight class devices for users in video and leds for users in input. This requires your user to be in the video and input groups. (done by default)

  2. installing brightnessctl as a suid binary.

  3. using the systemd-logind API.

FAQ

I'd like to configure the brightness of an external monitor

Use the ddcci-driver-linux kernel module to expose external monitor brightness controls to brightnessctl. Available in repositories of AUR, Debian, Nix, Ubuntu, Void.

Usage

Usage: brightnessctl [options] [operation] [value]

Options:
  -l, --list			list devices with available brightness controls.
  -q, --quiet			suppress output.
  -p, --pretend			do not perform write operations.
  -m, --machine-readable	produce machine-readable output.
  -n, --min-value		set minimum brightness, defaults to 1.
  -e, --exponent[=K]		changes percentage curve to exponential.
  -s, --save			save previous state in a temporary file.
  -r, --restore			restore previous saved state.
  -h, --help			print this help.
  -d, --device=DEVICE		specify device name (can be a wildcard).
  -c, --class=CLASS		specify device class.
  -V, --version			print version and exit.

Operations:
  i, info			get device info.
  g, get			get current brightness of the device.
  m, max			get maximum brightness of the device.
  s, set VALUE			set brightness of the device.

Valid values:
  specific value		Example: 500
  percentage value		Example: 50%
  specific delta		Example: 50- or +10
  percentage delta		Example: 50%- or +10%
관련 저장소
MonitorControl/MonitorControl

🖥 Control your display's brightness & volume on your Mac as if it was a native Apple Display. Use Apple Keyboard keys or custom shortcuts. Shows the native macOS OSDs.

SwiftMIT Licensemacoskeyboard
monitorcontrol.app
34.1k1k
waydabber/BetterDisplay

Unlock your displays on your Mac! Flexible HiDPI scaling, XDR/HDR extra brightness, virtual screens, DDC control, extra dimming, PIP/streaming, EDID override and lots more!

apphdmimac
betterdisplay.pro
33.6k638
xanderfrangos/twinkle-tray

Easily manage the brightness of your monitors in Windows from the system tray

JavaScriptnpmMIT Licensebrightnessbrightness-control
twinkletray.com
9k320
disintegration/imaging

Imaging is a simple image processing package for Go

GoGo ModuleslibraryMIT Licenseimageresize
5.8k482
alin23/Lunar

Intelligent adaptive brightness for your external monitors

SwiftMIT Licensemacosmacbook
lunar.fyi
5.7k145
emoacht/Monitorian

A Windows desktop tool to adjust the brightness of multiple monitors with ease

C#appMIT Licensemonitordisplay
microsoft.com/store/apps/9nw33j738bl0
4.7k220
ModernFlyouts-Community/ModernFlyouts

A modern Fluent Design replacement for the old Metro themed flyouts present in Windows.

C#appMIT Licensemetroflyouts
modernflyouts-community.github.io
4.1k214
Tyrrrz/LightBulb

Reduces eye strain by adjusting screen gamma based on the current time

C#appMIT Licensedisplaybrightness
github.com/Tyrrrz/LightBulb/releases
2.8k169
didriksg/Crisp

Every display control macOS hides, in one menu bar app: sharp HiDPI/Retina scaling (no more blurry or tiny text), DDC brightness and volume, Extra Brightness past 100%, presets, virtual displays. Free and open source, a no-cost alternative to BetterDisplay and Lunar.

SwiftMIT Licensebrightnessddc
crispmac.app
1.6k66
cyb3rko/flashdim

Modern flashlight app with dim functionality on Android 13+

KotlinappApache License 2.0androidandroid-app
1.4k68