[arch-general] Systemd screen brightness
Michael Nawrocki
zaedrake at gmail.com
Tue Aug 14 21:30:24 EDT 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20120814/aa5be460/attachment.asc>
More information about the arch-general
mailing list