BLCTL

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
CONFIGURATION FILE
COPYRIGHT

NAME

blctl - backlight control utility

SYNOPSIS

blctl [OPTION]... [BRIGTHNESS]

DESCRIPTION

blctl controls backlight settings using the /sys/class/backlight interface of the Linux kernel. It supports changing brightness in a configurable number of steps, as well as powering the backlight on and off on devices that support power control over the backlight interface.

Brightness Control
The brightness setting is administered using the BRIGHTNESS argument, which may be one of:

min

Minimal brightness.

max

Maximal brightness.

inc

Step increment.

dec

Step decrement.

sN

Step setting to step #N (range 0..CNT-1).

VALUE

Brightness value (range MIN..MAX).

Minimal and maximal values default to HW minimum/maximum and may be adjusted with the -m MIN and -M MAX options or in the configuration file. The values of MIN, MAX, and BRIGHTNESS may also be specified as floating-point values (0.0 to 1.0) or percentages (0% to 100%) for proportional setting from the corresponding range (e.g., -M 0.9 sets maximal brightness to 90% of HW maximum, -m 0.1 sets minimal brightness to 10% of maximal brightness, and using 0.5 as BRIGHTNESS sets brightness to the middle of the range between MIN and MAX).

Step adjustment using inc/dec and sN requires the step count to be set with the -s option or in the configuration file. If the -r option is given, the step adjustment with inc/dec cycles through all available steps.

Power Control
Power control is available only on devices where the backlight driver allows turning the backlight on and off by writing numeric values into the bl_power file under /sys/class/backlight/IFC. The Linux kernel uses the value of 0 for power-on and 4 for power-off; however, some drivers may use different values (e.g., 0 for power-on and 1 for power-off). The power-on and power-off values used by blctl may be adjusted using the -O and -o options or in the configuration file.

Backlight power control is administered with the -p PWR option, where PWR may be one of:

on

Turn the backlight on.

off

Turn the backlight off.

toggle

Toggle between on and off.

OPTIONS

Options without arguments may be concatenated after a single hyphen. Space between an option and its argument may be omitted.

-c CFG

Use configuration file CFG.

-h

Output usage information.

-i IFC

Use the backlight interface /sys/class/backlight/IFC.

-m MIN

Minimal brightness (range 0..MAX, default 0).

-M MAX

Maximal brightness (range 0..HW maximum, default: HW maximum).

-o OFF

Power-off value for bl_power (default: 4).

-O ON

Power-on value for bl_power (default: 0).

-p PWR

Power setting (range 0..4 or one of on/off/toggle).

-r

Recurring brightness step adjustment.

-s CNT

Step count for step brightness setting.

-v

Output verbose information.

CONFIGURATION FILE

The configuration file consists of option=value lines. Leading and trailing whitespaces and any text after the # symbol are ignored. Boolean values can be either on, yes, or true for true (enabled) or off, no, or false for false (disabled). Recognized configuration options are:
iface
=IFC

Backlight interface selection (equivalent to -i).

max=MAX

Maximal brightness value (equivalent to -M).

min=MIN

Minimal brightness value (equivalent to -m).

power-on=ON

On value for power control (equivalent to -O).

power-off=OFF

Off value for power control (equivalent to -o).

recur=boolean

Recurring step adjustment (equivalent to -r).

steps=CNT

Step count for step brightness adjustment (equivalent to -s).

Configuration options are ignored if the corresponding command line options are used.

COPYRIGHT

Copyright (c) 2025 Vic B <vic@4ever.vip>.
License GPLv3: GNU GPL version 3 <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.