Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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 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. (sometimes 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 always end up in hms/hkbd devices

Is this how its supposed to function? Randomly choosing between ums or hms?

Thanks

--tzk


[-- Attachment #2 --]
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">;
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="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="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PT-BR" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi all<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US">Not sure if I found a problem here but here we go.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Since I have a KVM usb switch here for keyboard/mouse sometimes I toggle it between my windows and freebsd.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="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="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">hw.usb.usbhid.enable=&quot;1&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Im also using Wulf&#8217;s moused <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://github.com/wulf7/moused">https://github.com/wulf7/moused</a><o:p></o:p></span></p>;
<p class="MsoNormal"><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">so far so good. Problem is:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">when I switch to windows , everything is detached correctly (hms, hkbd etc), but when I switch back, sometimes
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">the keyboard and mouse are wrongly attached to &#8220;ums&#8221; device , not hms. (sometimes it goes to the correct one).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Shouldn&#8217;t ums/uhid modules be deactivated once hw.usb.usbhid.enable is set to 1 ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The workaround I did here was to manually kldunload both uhid.ko and ums.ko within rc.local during boot.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This way I can detache attach the kbd/mouse back as much as I want and it always end up in hms/hkbd devices<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is this how its supposed to function? Randomly choosing between ums or hms?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">--tzk<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>
help

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