Re: Systemd screen brightness

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



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
> 




[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