LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I activate the LED backlighting of a Devastator II keyboard? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-activate-the-led-backlighting-of-a-devastator-ii-keyboard-4175595794/)

boatwire 12-20-2016 12:20 PM

How do I activate the LED backlighting of a Devastator II keyboard?
 
Can anyone give this novice a Step-by-Step process that will automatically illuminate the LED backlighting of a Devastator II keyboard upon Start Up? I'm running Kali Linux. The keyboard's Instructions refer to the Scroll Lock key for toggling ON/OFF. Apparently, that's for a Windows OS as it has no effect. And, if there is a way to control the brightness of the backlight, that could be useful, as well. Thanks.

erik2282 12-20-2016 12:27 PM

https://ubuntuforums.org/showthread.php?t=2257710

https://ubuntuforums.org/showthread.php?t=2208222

http://blog.rumyhub.com/post/2015/01...ht-button.aspx


Have you googled? There are lots of hits on this topic.

boatwire 12-20-2016 12:53 PM

Thanks, erik2282. I have Googled it, just not sure I completely understand the procedure(s).

BW-userx 12-20-2016 01:02 PM

power supply. it has to have one.

the procedure of that first link looks copy paste to me.

Code:

#!/bin/bash
FLAGS=$(xset -q | awk 'NR==2' | awk '{ print $10 }')
if [ "$FLAGS" = 00000000 ]; then
        xset led on
else
        xset led off
fi

then you'd have to put a line in your .xinitrc or somewhere file that will load the shell script upon login, or in a place your kernel will run it upon boot up. Just be sure you have xset installed.

boatwire 12-20-2016 05:03 PM

Woohoo! keyboard is illuminated!! Thanks for the assistance.

boatwire 12-20-2016 05:27 PM

By chance, would it be possible to get the backlight powered up BEFORE signing in on Kali, when I power up the pc?


All times are GMT -5. The time now is 09:54 PM.