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

hofuku 121b6829f0 udev rules file il y a 2 ans
.gitignore d15afb4c75 Complete remake il y a 2 ans
99-backlight.rules 121b6829f0 udev rules file il y a 2 ans
LICENSE d15afb4c75 Complete remake il y a 2 ans
Makefile d15afb4c75 Complete remake il y a 2 ans
README.md d15afb4c75 Complete remake il y a 2 ans
mybacklight.c d15afb4c75 Complete remake il y a 2 ans

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%