05-16-2021, 07:37 PM
OK, i finally installed the ANSI kbd into my original pbp, and i had a couple of new issues i had not previously mentioned.
the first one is that some of the timeouts are not long enough for netbsd. i had to patch usb_keyboard.c to change usleep(100*1000) to usleep(500*1000). this allows 'step-1' to complete the first time. without this, re-running 'step-1' works at this point.
i still have to power cycle, not just reboot, between 'step-1' and 'step-2'. (i power cycled after the first successful 'step-2', so perhaps that is also necessary, though i do not know for sure.)
the second new issue was i had to revert a change made shortly after my original post above. usb_touchpad.c had a loop iteration reduced from 20 to 3 (and also the check afterwards). to make step-2 work reliably, i had to revert this change (i suspect 8 would work, vs 20, but i did not test that.)
the first one is that some of the timeouts are not long enough for netbsd. i had to patch usb_keyboard.c to change usleep(100*1000) to usleep(500*1000). this allows 'step-1' to complete the first time. without this, re-running 'step-1' works at this point.
i still have to power cycle, not just reboot, between 'step-1' and 'step-2'. (i power cycled after the first successful 'step-2', so perhaps that is also necessary, though i do not know for sure.)
the second new issue was i had to revert a change made shortly after my original post above. usb_touchpad.c had a loop iteration reduced from 20 to 3 (and also the check afterwards). to make step-2 work reliably, i had to revert this change (i suspect 8 would work, vs 20, but i did not test that.)