Ubuntu: acpi not running action


I have a scripts to control display brightness:


#!/bin/sh  bl_device=/sys/class/backlight/intel_backlight/brightness  echo $(($(/usr/bin/cat $bl_device)-10)) | sudo /usr/bin/tee $bl_device  

Running it as ./bl_down.sh works as expected.

So I tried to bind it to my keyboard like so:


event=video/brightnessdown BRTDN 00000087 00000000 K  action=/etc/acpi/actions/bl_down.sh  

However, this doesn't do anything except print the following in journalctl:

 May 20 13:53:51 mowgli root[32154]: ACPI group/action undefined: video/brightnessdown / BRTDN  

Any ideas?

Volume UP and DOWN outputs:

ACPI group/action undefined: button/volumedown / VOLDN

However, it works just fine.


update your file /etc/acpi/events/bl_down and quote the definition

event="video/brightnessdown BRTDN 00000087 00000000 K "  

shell variables assignments to a string must have the entire string quoted

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »