NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/57845: Fix for Microsoft Sculp Ergonomic Wireless Keyboard / Mouse



>Number:         57845
>Category:       kern
>Synopsis:       Fix for Microsoft Sculp Ergonomic Wireless Keyboard / Mouse
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 13 11:20:00 +0000 2024
>Originator:     M. Boerschig
>Release:        10.0_RC2
>Organization:
>Environment:
NetBSD 10.0_RC2 (GENERIC) amd64
>Description:
The appended patch adds support for the Microsot Sculp Wireless keyboard/mouse.
It has the same problem that was fixed in kern/55161 -- I was not sure if I should append to the old PR and re-open it. So here is a new one.

The x/y coordinates of the mouse trigger scroll wheel events, the patch fixes this. Tested on a Xfce4 desktop.
>How-To-Repeat:
Make the mistake of buying a Microsoft product... again :-).
>Fix:
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c
index 8a64791d3c33..7529971282f2 100644
--- a/sys/dev/usb/ums.c
+++ b/sys/dev/usb/ums.c
@@ -181,6 +181,7 @@ ums_attach(device_t parent, device_t self, void *aux)
 			fixpos = 24;
 			break;
 		case USB_PRODUCT_MICROSOFT_24GHZ_XCVR80:
+		case USB_PRODUCT_MICROSOFT_24GHZ_XCVR90:
 			fixpos = 40;
 			woffset = sc->sc_ms.hidms_loc_z.size;
 			break;
diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
index 1b5afc33f1f9..9d2a03ae5b3b 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -2363,6 +2363,7 @@ product MICROSOFT 24GHZ_XCVR10		0x071d	2.4GHz Transceiver V1.0
 product MICROSOFT 24GHZ_XCVR20		0x071f	2.4GHz Transceiver V2.0
 product MICROSOFT 24GHZ_XCVR70		0x0745	2.4GHz Transceiver V7.0
 product MICROSOFT 24GHZ_XCVR80		0x07b2	2.4GHz Transceiver V8.0
+product MICROSOFT 24GHZ_XCVR90		0x07a5	2.4GHz Transceiver V9.0
 product MICROSOFT CM6000		0x077d	Comfort Mouse 6000



Home | Main Index | Thread Index | Old Index