A small utility which helps adjust GPIO values using sysfs. Intended to control LEDs, such as keyboard backlight.

hofuku 121b6829f0 udev rules file 2 years ago
.gitignore d15afb4c75 Complete remake 2 years ago
99-backlight.rules 121b6829f0 udev rules file 2 years ago
LICENSE d15afb4c75 Complete remake 2 years ago
Makefile d15afb4c75 Complete remake 2 years ago
README.md d15afb4c75 Complete remake 2 years ago
mybacklight.c d15afb4c75 Complete remake 2 years ago

README.md

Adjust screen brightness

Usage: mybacklight /sys/class/leds/smc... [-get|-set|-inc|-dec] [amount]

Arguments

  • -get: Get current brightness
  • -set x: Set brightness to x%
  • -inc x: Increase brightness by x%
  • -dec x: Decrease brightness by x%