1 Star 0 Fork 0

Gitee 极速下载 / brightnessctl

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Hummer12007/brightnessctl
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

brightnessctl

This program allows you read and control device brightness. 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 make install. Consult the Makefile 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. (done by default)

  2. installing brightnessctl as a suid binary.

  3. using the systemd-logind API.

The behavior is controlled by the INSTALL_UDEV_RULES flag (setting it to 1 installs the udev rules, it is the default value).

The systemd support (since v243) is controlled by the ENABLE_SYSTEMD flag (udev rules will not be installed by default).

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%

Repository Comments ( 0 )

Sign in for post a comment

About

该程序允许用户读取和控制设备亮度 expand collapse
C/C++ and 3 more languages
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
C/C++
1
https://toscode.gitee.com/mirrors/brightnessctl.git
git@toscode.gitee.com:mirrors/brightnessctl.git
mirrors
brightnessctl
brightnessctl
master

Search

141041 ab9339c7 1850385 141043 25c028d5 1850385