After playing around with the IrDispatchCommand, it seems that this could finally solve the problem of accessing Sleep through the remote using the C-code written by gaucho.
I have a NSLU but have not unslung it. I am trying to run the code supplied by gaucho on a Open Firmware version of the Maxtor Shared Storage plus. I am a novice Linux person, so here is what I am trying to achieve:
1. Using the compiled code, I get the message 'Applet not found'. I am running it using './M-alarm'. I get the same if I try to run the source code.
2. I have modified the code to replace CK_ALARM with CK_SNOOZE, but do not know how to compile it on the Maxtor. I have tried commands such as gcc, but this command is not found. (Do I compile in a certain directory?)
3. Is it possible to pass the CK_ALARM and the CK_ADD as parameters? So that the code can be used for SNOOZE or ALARM with any button?
4. Where do I get a full list of the remote key constants, i.e. CK_ADD is the plus button, but what are the constants for the rest of the buttons.
5. Would you know how extra keys could be mapped from a universal remote (if at all)?
6. Lastly, the way the Snooze button works on the R1000 is, you press the button on the unit and '10 minutes' appears. If you press the button again within 2 seconds '20 minutes' appears.
If you press the button again within 2 seconds '30 minutes' appears etc etc. My question is, you are checking for the 'add' button being pressed 3 times, and once it has you reset the counter to 0.
How would I modify the code to only reset the counter after 2 seconds and 3 presses. This will allow me to press the 'add' button continuously (after the initial 3 presses) to scroll through the different sleep times ?
(Not sure why we have to do all this as the code is available, so Roku just need to have the menu commands available to the remote! All hi-fi products you buy that have the sleep functionality, all have a sleep button on the remote, as that is the idea of it!)