Ok, lets make the following changes and see what happens.
Create the following files with the following content (you will need root privileges to do this, so for each file, run "gksu gedit <file>" where <file> is: )
/etc/acpi/events/sony-brightness-up
Code:
event=sony/hotkey SNC 00000001 00000011
action=/etc/acpi/brightup.sh
/etc/acpi/events/sony-brightness-down
Code:
event=sony/hotkey SNC 00000001 00000010
action=/etc/acpi/brightdown.sh
/etc/acpi/brightdown.sh
Code:
#!/bin/bash
curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ $curr -gt 406 ]; then
curr=$((curr-406));
echo $curr > /sys/class/backlight/intel_backlight/brightness;
fi
/etc/acpi/brightup.sh
Code:
#!/bin/bash
curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ $curr -lt 4477 ]; then
curr=$((curr+406));
echo $curr > /sys/class/backlight/intel_backlight/brightness;
fi
Then, make all 4 of those scripts executable by running the following commands:
Code:
sudo chmod +x /etc/acpi/events/sony-brightness-up
sudo chmod +x /etc/acpi/events/sony-brightness-down
sudo chmod +x /etc/acpi/brightdown.sh
sudo chmod +x /etc/acpi/brightup.sh
And finally, restart acpid:
Code:
sudo service acpid restart
Check if the function keys work now.
Bookmarks