[Voyage-linux] ALIX LED Control
John Jelercic
(spam-protected)
Fri Feb 29 08:21:57 HKT 2008
I'm sort of a linux noob, so bare with me. I see the .deb file below, but
isn't that basically a new image? How can I integrate this into an existing
installation?
Nice work by the way!
-----Original Message-----
From: voyage-linux-bounces+johnrj=charter.net at list.voyage.hk
[mailto:voyage-linux-bounces+johnrj=charter.net at list.voyage.hk] On Behalf Of
Robert Rawlins - Think Blue
Sent: Wednesday, February 27, 2008 7:00 AM
To: voyage-linux at voyage.hk
Subject: RE: [Voyage-linux] ALIX LED Control
This is very cool, I can't wait to play around with it properly. I'll
install the new image this afternoon and see how it goes, it's going to be
fun.
After that I'll figure out how to call it from Python and JAVA :-D
Robert
-----Original Message-----
From: Kim-man 'Punky' Tse [mailto:punkytse at punknix.com]
Sent: 27 February 2008 12:53
To: Robert Rawlins - Think Blue
Cc: voyage-linux at voyage.hk
Subject: Re: [Voyage-linux] ALIX LED Control
Hi Robert,
So cool! It's now Now available in
http://www.voyage.hk/dists/experimental/linux/linux-image-2.6.23-486-voyage_
4.0-3_i386.deb
And in tomorrow daily snapshot.
modprobe led-class
modprobe leds-alix
To turn on:
voyage:~# echo 1 > /sys/class/leds/alix\:1/brightness
voyage:~# echo 1 > /sys/class/leds/alix\:2/brightness
voyage:~# echo 1 > /sys/class/leds/alix\:3/brightness
To turn off:
voyage:~# echo 0 > /sys/class/leds/alix\:1/brightness
voyage:~# echo 0 > /sys/class/leds/alix\:2/brightness
voyage:~# echo 0 > /sys/class/leds/alix\:3/brightness
Cheers,
Punky
Robert Rawlins - Think Blue wrote:
> Hi Punky,
>
> That is a coincidence :-D This looks like a very simple little API, by the
> looks of things you simple pass in a Boolean true/false to the set methods
> and it'll enable to disable the LED.
>
> I'm not a C man so don't really know just yet, I'll probably create a SWIG
> document once I've got it figured out which will create bindings for
> different languages.
>
> If you find out how to use it before I do then let me know :-D
>
> Cheers,
>
> Robert
>
> -----Original Message-----
> From: Kim-man 'Punky' Tse [mailto:punkytse at punknix.com]
> Sent: 27 February 2008 12:17
> To: Robert Rawlins - Think Blue
> Cc: voyage-linux at voyage.hk
> Subject: Re: [Voyage-linux] ALIX LED Control
>
> Hi Robert,
>
> What a coincidence. I have just get the LED kernel code from openwrt.
> But not yet figure out how to use it.
>
>
https://svn.openwrt.org/openwrt/trunk/target/linux/generic-2.6/files/drivers
> /leds/leds-alix.c
>
> Regards,
> Punky
>
> Robert Rawlins - Think Blue wrote:
>
>> Hello Guys,
>>
>> Does anyone have any scripts available which allow us to control the 3
>> LED's which are on an ALIX system? It would be pretty cool if it's
>> possible.
>>
>> Cheers,
>>
>> Robert
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Voyage-linux mailing list
>> Voyage-linux at list.voyage.hk
>> http://list.voyage.hk/mailman/listinfo/voyage-linux
>>
>>
>
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>
_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
More information about the Voyage-linux
mailing list