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

2022-06-28 Thread Ivan Quitschal
> May be DE overrides repeat rate for you? > > Anyway, it is possible to change repeat rate through evdev interface. > Following snippet of code illustrates a way to do that: > > > #include > #include > > #include > #include > #include > #include > > void > usage(void) > { >

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

2022-06-28 Thread Vladimir Kondratyev
On 28.06.2022 09:59, Ivan Quitschal wrote: 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

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

2022-06-28 Thread Ivan Quitschal
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

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

2022-06-27 Thread Ivan Quitschal
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 ---

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

2022-06-27 Thread Vladimir Kondratyev
On 27.06.2022 18:19, Ivan Quitschal wrote: Hi all Not sure if I found a problem here but here we go. Since I have a KVM usb switch here for keyboard/mouse sometimes I toggle it between my windows and freebsd. I am using iichid here to have my multimedia keys working on keyboard and all

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

2022-06-27 Thread Michael Gmelin
On Mon, 27 Jun 2022 16:18:58 + Ivan Quitschal wrote: > > Hi, > > > >Can you dump "kldstat" at the different times? > > >I guess it may be just be that the wrong module is loaded first, so > >it grabs the device, because there are no other drivers loaded, even > >though ums is a generic

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

2022-06-27 Thread Ivan Quitschal
> Hi, > >Can you dump "kldstat" at the different times? >I guess it may be just be that the wrong module is loaded first, so it grabs >the device, because there are no other drivers loaded, even though ums is a >generic driver. >Try loading all relevant drivers in /boot/loader.conf . Then

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

2022-06-27 Thread Michael Gmelin
On Mon, 27 Jun 2022 15:19:28 + Ivan Quitschal wrote: > Hi all > > Not sure if I found a problem here but here we go. > > Since I have a KVM usb switch here for keyboard/mouse sometimes I > toggle it between my windows and freebsd. I am using iichid here to > have my multimedia keys

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

2022-06-27 Thread Warner Losh
On Mon, Jun 27, 2022 at 9:27 AM Hans Petter Selasky wrote: > On 6/27/22 17:19, Ivan Quitschal wrote: > > Hi all > > > > Not sure if I found a problem here but here we go. > > > > Since I have a KVM usb switch here for keyboard/mouse sometimes I toggle > it between my windows and freebsd. > > I

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

2022-06-27 Thread Hans Petter Selasky
On 6/27/22 17:19, Ivan Quitschal wrote: Hi all Not sure if I found a problem here but here we go. Since I have a KVM usb switch here for keyboard/mouse sometimes I toggle it between my windows and freebsd. I am using iichid here to have my multimedia keys working on keyboard and all

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

2022-06-27 Thread Ivan Quitschal
Hi all Not sure if I found a problem here but here we go. Since I have a KVM usb switch here for keyboard/mouse sometimes I toggle it between my windows and freebsd. I am using iichid here to have my multimedia keys working on keyboard and all hw.usb.usbhid.enable="1" Im also using Wulf's