asmctl
—
controlling keyboard backlight and LCD backlight
asmctl video |
[up | down |
acpi] |
The asmctl
command controls LCD backlight
and keyboard backlight.
The LCD backlight is configured through the backlight(9) device
driver. If the backlight(9) is not available, changes the
‘hw.acpi.video.lcd0.brightness’ sysctl value to configure.
The keyboard backlight is configured through the
‘dev.asmc.0.light.control’ sysctl value.
- video up
- Brighten the LCD backlight.
- video down
- Dim the LCD backlight
- video acpi
- Adjust the LCD backlight brightness based on whether the laptop is on AC
power or battery power. Relies on acpi status.
- key up
- Brighten the keyboard backlight.
- key down
- Dim the keyboard backlight.
- key acpi
- Adjust the keyboard backlight brightness based on whether the laptop is on
AC power or battery power. Relies on acpi status.
- /var/lib/asmctl.conf
- Saved sysctl(8) values for next boot.
The following kernel modules are required.
asmc.ko
acpi_video.ko
Changing hw.acpi.video.* sysctl variables requires root privilege.
For this reason, asmctl
is installed with setuid
root. On FreeBSD-11.0R or higher, asmctl
uses
capsicum(4) to be sandboxed.