Hey everyone,
I'm trying to get my laptop backlight keys (fn+f6/f7) to adjust the
brightness of my toshiba laptop backlight. Previously, I had entered the
following in my /etc/acpi/handler.sh to handle the acpi events generated
when those keys were pressed:
video/brightnessdown)
echo $(($(cat /sys/class/backlight/acpi_video0/brightness) -1)) > /sys/class/backlight/acpi_video0/brightness
;;
video/brightnessup)
echo $(($(cat /sys/class/backlight/acpi_video0/brightness) +1)) > /sys/class/backlight/acpi_video0/brightness
;;
However, as I am working on migrating to systemd, acpid no longer runs
and hence does not handle these events. How can I write a similar
handler into systemd?
Thanks,
Mike