Systemd screen brightness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux