Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2022 06:59:15 +0000
From:      Ivan Quitschal <tezeka@hotmail.com>
To:        Vladimir Kondratyev <vladimir@kondratyev.su>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   RES: iichid/hms keyboard/mouse wrongly reattached to uhid/ums
Message-ID:  <CP6P284MB1900D897C491325B077261A4CBB89@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM>
In-Reply-To: <CP6P284MB1900CC44A149706DDC43CADDCBB99@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM>
References:  <CP6P284MB1900818F505F78F68EC4C6BECBB99@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM> <8674be8f-b4fb-008d-9318-2184285b46a8@kondratyev.su> <CP6P284MB1900CC44A149706DDC43CADDCBB99@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 27 Jun 2022, Vladimir Kondratyev wrote:
>
> It seems that usbhid's bus probe priority must be increased from=20
> 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=20
> 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.=20
Problem is fixed , nothing about that, but after the keyboard is detached a=
nd reattached , I=20
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CP6P284MB1900D897C491325B077261A4CBB89>