Skip to content

A simple CLI utility for setting display backlight level on linux

License

Notifications You must be signed in to change notification settings

Borys64/backlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backlight

The purpose of this program is to provide a simple and Xorg independent way of setting the backlight brightness via the sysfs backlight interface - this way the backlight can be set even in a virtual console (tty).

Prerequisites

  • g++ >=10.2.1

Installation

# build
make build

# install
sudo make install

Usage

# must be run as root
# use -h for more options
sudo backlight <-l[evel] <level>> [-h[elp] -d[evices] -D[evice] <id>]

Options

Syntax Description
-h[elp] Display usage information
-l[evel] <level> Set display brightness (between 1 and 100)
-d[evices] Display list of available devices
-D[evice] <id> Set brightness of specific device from device list

Examples

Set brightness of all displays to 100% (default):

sudo backlight -l 100 # -l <%>

Display all available devices:

backlight -d

Example output:

$ backlight -d
0: intel_backlight

About

A simple CLI utility for setting display backlight level on linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published