Bug 224592 - usb: Corsair K65 Gaming Keyboard will not function on boot
Summary: usb: Corsair K65 Gaming Keyboard will not function on boot
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 11.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Hans Petter Selasky
URL:
Keywords: needs-patch
: 242531 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-26 02:46 UTC by Colin Lord
Modified: 2020-02-13 17:08 UTC (History)
2 users (show)

See Also:


Attachments
Patch to try (21.42 KB, patch)
2020-02-13 14:55 UTC, Hans Petter Selasky
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Lord 2017-12-26 02:46:58 UTC
I have a Corsair K65 keyboard which does not function without adding a USB quirk similar to that of the K70 or K60, such as bug #193279. I have resolved the problem on my system by adding this line to my loader.conf:

hw.usb.quirk.0="0x1b1c 0x1b07 0 0xffff UQ_KBD_BOOTPROTO"
Comment 1 Hans Petter Selasky freebsd_committer 2020-02-13 14:55:45 UTC
Created attachment 211615 [details]
Patch to try

cd /usr/src
cat ukbd.diff | patch
make buildkernel
make installkernel
Comment 2 commit-hook freebsd_committer 2020-02-13 16:03:18 UTC
A commit references this bug:

Author: hselasky
Date: Thu Feb 13 16:03:12 UTC 2020
New revision: 357861
URL: https://svnweb.freebsd.org/changeset/base/357861

Log:
  Improve USB gaming keyboard support.

  Add support for decoding pressed keys as a bitmap. The keys in the
  bitmap are described in the interface specific HID descriptor. Some
  keyboards even have multiple input interfaces, only using the bitmap
  method when the event array is full. That typically means when more
  than seven keys are pressed simultaneously.

  The internals of the USB keyboard driver have been slightly reworked
  to keep track of all keys in a single bitmap having 256 bits. This
  bitmap is then divided into blocks of 64-bits as an optimisation.

  Simplify automatic key repeat logic, because only the last key pressed
  can be repeated.

  PR:	224592
  PR:	233884
  Tested by:	Alex V. Petrov <alexvpetrov@gmail.com>
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Changes:
  head/sys/dev/usb/input/ukbd.c
Comment 3 Hans Petter Selasky freebsd_committer 2020-02-13 17:08:21 UTC
*** Bug 242531 has been marked as a duplicate of this bug. ***