PS/2 emulation on Dell Optiplex 760
Posted: Sun Oct 01, 2017 9:49 am
I'm currently in the process of testing my PS/2 keyboard drivers on real hardware, and i'm running into some weird behaviour on a Dell Optiplex 760. I'm observing the following behaviours:
Keyboard is advertised with 0x00 as it's identification string, the same as any mouse i plug in to the system.
When forcing my keyboard driver to take ownership of the device on port 1 irregardless of the identification string, the driver does receive events in response to key presses on the attached keyboard, however the received key codes are not what I expected them to be, and furthermore seem to somewhat random, in the sense that the same key doesn't always give the same keycode, even for simple keys like letters or numbers.
Has anyone seen such behaviour before? Is it more likely that my code is doing something weird that just happens to work on qemu, bochs and virtualbox and my laptop, but breaks on this particular hardware, or could it be a bios/firmware issue?
And does anybody have a reasonable reference implementation in their hobby project that I could try out on this hardware?
Keyboard is advertised with 0x00 as it's identification string, the same as any mouse i plug in to the system.
When forcing my keyboard driver to take ownership of the device on port 1 irregardless of the identification string, the driver does receive events in response to key presses on the attached keyboard, however the received key codes are not what I expected them to be, and furthermore seem to somewhat random, in the sense that the same key doesn't always give the same keycode, even for simple keys like letters or numbers.
Has anyone seen such behaviour before? Is it more likely that my code is doing something weird that just happens to work on qemu, bochs and virtualbox and my laptop, but breaks on this particular hardware, or could it be a bios/firmware issue?
And does anybody have a reasonable reference implementation in their hobby project that I could try out on this hardware?