Ubuntu: acpi not running action



Question:

I have a scripts to control display brightness:

/etc/acpi/actions/bl_down.sh:

#!/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:

/etc/acpi/events/bl_down:

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.


Solution:1

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
Previous
Next Post »