geekhack

geekhack Community => Keyboards => Topic started by: Ansich on Fri, 25 July 2014, 15:13:30

Title: Linux: cut power for LED lights on my CM STORM TK?
Post by: Ansich on Fri, 25 July 2014, 15:13:30
So my keyboard has this annoyance, that the arrow keys on the NumPad are always on by default (except if NumLock is engaged). However, if I unplug my laptop from AC and let it run on battery, then reconnect it, the lights stay off. They turn back on if I press a function button that lights something up on the keyboard (like Caps Lock).

Is there any way to control power management to the keyboard from the command shell? If that is the case I can probably write a script to automate it. I guess something could be found in /dev? But I'm pretty clueless to be honest:(
Title: Re: Linux: cut power for LED lights on my CM STORM TK?
Post by: blackbox on Fri, 25 July 2014, 15:36:46
Can you plug it in and out and run a dmesg?
Title: Re: Linux: cut power for LED lights on my CM STORM TK?
Post by: Ansich on Sat, 26 July 2014, 03:24:40
Sure, this is the relevant output:

Code: [Select]
[  193.853435] usb 1-1: new full-speed USB device number 3 using uhci_hcd
[  194.024026] input: CM Storm Quickfire TKL 6keys as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1:1.0/input/input17
[  194.024200] hid-generic 0003:2516:0011.0004: input,hidraw0: USB HID v1.10 Keyboard [CM Storm Quickfire TKL 6keys] on usb-0000:00:1a.0-1/input0
[  194.027566] input: CM Storm Quickfire TKL 6keys as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1:1.1/input/input18
[  194.027731] hid-generic 0003:2516:0011.0005: input,hidraw1: USB HID v1.10 Device [CM Storm Quickfire TKL 6keys] on usb-0000:00:1a.0-1/input1
Title: Re: Linux: cut power for LED lights on my CM STORM TK?
Post by: blackbox on Sat, 26 July 2014, 03:58:30
OK, nothing special there. Can you try xset and see what happens?

http://forums.fedoraforum.org/showthread.php?t=296728 (http://forums.fedoraforum.org/showthread.php?t=296728)
Title: Re: Linux: cut power for LED lights on my CM STORM TK?
Post by: Ansich on Sat, 26 July 2014, 04:23:48
It doesn't do anything. The xset -q gives:
Code: [Select]
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  500    repeat rate:  20
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/misc/,/usr/share/fonts/TTF/,/usr/share/fonts/OTF/,/usr/share/fonts/Type1/,built-ins
DPMS (Energy Star):
  Standby: 1200    Suspend: 1500    Off: 1800
  DPMS is Disabled

Could I somehow monitor what happens when I turn on/off the backlights of the keyboard or press Num/Caps Lock? Perhaps that might be a clue as to what exactly controls the power distibution to the keyboard?
Title: Re: Linux: cut power for LED lights on my CM STORM TK?
Post by: tp4tissue on Sat, 26 July 2014, 05:45:13
on the same computer, does it fully work off that same port, on windoz?
Title: Re: Linux: cut power for LED lights on my CM STORM TK?
Post by: Ansich on Sat, 26 July 2014, 08:56:52
It should, I don't remember it ever not working, but it is true, that I very seldomly log in to my Windows OS. I will try that in the evening and report back if there are any issues.