[arch-general] Systemd screen brightness
Zhengyu Xu
xzy3186 at gmail.com
Tue Aug 14 21:34:48 EDT 2012
You can run systemctl start acpid.service. Change start to enable if you
want to run it on boot.
Regards,
Z
On Tue, 2012-08-14 at 21:30 -0400, Michael Nawrocki wrote:
> 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
>
More information about the arch-general
mailing list