Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I need to make a script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ImageJPEG
n00b
n00b


Joined: 03 Feb 2013
Posts: 20
Location: North West Iowa

PostPosted: Sat Mar 16, 2013 5:25 am    Post subject: I need to make a script Reply with quote

I need some help to make a script that controls the backlight on my keyboard for my MacBook Pro.

/sys/devices/platform/applesmc.768/leds/smc\:\:kbd_backlight/brightness

That is where the file is located to change the brightness. I've tested it out using numbers between 0 and 255 and it works. I've never been able to get pommed to work but this does.

Would there be a way to make a script file to change the value in this file without being logged in as root? And I'd like to link it with the two key that would associate with keyboard backlighting.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat Mar 16, 2013 8:44 am    Post subject: Reply with quote

Does the Mac have any sort of ACPI? If so, that's the way to go. Check in /etc/acpi and
see what scripts are available and which keys/events are trapped. Otherwise, I don't know.

Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum