Skip to contentSkip to conversation

Grub and IR remote control?

DISCUSSION Petr Tomasek 3 participants 4 messages Dec 21, 2004 – Dec 22, 2004

lore
Share & tools
lore
#0 lore raw

Hello!

I've build microchip based IR remote control receiver, that can wake my PC (it's connected via the RS232 and it utilizes the RIng line that can be used with WOR capables motherboards).

Now the receiver knows by wich IR code was the PC waked (it can be programmed to which codes to listen or not to), so I thought it would be nice, if grub could grab this code from the receiver (it's just simple sending a command to the RS232 and reading the response) and choose what to start accordingly.

Now my question: could someone point me, where could start trying hacking? Should I use grub2, or grub1? Is there some framework already, that I could reuse?

Thank's a lot!

Petr Tomasek

P.S. I haven't published the schematics and firmware for the receiver yet, but I hope to do that in the future.

Signature · 1 line
Petr Tomasek, http://www.etf.cuni.cz/~tomasek/
#1 lore raw
Quoted 20 lines

Hello!

I've build microchip based IR remote control receiver, that can wake my PC (it's connected via the RS232 and it utilizes the RIng line that can be used with WOR capables motherboards).

Now the receiver knows by wich IR code was the PC waked (it can be programmed to which codes to listen or not to), so I thought it would be nice, if grub could grab this code from the receiver (it's just simple sending a command to the RS232 and reading the response) and choose what to start accordingly.

Now my question: could someone point me, where could start trying hacking? Should I use grub2, or grub1? Is there some framework already, that I could reuse?

Quoted 10 lines

Thank's a lot!

Petr Tomasek

P.S. I haven't published the schematics and firmware for the receiver yet, but I hope to do that in the future.

Signature · 1 line
Petr Tomasek, http://www.etf.cuni.cz/~tomasek/

Grub 2 hacking should be somewhat easier. It is enough to write a module providing the command to read the port. On the other hand, grub2 is still in development, and sometimes does not work.

Grub legacy is stable, but not feature-maintained anymore, so if you want to publish your feature to grub 1, you should do it via patch on your web-pages.

P.S.: I don't know how looks grub legacy inside, I'm hacking only for 2.

Signature · 3 lines
                                 Tomas 'ebi' Ebenlendr
                                 http://get.to/ebik
                                 PF 2004.97370054139
#2 lore raw
Quoted 13 lines

Grub 2 hacking should be somewhat easier. It is enough to write a module providing the command to read the port. On the other hand, grub2 is still in development, and sometimes does not work.

Grub legacy is stable, but not feature-maintained anymore, so if you want to publish your feature to grub 1, you should do it via patch on your web-pages.

P.S.: I don't know how looks grub legacy inside, I'm hacking only for 2.

Signature · 3 lines
                                 Tomas 'ebi' Ebenlendr
                                 http://get.to/ebik
                                 PF 2004.97370054139

OK, but how long could it take until the grub2 will be included in main linux distros (and be stable of course;)?

Thanks!

Petr Tomasek

Signature · 1 line
Petr Tomasek, http://www.etf.cuni.cz/~tomasek/
#3 lore raw
Quoted 2 lines · Petr Tomasek

OK, but how long could it take until the grub2 will be included in main linux distros (and be stable of course;)?

You should ask that question to them rather than to us. We ourselves don't make distributions.

It is undoubtful, however, that it would be faster if you contribute to GRUB 2. We need more manpower.

Okuji