OS X: CM Storm Devastator keyboard doesn’t light up

keyboard

Using OS X Mavericks, the CM Storm Devastator keyboard backlight does not light up. The light is usually activated by scroll lock being enabled, but in OS X, there is no such thing as scroll lock.

Best Answer

I have created a fork of the apple LED test script specifically to turn on and off the LED Backlight on cmstorm keyboards. This should also work for anyone who needs to turn on scroll lock on their external keyboards (which is the backlight key for most keyboards).

To use it:

  1. Download the binary and install it in your Applications folder

    wget https://github.com/pykler/led-backlight-osx/blob/master/led-backlight-osx?raw=true -O led-backlight-osx
    chmod +x led-backlight-osx
    mv led-backlight-osx /Applications
    
  2. Then you can either

  3. run it on the terminal like so

       /Applications/led-backlight-osx # turns the backlight on
       /Applications/led-backlight-osx off # turns the backlight off
    
  4. OR use an automator script as described in the following answer. Replace the automator script in step 11 with the following.

     ```/Applications/led-backlight-osx```
    
    • to create a script to turn it off create another automator script with the following

      /Applications/led-backlight-osx off

    • The details for the automator script are in the edit below.

EDIT: to add this as a keyboard shortcut you must use Automator as in @AlexanderTaylor's answer, in summary:

  1. Launch "Automator" from either Launchpad or Finder/Applications

  2. Choose "Service" type (For Catalina, first choose "Quick Actions" on "New")

  3. (On the left) "Library" -> "Utilities", drag "Run Shell Script" to the workflow pane.

  4. At the top of the workflow pan, choose "no input" in "any application"

  5. For "pass input" choose "as arguments"

  6. For "shell" choose "/bin/sh"

  7. Paste in this script:

     /Applications/led-backlight-osx
    
  8. Click "File" -> "Save", save it as "CMStormLedOn"

  9. Go to System Preferences -> Keyboard -> Shortcuts -> Services -> CMStormLedOn and click on the shortcut +ScrLk. (it will show up as ⌘+F14)

Done. Now typing +ScrLk should turn those LEDs on.