linux - ACPI event not triggering associated action -


i've been trying time enable computer's fn+f9/f10 brightness control. reading this thread, tried set acpi event/action script manually change brightness. scripts work - can manually call bl_down.sh , bl_up.sh in terminal.

however, reason acpi events aren't triggering scripts. i've included output of acpi_listen below, scripts:

~$ acpi_listen  video/brightnessdown brtdn 00000087 00000000 # fn+f9 video/brightnessup brtup 00000086 00000000   # fn+f10 

bl_down.sh

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

bl_up.sh

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

so know acpi enabled, , scripts work. it's event reason isn't triggering action. pointers in right direction appreciated!

edit: forgot include actual acpi events:

bl_down

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

bl_up

event=video/brightnessup brtup 00000086 00000000 action=/etc/acpi/actions/bl_up.sh 

you use xbacklight instead. manages brightness using randr extension of x11. bind hotkeys to:

xbacklight -inc 100

and

xbacklight -dec 100

you can replace '100' whatever increment works you. i've found easiest solution me, personally.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -