Bug 226209 - logitech G9 mouse attaches as keyboard
Summary: logitech G9 mouse attaches as keyboard
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-25 22:10 UTC by clutton
Modified: 2018-02-27 15:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description clutton 2018-02-25 22:10:36 UTC
When logitech G9 mouse attached system attaches it as system keyboard too.

dmesg:
ugen0.3: <Logitech G9 Laser Mouse> at usbus0
ukbd0 on uhub0
ukbd0: <Logitech G9 Laser Mouse, class 0/0, rev 2.00/50.00, addr 2> on usbus0
kbd1 at ukbd0
ums0 on uhub0
ums0: <Logitech G9 Laser Mouse, class 0/0, rev 2.00/50.00, addr 2> on usbus0
ums0: 16 buttons and [XYZT] coordinates ID=0
ugen0.3: <Logitech G9 Laser Mouse> at usbus0 (disconnected)
ums0: at uhub0, port 1, addr 2 (disconnected)
ums0: detached
ukbd0: at uhub0, port 1, addr 2 (disconnected)
ukbd0: detached

usbconfig -d ugen0.3 dump_device_desc
ugen0.3: <Logitech G9 Laser Mouse> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (98mA)

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0008 
  idVendor = 0x046d 
  idProduct = 0xc048 
  bcdDevice = 0x5000 
  iManufacturer = 0x0001  <Logitech>
  iProduct = 0x0002  <G9 Laser Mouse>
  iSerialNumber = 0x0003  <F2A5274D680029>
  bNumConfigurations = 0x0001 


I commented those lines /etc/devd.conf
# When a USB keyboard arrives, attach it as the console keyboard.                                                                                                         
# attach 100 {                                                                                                                                                            
# >     device-name "ukbd0";                                                                                                                                              
# >     action "/etc/rc.d/syscons setkeyboard /dev/ukbd0";                                                                                                                
# };                                                                                                                                                                      
# detach 100 {                                                                                                                                                            # >     device-name "ukbd0";                                                                                                                                              # >     action "/etc/rc.d/syscons setkeyboard /dev/kbd0";                                                                                                                 
# };

to prevent it from doing so. Everything works fine now. Before, system keyboard were non responsible till I put the mouse off, and it wouldn't work with X.
Comment 1 Hans Petter Selasky freebsd_committer 2018-02-25 23:02:39 UTC
Hi,

FreeBSD has quirks to disable detection of USB keyboards.

See:

usbconfig dump_quirk_names | grep KBD

--HPS
Comment 2 clutton 2018-02-27 15:56:02 UTC
(In reply to Hans Petter Selasky from comment #1)

Could you please explain what to do next with those quirks?
Nevertheless, it's a bug, you plug mouse, Xorg doesn't see it, system keyboard become dumb.