View previous topic :: View next topic |
Author |
Message |
ImageJPEG n00b
Joined: 03 Feb 2013 Posts: 20 Location: North West Iowa
|
Posted: Sat Mar 16, 2013 5:25 am Post subject: I need to make a script |
|
|
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 |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Sat Mar 16, 2013 8:44 am Post subject: |
|
|
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 |
|
|
|