03-20-2011, 07:27 PM | #1 |
Addict
Posts: 225
Karma: 72
Join Date: Jan 2010
Device: irex DR-800S, M92S
|
is there a quick way to turn on the led ?
I mean is there a command or an app to use in a shell script to turn on the led..
and even chose the color .. I intend to use it as confirmation in some scripts.. |
03-21-2011, 03:32 AM | #2 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
I have not seen any tool to do that around here. The leds are controlled by the 'keyboard processor', that is connected to the main processor (see sysd/src/system.c). From the code in that file, you could try to figure out which device driver to open and which commands to send. (If the device allows to have two active clients.)
An alternative would be to change sysd and add an extra ipc-call to control the leds. A simple program could then use this ipc-call, which can then be used from a script. For me it is not clear if you have (or want to have) a development environment of your own or if you want help from someone else? Marcel. |
03-21-2011, 05:50 PM | #3 | |
Addict
Posts: 225
Karma: 72
Join Date: Jan 2010
Device: irex DR-800S, M92S
|
Quote:
when you execute from the desktop you don't see the output.. so some led blinking would be usefull |
|
03-22-2011, 03:50 AM | #4 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Thanks for sharing the context.
You could have a look at lua, a scripting language that has been ported by Iņigo. He also posted some examples. (Carefully read the installation instructions.) You can also have a look at zenity, that is part of the base-package of Iņigo. It allows to show dialogs from a shell-script. I use it for the installation of MackxPatch, so see _apply.sh. |
03-23-2011, 06:50 PM | #5 | |
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Opus Flashing LED | Jorick | Bookeen | 3 | 11-19-2010 07:54 AM |
DR1000 Can we turn off the top led? | bokjeid | iRex | 0 | 10-20-2010 09:44 AM |
LED Light for Kobo | clintbradford | Kobo Reader | 0 | 07-09-2010 11:26 PM |
LED und Stromverbrauch | Pacesetter | PocketBook | 10 | 06-06-2010 09:00 AM |
Clip-on LED booklight | nekokami | iRex | 4 | 10-29-2007 12:39 PM |