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=video LCD 00000086 00000000
action=/etc/acpi/brightup.sh
/etc/acpi/events/sony-brightness-down
Code:
event=video LCD 00000087 00000000
action=/etc/acpi/brightdown.sh
/etc/acpi/brightdown.sh
Code:
#!/bin/bash
curr=`cat /sys/class/backlight/acpi_video0/actual_brightness`
if [ $curr -gt 7 ]; then
curr=$((curr-8));
echo $curr > /sys/class/backlight/acpi_video0/brightness;
fi
/etc/acpi/brightup.sh
Code:
#!/bin/bash
curr=`cat /sys/class/backlight/acpi_video0/actual_brightness`
if [ $curr -lt 93 ]; then
curr=$((curr+8));
echo $curr > /sys/class/backlight/acpi_video0/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