Date: Mon, 27 Jun 2022 15:19:28 +0000 From: Ivan Quitschal <tezeka@hotmail.com> To: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>, "wulf@freebsd.org" <wulf@freebsd.org> Subject: iichid/hms keyboard/mouse wrongly reattached to uhid/ums Message-ID: <CP6P284MB1900818F505F78F68EC4C6BECBB99@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM>
next in thread | raw e-mail | index | archive | help
--_000_CP6P284MB1900818F505F78F68EC4C6BECBB99CP6P284MB1900BRAP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 a= ll hw.usb.usbhid.enable=3D"1" Im also using Wulf's moused https://github.com/wulf7/moused so far so good. Problem is: when I switch to windows , everything is detached correctly (hms, hkbd etc)= , but when I switch back, sometimes the keyboard and mouse are wrongly attached to "ums" device , not hms. (som= etimes it goes to the correct one). Shouldn't ums/uhid modules be deactivated once hw.usb.usbhid.enable is set = to 1 ? The workaround I did here was to manually kldunload both uhid.ko and ums.ko= within rc.local during boot. This way I can detache attach the kbd/mouse back as much as I want and it a= lways end up in hms/hkbd devices Is this how its supposed to function? Randomly choosing between ums or hms? Thanks --tzk --_000_CP6P284MB1900818F505F78F68EC4C6BECBB99CP6P284MB1900BRAP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"= > <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-fareast-language:EN-US;} a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline;} span.EstiloDeEmail17 {mso-style-type:personal-compose; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri",sans-serif; mso-fareast-language:EN-US;} @page WordSection1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"PT-BR" link=3D"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:= break-word"> <div class=3D"WordSection1"> <p class=3D"MsoNormal">Hi all<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">Not sure if I found a problem h= ere but here we go.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">Since I have a KVM usb switch h= ere for keyboard/mouse sometimes I toggle it between my windows and freebsd= .<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">I am using iichid here to have = my multimedia keys working on keyboard and all<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">hw.usb.usbhid.enable=3D"1&= quot;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">Im also using Wulf’s mous= ed <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><a href=3D"https://github.com/w= ulf7/moused">https://github.com/wulf7/moused</a><o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">so far so good. Problem is:<o:p= ></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">when I switch to windows , ever= ything is detached correctly (hms, hkbd etc), but when I switch back, somet= imes <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">the keyboard and mouse are wron= gly attached to “ums” device , not hms. (sometimes it goes to t= he correct one).<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">Shouldn’t ums/uhid module= s be deactivated once hw.usb.usbhid.enable is set to 1 ?<o:p></o:p></span><= /p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">The workaround I did here was t= o manually kldunload both uhid.ko and ums.ko within rc.local during boot.<o= :p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">This way I can detache attach t= he kbd/mouse back as much as I want and it always end up in hms/hkbd device= s<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">Is this how its supposed to fun= ction? Randomly choosing between ums or hms? <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">Thanks<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">--tzk<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> </div> </body> </html> --_000_CP6P284MB1900818F505F78F68EC4C6BECBB99CP6P284MB1900BRAP_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CP6P284MB1900818F505F78F68EC4C6BECBB99>