11 years, 5 months ago.

How do I send a keyboard scan code

I have a Toshiba netbook which has an odd problem with Linux. When booting, it will frequently hang, and will continue when a key is pressed. I suspect some sort of interrupt handling problem.

I normally deal with it by tapping the Control key when the disk light stops blinking.

My proposed solution is to use my KL25Z to send the Control Key's scan codes every few milliseconds. I need a keypress to register, but do not want to send any usable characters that could be misinterpreted. I would need to send the down and up codes to be consistent.

The functions in USBKeyboard.h don't appear to support this. How can I do it?

Thanks

1 Answer

11 years, 5 months ago.

For a workaround I've decided to send Ctrl-q, which is flow-control continue.