Contribute
Register

How To Turn On Keyboard Backlit Through Scroll Lock Led On macOS

Status
Not open for further replies.
Joined
Feb 5, 2014
Messages
12
Motherboard
Gigabyte GA-H61M-DS2H
CPU
i5-3330
Graphics
RX 480
Was using my CoolerMaster Devastator II keyboard with backlit off until found this solution, called "SetLEDs for Mac OS X", developed by Damien Guard.

Here are the steps you should take to have scroll led on for all users when they make login:
  1. Download the latest version binary on https://github.com/damieng/setledsmac/releases/ and extract it.
    The name of the file to be downloaded should be like "setleds-vX.X-binary.zip", where X.X is the file version.
  2. Open Finder and create the /Library/Keyboard Backlit/ directory and copy the binary "setleds" to it.
  3. Download the zip file at the end of this post and extract it.
  4. Copy KeyboardBacklit.sh to /Library/Keyboard Backlit/.
  5. Copy com.keyboardbacklit.init.plist to /Library/LaunchAgents/.
  6. Open the terminal and run:
    sudo chown root /Library/LaunchAgents/com.keyboardbacklit.init.plist
    sudo chmod -R 755 /Library/Keyboard\ Backlit/
    sudo launchctl load -w /Library/LaunchAgents/com.keyboardbacklit.init.plist
  7. Your backlit is finally working! The backlit will light up after every login
Comments
  • Did not find compatibility information, but believe it should work on any version of Mac or at least 10.10 and forward.
    Was tested on macOS Sierra 10.12.6 with this steps.
    Still working on macOS Mojave 10.14.
  • The backlit survives between sleep and wake! It turns off in sleep and turns on when wake. Don't worry about this.
  • "SetLEDs for Mac OS X" can turn on not only Scroll Lock, but also Num Lock and Caps Lock. For this just replace +scroll for +num or +caps on third line of KeyboardBacklit.sh, included in the file attached at the end of this post.
Thanks to Damien Guard for developing this amazing solution!

Before

328997

After
328998

CoolerMaster Devastator II keyboard with backlit on in macOS Sierra 10.12.6
328999

SetLEDs for Mac OS X output on terminal
329000
 

Attachments

  • Keyboard Backlit Files.zip
    2.7 KB · Views: 969
Last edited:
Joined
Jan 1, 2020
Messages
1
Hi, and thanks for solving this problem. Sorry to bother you - I am not very good with terminal. I have carefully followed all your steps but when I run your command I get this error:

chown: /Library/LaunchAgents/com.keyboardbacklit.init.plist: No such file or directory

The plist file is in /library/LaunchAgents. Any idea what I can do? iMac 2013 on 10.14.6

Thanks!
 
Joined
Feb 5, 2014
Messages
12
Motherboard
Gigabyte GA-H61M-DS2H
CPU
i5-3330
Graphics
RX 480
Hi asmundf,

1) Firstly, open terminal and run:

Code:
ls -l /Library/LaunchAgents/

Question 1: Can you see "com.keyboardbacklit.init.plist" file on the list?

2) Then run another line and put the password from current user:

Code:
sudo su

Question 2: Did you logged succesfully?

Close terminal.
 
Joined
Jun 19, 2013
Messages
2
Motherboard
ACPI x64-based PC
CPU
Intel Core i7 4.01 GHz 6700K
Graphics
Intel HD Graphics 530
Thank You! It works With my iMice AK-600 with ASUS Z-170-P i7 6700K High Sierra
 
Joined
Feb 15, 2020
Messages
1
Motherboard
I didn't read
CPU
the RULES
Graphics
so ignore me
Mac
  1. MacBook Pro
Classic Mac
  1. Power Mac
Mobile Phone
  1. Android
Hi I followed all steps but now the when I plug the keyboard it lights up for 2 seconds and then lights are turned off again..
not sure if there's anything I've done wrong...
 
Joined
Jul 11, 2020
Messages
1
Motherboard
thanhvy454
CPU
intel
Graphics
intel
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
i had followed all the steps and it said the services has been loaded at the end. However, nothing seems to happen and the scroll lock is still no working.
 
Status
Not open for further replies.
Top