Paolo Mantegazza wrote:
> 
> Hi,
> 
> I got a few answer to my mail but none said if they verified that with
> RTL-beta5 if you press a key that lights a led up, i.e. CapsLock,
> ScrollLock and NumLock, you get a "Keyboard timeout[2]" error message
> from Linux and no
> led lights up.
> 
> So the question remains: does that happens to anybody else using beta5
> or I have patched 2.2.9 the wrong way?
> 

It also happened to me: Keyboard timeout[2], and no led change.


Paolo seems to be right... if no interrupts can received
then the solucion can be to poll the status port of the keyboard.

The next "for" loop if the one of the fuction "send_data"
within the file "drivers/char/_key.c". Adding a call to 
process the keyboard_events... and it works.

-----------------8<---------------------
        for (;;) {
                        if (acknowledge)
                                return 1;
                        if (resend)
                                break;
                        mdelay(1);
                        /* --- Begin Inserted code ---*/
                        /* If interrupts can't be received then, let's poll the  data 
*/
                        handle_kbd_event();
                        /* --- End Inserted code --*/

                        if (!--timeout) {
#ifdef KBD_REPORT_TIMEOUTS
                                printk(KERN_WARNING "Keyboard timeout[2]\n");
#endif
                                return 0;
                        }
                }
-----------------8<-------------------------

I don't know the keyboard code to ensure that this is the
correct solution... but it seems to work correctly.


Ismael Ripoll.


-- 
Ismael Ripoll: Universitat Politecnica de Valencia;46071 Valencia,Spain
Tel: +34 6 3879 577  Fax: +34 6 3877 579
mailto:[EMAIL PROTECTED] http://bernia.disca.upv.es/~iripoll
-----------------------------------------------------------------------
Hiroshima 45, Chernobyl 86, Winbugs 95. What's next?... Windogs 98 ?
In an open world without walls and fences who needs Windows and Gates? 
-----------------
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to