Testing modified ps/2 bus manager

I am trying to test a change to the PS/2 bus manager (src/add-ons/kernel/bus_managers/ps2). I tried to load it instead of the packaged one, but the overlay never loads.

What I tried:

  1. Put the binary at /boot/system/non-packaged/add-ons/kernel/bus_managers/ps2/ps2 and also at ~/config/non-packaged/add-ons/kernel/bus_managers/ps2.

  2. Blacklisted the packaged module in /boot/system/settings/packages:

Package haiku {
	BlockedEntries {
		add-ons/kernel/bus_managers/ps2
	}
}
  1. Rebooted. listimage | grep bus_managers/ps2 shows nothing.

Do I need to replace the packaged binary directly?

Thanks!

Personally, when working with bus managers and anything else besides a regular driver, I just rebuild all of haiku.hpkg and install it in order to test.

I believe the /boot/system path is wrong and the ps2 file should be directly in the bus_managers folder, not an additional ps2 folder. Also, I don’t believe you need a blocklist in this situation. It is not a boot module, so ~/config/non-packaged should override it just fine. With the unneeded blocklist, if anything goes wrong with your driver, there would be no fallback for keyboard and trackpad input.

2 Likes

Yep, this was it. Thanks!

2 Likes

Did you also remove the blocklist? I am trying to track something for my notes.

Yes I removed that as well