Author Topic: Linux: cut power for LED lights on my CM STORM TK?  (Read 1515 times)

0 Members and 1 Guest are viewing this topic.

Offline Ansich

  • Thread Starter
  • Posts: 14
Linux: cut power for LED lights on my CM STORM TK?
« 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:(

Offline blackbox

  • Posts: 725
Re: Linux: cut power for LED lights on my CM STORM TK?
« Reply #1 on: Fri, 25 July 2014, 15:36:46 »
Can you plug it in and out and run a dmesg?
Keyboards: Dell AT102W (matias standard clicky), Maltron two-hand 3D fully ergonomic keyboard (Vintage MX Black). CM QF XT (MX Grey) IBM model M

The LAN table!
http://geekhack.org/index.php?topic=62536.0

Offline Ansich

  • Thread Starter
  • Posts: 14
Re: Linux: cut power for LED lights on my CM STORM TK?
« Reply #2 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

Offline blackbox

  • Posts: 725
Re: Linux: cut power for LED lights on my CM STORM TK?
« Reply #3 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
Keyboards: Dell AT102W (matias standard clicky), Maltron two-hand 3D fully ergonomic keyboard (Vintage MX Black). CM QF XT (MX Grey) IBM model M

The LAN table!
http://geekhack.org/index.php?topic=62536.0

Offline Ansich

  • Thread Starter
  • Posts: 14
Re: Linux: cut power for LED lights on my CM STORM TK?
« Reply #4 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?
« Last Edit: Sat, 26 July 2014, 04:38:27 by Ansich »

Offline tp4tissue

  • * Destiny Supporter
  • Posts: 13724
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: Linux: cut power for LED lights on my CM STORM TK?
« Reply #5 on: Sat, 26 July 2014, 05:45:13 »
on the same computer, does it fully work off that same port, on windoz?

Offline Ansich

  • Thread Starter
  • Posts: 14
Re: Linux: cut power for LED lights on my CM STORM TK?
« Reply #6 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.