sjkingo / acpi-brightness

Program to modify backlight brightness through ACPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

acpi-brightness

This is a small program for adjusting the brightness of a backlight through ACPI (e.g. on a laptop screen). The binary is setuid root so it can be run by any user.

It may be configured by editing the config.h file and re-compiling.

Installation

  1. Modify config.h if needed.
  2. $ make to compile.
  3. # make install to install the binary to /usr/bin.

You may remove the program by running # make uninstall.

Usage

To display the current brightness level

$ brightness

To set the current brightness level to a given <value> (note that this value must be in the range [MIN..MAX], which is configured in config.h. By default this is [0..10]):

$ brightness <value>

To increase the current brightness level by 1:

$ brightness up

To decrease the current brightness level by 1:

$ brightness down

To set the brightest level:

$ brightness max

To set the dimmest level:

$ brightness min

About

Program to modify backlight brightness through ACPI


Languages

Language:C 88.8%Language:Makefile 11.2%