RES: iichid/hms keyboard/mouse wrongly reattached to uhid/ums

From: Ivan Quitschal <tezeka_at_hotmail.com>
Date: Tue, 28 Jun 2022 06:59:15 UTC

On Mon, 27 Jun 2022, Vladimir Kondratyev wrote:
>
> It seems that usbhid's bus probe priority must be increased from 
> BUS_PROBE_GENERIC + 1 to BUS_PROBE_DEFAULT + 1
>
> Test this patch:
>
> diff --git a/sys/dev/usb/input/usbhid.c b/sys/dev/usb/input/usbhid.c 
> index fe53f11b8f4..174e1c28ae9 100644
> --- a/sys/dev/usb/input/usbhid.c
> +++ b/sys/dev/usb/input/usbhid.c
> @@ -802,7 +802,7 @@ usbhid_probe(device_t dev)
>  	if (hid_test_quirk(&sc->sc_hw, HQ_HID_IGNORE))
>  		return (ENXIO);
>
> -	return (BUS_PROBE_GENERIC + 1);
> +	return (BUS_PROBE_DEFAULT + 1);
>  }
>
>  static int
>
>
>
> --
> WBR
> Vladimir Kondratyev
>

Hi Vladimir / All,

Just a question in case you guys know how. 
Problem is fixed , nothing about that, but after the keyboard is detached and reattached , I 
always have to do another "kbdcontrol -r fast" myself for it to get back to the speed I use.
I've tried to call this command from within devd.conf alongside moused, but no success.
Any ideas ?

Thanks again for fixing the attach priority

Thanks

--tzk