Page 1 of 1

Keyboard driver...

Posted: Wed Nov 30, 2011 7:36 pm
by davispuh
I think I need some fresh documentation about modern keyboard controller...

I'm trying to change keyboard LEDs, but with usual method (writing 0edh to 60h) it works only in VMware, but nothing else...

suggestions ?


thanks :)

Re: Keyboard driver...

Posted: Wed Nov 30, 2011 9:09 pm
by Yargh
Maybe other VM's don't actually simulate the keyboard LEDs?
Have you tried running it on actual hardware? Last time I checked (a while ago) what you're doing is correct.

Re: Keyboard driver...

Posted: Wed Nov 30, 2011 11:12 pm
by gerryg400
Do all USB keyboards still support changing the LEDs this way?

Re: Keyboard driver...

Posted: Fri Dec 02, 2011 12:43 am
by Tosi
Depending on your system and the emulator, the actual keyboard LEDs won't be changed.
For example, at the bottom of the GUI on Bochs, there are initially greyed out "NUM", "CAPS", and "SCRL". Setting the LEDs on the keyboard should change these, not the actual LEDs on your own keyboard. This is with the Win32 GUI for Bochs, I don't have a linux box with X installed since I only use it for development and number-crunching, so I don't know if the X GUI is the same. It is probably similar. I am not sure about the interface with other emulators. QEMU running under windows with the SDL interface doesn't have any indicators onscreen, and I don't have code in my OS for setting the keyboard LEDs right now so I'm not testing it.