Skip to content

Conversation

@jackpot51
Copy link
Member

@jackpot51 jackpot51 commented Jan 23, 2026

As the PS/2 driver is used by default in Windows prior to driver install, as well as in other operating systems with no I2C HID support, it would be helpful to have it fully functional. Draft as I work through the changes.

Tested with Windows 10 installer and Redox OS.

Going through the changes:

  • Constants replace magic numbers for PS2 control registers
  • Touchpad data is buffered
  • KBC_STATE_TOUCHPAD is dropped
  • Buffer is cleared on touchpad reset command
  • kbc_on_output_empty pops from touchpad buffer only when ready to send to host
  • Move keyboard buffer check to kbc_on_output_empty
  • Reset PS2 bus after write transaction finishes
  • Wait until next cycle to attempt touchpad read

@jackpot51 jackpot51 requested review from a team January 23, 2026 16:57
@jackpot51 jackpot51 self-assigned this Jan 23, 2026
@jackpot51 jackpot51 marked this pull request as ready for review January 25, 2026 15:23
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants