maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   (Announce) ledpulse (Sound Reactive Leds for your n900) (https://talk.maemo.org/showthread.php?t=90572)

bill_klpd 2013-06-27 09:36

(Announce) ledpulse (Sound Reactive Leds for your n900)
 
This app can make your n900's led being sound reactive :D
You can choose the colour of the notification led and which keyboard leds to blink like the sound! You can choose from 3 sources(Monitor/Bluetooth/Microphone)!

Here is a small video of it in action!

Credits goes to nicolai and you can find the program on extras-devel
(http://maemo.org/packages/view/ledpulse/)

bill_klpd 2013-06-28 20:42

Re: Nokia N900 Sound Reactive Led
 
No one is interested about this??

handaxe 2013-06-28 22:38

Re: Nokia N900 Sound Reactive Led
 
Quote:

Originally Posted by bill_klpd (Post 1355437)
No one is interested about this??

Not personally. You need someone to hack VU Meter and add led output. It does what you want but just in graph form.

bill_klpd 2013-06-29 07:33

Re: Nokia N900 Sound Reactive Led
 
Quote:

Originally Posted by handaxe (Post 1355450)
Not personally.

Hahaha not actually the answer that I was waiting :P

XiliX 2013-06-29 07:39

Re: Nokia N900 Sound Reactive Led
 
Afaik the led on the N900 is controlled by MCE, which settings can only be applyd by restarting MCE itself. This takes some time and can only be done a couple of times every 5 minutes or so. Apart from that, a faulty mce.ini file, where these setting are, can seriously mess up your N900 usability ( read; brick your device)
So in my opinion you'll have to create a new system or program to control the led, and i doubt that is possible... :(

nicolai 2013-06-29 08:49

Re: Nokia N900 Sound Reactive Led
 
1 Attachment(s)
quick n dirty python script.
(definitely a battery killer)
run as root.

bill_klpd 2013-06-29 12:56

Re: Nokia N900 Sound Reactive Led
 
Quote:

Originally Posted by nicolai (Post 1355503)
quick n dirty python script.
(definitely a battery killer)
run as root.

Thanks for your time! Is there any chance to make it work with the keyboard leds as well?? Do I need to change this:
led_r = open('/sys/class/leds/lp5523:r/brightness','w',1)
to this:
led_r = open('/sys/class/leds/lp5523:kb1/brightness','w',1)
for example?

One more think I want to say is that it captures the sound of the mic as well... What I mean is that when I talk for example it lights up? Is there any way to remove that?
Why do you think that it is a battery killer? How much energy could a led need? Thanks again :D

Estel 2013-06-29 14:24

Re: Nokia N900 Sound Reactive Led
 
Quote:

Originally Posted by bill_klpd (Post 1355560)
One more think I want to say is that it captures the sound of the mic as well... What I mean is that when I talk for example it lights up? Is there any way to remove that?

Erm, isn't that what you wanted from very beginning?

As for battery, it's not only about LED's - it's about constantly probing sound input, waking CPU, etc. You're, probably, going to have ~10x worse standby battery life, if using it all the time.

/Estel

bill_klpd 2013-06-29 14:42

Re: Nokia N900 Sound Reactive Led
 
Well I wanted to caprtures only the sound of the music that was playing from the player, not the sounds from the mic...
For the battery I understant what you are saying but I won't probably use it all the time :)

javispedro 2013-06-29 14:52

Re: Nokia N900 Sound Reactive Led
 
Replace
Code:

pulsesrc
with
Code:

pulsesrc device=sink.hw0.monitor
to capture speaker output.

Also see my own Ironcope (source) to show how a similar thing can be done in C. If done properly (e.g. recognizing when there is nothing to capture) it does not kill battery that much.


All times are GMT. The time now is 11:43.

vBulletin® Version 3.8.8