[mythtv] [PATCH] Xbox LED support, new cmd to backend, and http stat improvement

Michael Greb mikegrb at yahoo.com
Wed Sep 3 00:30:05 EDT 2003


Isaac Richards said:
> On Monday 01 September 2003 04:02 pm, Michael Greb wrote:
>> Greetings,
>>
>> Attached is a patch with three main pieces.  I combined them as they are
>> related.
>>
>>   * Enhancement to the HTTP status server
>>   * New command for backend playback socket
>
> I committed these two, but..
>
>>   * Finally, support in the frontend for the Xbox LED
>
> what's with the i2c files in there?  Should that be a kernel module that
> this
> code talks to via an ioctl?
The problem is the smbus controller is similar to one in the lm-sensors
i2c stuff but suitably different that it won't work with those drivers. 
Most of the base code was taken from i2c development code in CVS for the
xbox-linux project.  I did perpend xbox to those header files to help
avoid confusion over their purpose.  It was developed in the Ed's Debian
realm but the GentooX creator is using the code in his installation
scripts to provide user feedback for what is going on.

Eventually I see the support increasing.  Things like the no free tuners
message could trigger a flashing red LED but that is for the future.  Next
step will probably be code to make it a little more usable by plugins. 
I'm thinking a function in the libmyth class that accepts the requests
from code in various places and decides the outcome.  The user could pick
that they want the LED off completely, and for it to stay that way, when
they startup mythvideo or mythdvd.  The PIC on the smbus that handles this
would make this type of stuff really easy.  It takes one byte that
describes the state of the red and green LEDs through 4 phases, ie set it
to '11110000' for solid green or '00001111' for solid red. '11000000'
makes it flash green, etc.  The code can tell the LED to flash slowly red,
quickly red, etc and the LED will continue to do so until told otherwise
by the software.

Kind of rambling on here but wanted to get some of those ideas into the
open and see what other people running myth on an xbox think.
Michael


More information about the mythtv-dev mailing list