[SOLVED...sort of] Backlit keyboard -- MacBook Air, 2012

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

[SOLVED...sort of] Backlit keyboard -- MacBook Air, 2012

Postby d-l-b on Wed Nov 14, 2012 7:19 pm

Is there a reason the backlit keyboard does not work on MATE vs Cinnamon (using the release candidate, Nadia)? With Cinnamon, there's a nice icon that pops up when I press the F5 and F6 keys to increase and decrease the brightness of the keyboard -- using MATE, there's nothing. I prefer MATE and would really like to be able use this feature. Thanks for any help.

UPDATE:
I've been trying out a bunch of distros and I'm currently using Kubuntu 12.10. I had the same issue where the F5 and F6 buttons were not mapped properly. Here's the hack-job I did to get it to work by using /etc/acpi/asus-keyboard-backlight.sh as a template.

Open up the ol' terminal and change the permissions of the "brightness" file so you don't have to be root
Code: Select all
sudo chmod 777 /sys/class/leds/smc::kbd_backlight/brightness


Then, I mapped the following script to the F5 key to reduce the brightness by a factor of 25 (max is 255)
Code: Select all
#!/bin/sh

KEYS_DIR=/sys/class/leds/smc::kbd_backlight

test -d $KEYS_DIR || exit 0

MIN=0
MAX=$(cat $KEYS_DIR/max_brightness)
VAL=$(cat $KEYS_DIR/brightness)

VAL=$((VAL-25))


if [ "$VAL" -lt $MIN ]; then
   VAL=$MIN
elif [ "$VAL" -gt $MAX ]; then
   VAL=$MAX
fi

echo $VAL > $KEYS_DIR/brightness


I then mapped the F6 key using the same script, but changing
Code: Select all
VAL=$((VAL-25))
to
Code: Select all
VAL=$((VAL+25))


Annnnnnd that seems to work! It's not the most elegant of solutions, but it works!
Last edited by d-l-b on Fri Nov 16, 2012 4:18 pm, edited 1 time in total.
d-l-b
Level 1
Level 1
 
Posts: 1
Joined: Sat Jan 21, 2012 1:25 am

Linux Mint is funded by ads and donations.
 

Re: Backlit keyboard -- MacBook Air, 2012

Postby remoulder on Thu Nov 15, 2012 8:34 pm

Discussion of Mint 14 RC issues us requested at http://blog.linuxmint.com/?p=2205
[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
User avatar
remoulder
Level 17
Level 17
 
Posts: 7667
Joined: Fri May 09, 2008 1:14 pm

Re: [SOLVED...sort of] Backlit keyboard -- MacBook Air, 2012

Postby jiii on Tue Nov 20, 2012 8:29 am

If you have Nvidia Graphics try a different driver - worked for me (MBP mid 2009)
jiii
Level 1
Level 1
 
Posts: 1
Joined: Tue Nov 20, 2012 8:25 am


Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 11 guests