You are not logged in.

#1 2014-02-18 18:40:55

khuba
Member
Registered: 2014-02-18
Posts: 3

Turning LED indicator on ThinkPad E130 on/off

I would like to use LED indicator near webcam for low battery alert. (When battery is low, I want LED to blink.) But I don't know, how to control this LED - how to turn it on/off. Is it possible via /sys/devices... (I didn't found right file...) or via some specific command (uvcdynctrl? If yes, how?). Thank You!

Offline

#2 2014-02-19 03:28:55

aragats
Member
From: Broomfield, CO
Registered: 2009-05-26
Posts: 30

Re: Turning LED indicator on ThinkPad E130 on/off

I'm not sure whether that LED is controllable from the user space. Moreover, with the recent kernels even LEDs, which could be controlled before are not anymore...
However, as the easiest solution for you I would suggest a (not so neat) solution:

mplayer tv:// -vo null

Also you may want to find another program which accesses the webcam.

Last edited by aragats (2014-02-19 03:29:48)

Offline

#3 2014-02-19 03:47:17

aragats
Member
From: Broomfield, CO
Registered: 2009-05-26
Posts: 30

Re: Turning LED indicator on ThinkPad E130 on/off

Here is another, cleaner solution:

fswebcam --save /dev/null --loop 1 --background

Offline

#4 2014-02-19 04:35:06

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Turning LED indicator on ThinkPad E130 on/off

I think that the OP is referring to the red light over the 'i' in Thinkpad rather than the webcam LED indicator light.

Offline

#5 2014-02-19 11:18:57

khuba
Member
Registered: 2014-02-18
Posts: 3

Re: Turning LED indicator on ThinkPad E130 on/off

aragats: Thank You very much. It's very good idea with fswebcam and /dev/null. I think I'll try it.
WonderWoofy: What does acronym OP mean?

Offline

#6 2014-02-19 16:43:29

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Turning LED indicator on ThinkPad E130 on/off

Original Poster

Offline

#7 2014-02-19 23:42:25

aragats
Member
From: Broomfield, CO
Registered: 2009-05-26
Posts: 30

Re: Turning LED indicator on ThinkPad E130 on/off

WonderWoofy wrote:

I think that the OP is referring to the red light over the 'i' in Thinkpad rather than the webcam LED indicator light.

Well, in such a case, as I've reported in this thread:
https://bbs.archlinux.org/viewtopic.php?pid=1383353
the most LEDs don't work with the newest Arch kernels, at least for me...

Offline

#8 2014-02-20 00:19:29

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Turning LED indicator on ThinkPad E130 on/off

Yeah, after reading your post there, I actually gave it a whirl just to see.  Indeed, /proc/acpi/ibm/led doesn't do a damn thing.

Offline

#9 2014-02-20 20:29:42

khuba
Member
Registered: 2014-02-18
Posts: 3

Re: Turning LED indicator on ThinkPad E130 on/off

Thanks both of you!

Offline

Board footer

Powered by FluxBB