From nobody Mon Jun 27 15:19:28 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3FF5F86832D for ; Mon, 27 Jun 2022 15:19:38 +0000 (UTC) (envelope-from tezeka@hotmail.com) Received: from BRA01-CPZ-obe.outbound.protection.outlook.com (mail-cpzbra01olkn2072.outbound.protection.outlook.com [40.92.97.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LWrxP1H9gz4VfF; Mon, 27 Jun 2022 15:19:37 +0000 (UTC) (envelope-from tezeka@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ILTVft2OVQCOsJCvgCiz+yVJ0IIqYpo1h5Ym4JbSlcYQwCi7ULp6LrVKA0tokd4cSs+ftl/HRAhIf55WobXwNKtbEbHNVcYtRsvXZG+iVgXtuBNUL53HvJFxQJqAdYvWD/Kd/iLh7iWu8zABKymh0jJH5mEXLgZN65kjVJpBcm26NLkOcNigkwrIcmPbUQwebEpRfODu6OGyjm8ZOdIXuouf3SULnxADocnlpvHeUtjoYbQhKq17n9piSO57nSkGybySW7FKtjsvF1W6//HCCZ7o8eaJ9lmddC2EvEZFf6uIPXLqVhUcaE60f7u2otwkm/yoshqvg9baFoi+imxlqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VLDfzxv2GZs9Ne0xJAZ94AllWLfn8V25xOBdjTlBXGc=; b=FR/J4e7Ew3WpwEXZI2JGpZvjHYWOQYwG26+ag6SuhQdELYZVcdGD+jiocAxI1p4Uf5el6LefWSkJPT8xv4HnGAPKFSqxGtNA9oSf0LotLhxi8GyRFNyI8esYjlCshRLdstnFvNPIrP3DskPU0yszr2vg915COUKn5+AN4j5mUqu/6xQ1JjpteeIgEOfy5dhvZgCYsjS7EnpVB0iLUq9lYiXUn4UkhgHCwayM3X98bWQuCa8J1W1Jkdn9W2ApDQeBsJfcWaLKzgusM1m64IjgHZqJaSd5yNzjCp25QvKI+Xj1lwIEM8a3VDIGEjGqoyD7GT07zt2FYh1BOPUUfBAcFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VLDfzxv2GZs9Ne0xJAZ94AllWLfn8V25xOBdjTlBXGc=; b=qDxXJjWtelxJY7KS1TjrDDDPJjY8Wyx3pbASW0JYc9SM9s22t9dnAiVDuV/WFzD7ZhuARR7QwAByoSX/kpTxi5QJSqbx0sGBdtQpNQ0A+5AETsl6HcrdDimdHmRnsk3xMtxQFYY9bNLuy/sFeviz0k9jVc945jX2XdeowqYaoV5CuTJLlQFH5WKBBurtHNkBM3HAhoVCZfGvi0Ov2pOOL30WdneO1O7KRWguAZ7OSirDPibI8rou3D9TrKVa6lUkDrciC50jLR9OMNwXCoqLkF9Xx59ZRbxayLFDAiSXqjYR3Mcy/t96CrSX9PjMLwUu7x2pi25dxIyOjctXS3VZ8A== Received: from CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:118::12) by CP4P284MB0803.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:91::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.16; Mon, 27 Jun 2022 15:19:28 +0000 Received: from CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM ([fe80::9d3d:d0fe:1196:ff34]) by CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM ([fe80::9d3d:d0fe:1196:ff34%8]) with mapi id 15.20.5373.018; Mon, 27 Jun 2022 15:19:28 +0000 From: Ivan Quitschal To: "freebsd-current@freebsd.org" , "wulf@freebsd.org" Subject: iichid/hms keyboard/mouse wrongly reattached to uhid/ums Thread-Topic: iichid/hms keyboard/mouse wrongly reattached to uhid/ums Thread-Index: AdiKNwIPD56grc49TwS+3NUAqhONSQ== Date: Mon, 27 Jun 2022 15:19:28 +0000 Message-ID: Accept-Language: pt-BR, en-US Content-Language: pt-BR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [m9Csef/k7e6vhYlDA4PPpj+uMF75Txo167zHPxpwgVmDaKzq0+/pDpJMRC5h1HVi] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7528f534-9528-433c-d399-08da58506d81 x-ms-traffictypediagnostic: CP4P284MB0803:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PMugmpAE+W6QU42IUwHuH/2Vn+m4Iru6ue/wAXuKpjgSWxT5ClQEFPYN4D0x72f3/muOp7+Puyq8pleB/z12HTMYBixQXWUmA9YC5OXQd1Kr129HWP2+cPvNyrFt69UJoy7YrHNCDa7XXo6d0oT8tmGvFVJGwFGRDx0dwIFcnzDk7h2KyaPyMzV1AGYxK8SX3noa8uCuN1JZWjqN4XY0Hy0gsEFpf/ourK1DIoCh2f15lr429mZIHo943ZUp3R7tzhGg+x/nME1+f0ULLTOqxcUZnJ3/BslOvYLI0JD/pSmRHa4XEE+qS3IaADajrgN1JYJuNBleinvt+3jSKQesNcHjsWKGjUKhehR2ogrJmn+OZyQv6mNI+QGBxcUxmRMAVxv2xr50qni9upeDsHMYGO3eXeinZ0FnoV1WmPrRwuQIDgY8mA3iloH75Ti7ArGpfSLQVaJr54SHbqMgyNRHzrOfAcBokNVxhYzCHxFWSDHLdJeRB2UvdPm5u9WSAXfHBamKAzx+YbckYB/nZPE1NKLPg+xOWxI4p3qgAsrxjze1x8Rm+/MhWMkhG/oXZ64a5LVKq6SacX1c6WfSRhI+JWieoiCAg1s+iZB8IyEuVVJQFVfEYJW97tRkMQ5XcTh2 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Jwf+vjlSHfMgPQfdcjXObCNXPXCvjfgGJhCRFubZSY8JfIeAUrQBld2cCi+9?= =?us-ascii?Q?xYFcfNBMPaYwwvZCsQriPnnHi664cdD0cQ9D3b158GiSibj/ZJvBdnRwQ7DP?= =?us-ascii?Q?as4pOCMPBvp+eK3Gx2Q/XUnAYvrlvMwBDPSJknv/8l1dV/r/baa4sZydMo83?= =?us-ascii?Q?cvjb74Figmydws1aSvfN724si2ivvdIZR6U2IEbGh3LrvJRdDgvcHnkcOElv?= =?us-ascii?Q?2o3caLNYWLELBMGAzUQosxkBvstN84L+CU9mCAgOljiJSwhmLlUYnnQKSSJK?= =?us-ascii?Q?iFrdEMxs/N9xZbIg8x6pba1J6msvLyAx0MdcIDAsQGRLxkHQae+Bben47l1H?= =?us-ascii?Q?Oc2id6+XA7NRHg56lMaINwbdxJlGkb/8uvSjDLQQ+6WT6flkWIQwseL0/V9s?= =?us-ascii?Q?TaeCx0kgPhpH0fqvFWbP5Mw9+Kxj1y3EDuYLdiHKhv0aq4cvG29Ombz3XHuV?= =?us-ascii?Q?RN69JzYVoCSBv9upuULFTBJypYdaQwLS2r8j2Md4r4ttnQ3GEuQrO2JXN4yj?= =?us-ascii?Q?0Q0DHQy/BUyAuXHhjBVCPH4P095wYogqiXvEwdHCNfuqSDXHk8bwyiqIM2Yn?= =?us-ascii?Q?w07hCWTWu9gJSCezGEOILoU5KGGerwdUgIXi+LfWRF5eiYSzGV7k+MatC/ZZ?= =?us-ascii?Q?k11jhEAy4dtSzcYehFUKL6YgyGMBUVfv6xFePFacJHzWiJAZikAnsB24kCk4?= =?us-ascii?Q?i2iP0tABNP0OHYg1ONGIzQsRr5YzaRgO+wsv60ufkruljE8eSJcl/3+kgMfd?= =?us-ascii?Q?jo25ZpNw6JKfCzSTTHcHsRzyGRpgUoV75wzDSZHJeYPPYY5zLu2e7sp8xC1H?= =?us-ascii?Q?xZrjLG0xghfuYgtHcqeoz0MXABAK5w1uF0qlWVJdEeyyinq4p3NkhR6g8AMN?= =?us-ascii?Q?0XMG/f5O1tvsHsJRclnwOsjKM2mfkvmleqzwt2p2P+jFx3iDeSuZGpt0oCAU?= =?us-ascii?Q?5vFO70ml3I/+xi2/d7HlXYc7AlHi5AzyxugOe+UgY5lFFUKTlUDSM2UupulD?= =?us-ascii?Q?j1H2+C9aRYXAbMXy6CwamEehdW5jZ56f6imVMS1ZbZXPESNayQ/s1j/nCZez?= =?us-ascii?Q?5nX8xLUpUJPgmcxvUs9mkPEDTpx0dTOoANcwUBd+R5Jj0OdIfc6MkgId1bAO?= =?us-ascii?Q?h9q9Si2jHTCYuDKJvOc7S2+1fKAaOOaoBbfXMjFU5dTIlgnQbsykKNcO4Gju?= =?us-ascii?Q?TmQNtczUvHY5yanxVCgTMwhUku98Y579t5TyPhzo9tXaAoOZEhDsfTYHK/Fz?= =?us-ascii?Q?gmwtMumysZ+IJ58Icbg1UpsUNenuFcivGpna9pkq9EDRAlY5YpjybV+sY9u3?= =?us-ascii?Q?1WZU4KohNLSJQ2eqA7fPj0lC?= Content-Type: multipart/alternative; boundary="_000_CP6P284MB1900818F505F78F68EC4C6BECBB99CP6P284MB1900BRAP_" List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-7dc52.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 7528f534-9528-433c-d399-08da58506d81 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jun 2022 15:19:28.3886 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CP4P284MB0803 X-Rspamd-Queue-Id: 4LWrxP1H9gz4VfF X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=qDxXJjWt; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of tezeka@hotmail.com designates 40.92.97.72 as permitted sender) smtp.mailfrom=tezeka@hotmail.com X-Spamd-Result: default: False [-2.55 / 15.00]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; NEURAL_HAM_MEDIUM(-0.55)[-0.547]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(1.00)[0.997]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[hotmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[40.92.97.72:from]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_TLS_LAST(0.00)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1] X-ThisMailContainsUnwantedMimeParts: N --_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

Hi all

 

Not sure if I found a problem h= ere but here we go.

 

Since I have a KVM usb switch h= ere 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=3D"1&= quot;

 

Im also using Wulf’s mous= ed

https://github.com/wulf7/moused

so far so good. Problem is:

 

when I switch to windows , ever= ything is detached correctly (hms, hkbd etc), but when I switch back, somet= imes

the keyboard and mouse are wron= gly attached to “ums” device , not hms. (sometimes it goes to t= he correct one).

Shouldn’t ums/uhid module= s be deactivated once hw.usb.usbhid.enable is set to 1 ?<= /p>

 

The workaround I did here was t= o manually kldunload both uhid.ko and ums.ko within rc.local during boot.

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

 

Is this how its supposed to fun= ction? Randomly choosing between ums or hms?

 

Thanks

 

--tzk

 

--_000_CP6P284MB1900818F505F78F68EC4C6BECBB99CP6P284MB1900BRAP_--