summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_quirks.c
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-11-08 23:58:33 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-11-08 23:58:33 +0000
commitbb41862968a2c99dd5f360e59403c61dcf8b2aae (patch)
treef8e2b9733366632c5a14d0409dd23482c4bee693 /sys/dev/usb/usb_quirks.c
parent78a036a798eb2c4914b53fdd9c1e406acfbc669c (diff)
downloadFreeBSD-src-bb41862968a2c99dd5f360e59403c61dcf8b2aae.zip
FreeBSD-src-bb41862968a2c99dd5f360e59403c61dcf8b2aae.tar.gz
The Qtronix keyboard has a built in PS/2 port for a mouse.
It however posts a bogus button up event once in a while. Whenever we receive dx=dy=dz=buttons=0 we postpone adding it to the queue for 50msecs with a timeout. If in the meantime something else is posted the event is ignored. This avoids the problem Nik Sayer reported. He noticed that X windows would drop and pick up a window once in a while. Thanks, Nik, for supplying me with the keyboard to fix the problem!
Diffstat (limited to 'sys/dev/usb/usb_quirks.c')
-rw-r--r--sys/dev/usb/usb_quirks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_quirks.c b/sys/dev/usb/usb_quirks.c
index 685d700..f1a7166 100644
--- a/sys/dev/usb/usb_quirks.c
+++ b/sys/dev/usb/usb_quirks.c
@@ -64,6 +64,7 @@ struct usbd_quirk_entry {
{ USB_VENDOR_PERACOM, USB_PRODUCT_PERACOM_SERIAL1, 0x101, { UQ_NO_STRINGS }},
{ USB_VENDOR_JAZZ, USB_PRODUCT_JAZZ_J6502, 0x0a2, { UQ_BAD_ADC }},
{ USB_VENDOR_LOGITECH, USB_PRODUCT_LOGITECH_USBPS2,0x110, { UQ_MS_REVZ }},
+ { USB_VENDOR_QTRONIX, USB_PRODUCT_QTRONIX_KEYB_PS2,0x110, { UQ_SPUR_BUT_UP }},
{ 0, 0, 0, { 0 } }
};
OpenPOWER on IntegriCloud