simez

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About simez

  • Rank
    LED Head

Recent Profile Visitors

30 profile views
  1. This is to assist with the original topic of getting the LED backlight working on linux. Below is a script to switch on/off the led backlight on Fedora 20, but it should also work on some other linux distros. NB The scroll lock on this particular keyboard is permanently linked to the backlight, ie you can't have the backlight on with the scroll lock off, and vice-versa. It's built into the keyboard's hardware. To get the backlight to switch on when booting up, just copy and paste the script below into a file and save it to /etc/X11/xinit/xinitrc.d/ as any file name with a .sh extension (eg /etc/X11/xinit/xinitrc.d/keyboard_toggle_backlight.sh). Don't forget to make it executable: #!/bin/sh # Description: Starts/stops CM Devastator keyboard backlight # Place this file in /etc/X11/xinit/xinitrc.d/ (as root) # and make it executable by typing "chmod 755 <file name>" # It will run automatically at boot time FLAGS=$(xset -q | awk '/Scroll Lock:/{print($12)}') if [ "$FLAGS" == "off" ]; then echo "Switching on CoolerMaster Devastator keyboard backlight ... " xset led named "Scroll Lock" else echo "Switching off CoolerMaster Devastator keyboard backlight ... " xset -led named "Scroll Lock" fi