Bug 242531 - Red Dragon K552RGB-1 keyboard sending junk characters when first attached
Summary: Red Dragon K552RGB-1 keyboard sending junk characters when first attached
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-09 21:47 UTC by Ed Maste
Modified: 2019-12-09 21:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer 2019-12-09 21:47:38 UTC
After plugging in the keyboard a steady stream of ^A characters are received. 

Modifier key state is confused: pressing caps lock stops all strange behaviour and turns caps lock on; pressing caps lock again turns it off. If caps lock is not pressed after plugging in then pressing ctrl once turns the ^As into As; pressing shift once turns the As into as.

Turning on debugging (hw.usb.ukbd.debug) shows:

Dec  9 08:50:23 nuc kernel: ugen0.5: <SONiX USB DEVICE> at usbus0              
Dec  9 08:50:23 nuc kernel: ukbd2 on uhub0                                     
Dec  9 08:50:23 nuc kernel: ukbd2: <SONiX USB DEVICE, class 0/0, rev 2.00/1.08,
addr 9> on usbus0
Dec  9 08:50:23 nuc kernel: ukbd_attach: Parsing HID descriptor of 79 bytes    
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found left control                 
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found right control                
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found left shift                   
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found right shift                  
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found left alt                     
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found right alt                    
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found left GUI                     
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found right GUI                    
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found keyboard event array         
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found keyboard numlock             
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found keyboard capslock            
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found keyboard scrolllock          
Dec  9 08:50:23 nuc kernel: ukbd_set_leds: leds=0x00                           
Dec  9 08:50:23 nuc syslogd: last message repeated 1 times                     
Dec  9 08:50:23 nuc kernel: kbd4 at ukbd2                                      
Dec  9 08:50:23 nuc kernel: ukbd_set_leds_callback: len=1, id=0                
Dec  9 08:50:23 nuc kernel: ukbd3 on uhub0                                     
Dec  9 08:50:23 nuc kernel: ukbd3: <SONiX USB DEVICE, class 0/0, rev 2.00/1.08,
addr 9> on usbus0
Dec  9 08:50:23 nuc kernel: ukbd_attach: Parsing HID descriptor of 113 bytes   
Dec  9 08:50:23 nuc kernel: ukbd_attach: Forcing boot protocol                 
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found left control                 
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found right control                
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found left shift                   
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found right shift                  
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found left alt                     
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found right alt                    
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found left GUI                     
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found right GUI                    
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found keyboard event array         
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found keyboard numlock             
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found keyboard capslock            
Dec  9 08:50:23 nuc kernel: ukbd_parse_hid: Found keyboard scrolllock          
Dec  9 08:50:23 nuc kernel: ukbd_set_leds: leds=0x00                           
Dec  9 08:50:23 nuc syslogd: last message repeated 1 times                     
Dec  9 08:50:23 nuc kernel: kbd5 at ukbd3                                      
Dec  9 08:50:23 nuc kernel: ukbd_set_leds_callback: len=1, id=0                
Dec  9 08:50:23 nuc kernel: ukbd_intr_callback: actlen=64 bytes                
Dec  9 08:50:23 nuc kernel: ukbd_intr_callback: modifiers = 0x0000             
Dec  9 08:50:23 nuc kernel: ukbd_intr_callback: [1] = 0x02                     
Dec  9 08:50:23 nuc kernel: ukbd_intr_callback: [2] = 0x01                     
Dec  9 08:50:23 nuc kernel: ukbd_intr_callback: [4] = 0x01                     
Dec  9 08:50:23 nuc kernel: ukbd_put_key: 0x02 (2) pressed                     
Dec  9 08:50:23 nuc kernel: ukbd_put_key: 0x01 (1) pressed                     
Dec  9 08:50:23 nuc syslogd: last message repeated 1 times                     
Dec  9 08:50:26 nuc kernel: ukbd_intr_callback: actlen=3 bytes                 
Dec  9 08:50:26 nuc kernel: ukbd_intr_callback: modifiers = 0x0003             
Dec  9 08:50:26 nuc kernel: ukbd_intr_callback: [0] = 0x04                     
Dec  9 08:50:26 nuc kernel: ukbd_put_key: 0xe0 (224) pressed                   
Dec  9 08:50:26 nuc kernel: ukbd_put_key: 0xe1 (225) pressed                   
Dec  9 08:50:26 nuc kernel: ukbd_put_key: 0x402 (1026) released                
Dec  9 08:50:26 nuc kernel: ukbd_put_key: 0x401 (1025) released                
Dec  9 08:50:26 nuc syslogd: last message repeated 1 times                     
Dec  9 08:50:26 nuc kernel: ukbd_put_key: 0x04 (4) pressed                     
Dec  9 08:50:26 nuc syslogd: last message repeated 2 times                     
Dec  9 08:50:26 nuc kernel: ukbd_intr_callback: actlen=8 bytes                 
Dec  9 08:50:26 nuc kernel: ukbd_intr_callback: modifiers = 0x0000             
Dec  9 08:50:26 nuc kernel: ukbd_intr_callback: [0] = 0x14                     
Dec  9 08:50:26 nuc kernel: ukbd_put_key: 0x14 (20) pressed                    
Dec  9 08:50:26 nuc kernel: ukbd_put_key: 0x04 (4) pressed                     
Dec  9 08:50:27 nuc kernel: ukbd_intr_callback: actlen=8 bytes                 
Dec  9 08:50:27 nuc kernel: ukbd_intr_callback: modifiers = 0x0000
Dec  9 08:50:27 nuc kernel: ukbd_put_key: 0x414 (1044) released
Dec  9 08:50:27 nuc kernel: ukbd_put_key: 0x04 (4) pressed
Dec  9 08:50:35 nuc syslogd: last message repeated 83 times
Dec  9 08:50:35 nuc kernel: ukbd_intr_callback: actlen=8 bytes
Dec  9 08:50:35 nuc kernel: ukbd_intr_callback: modifiers = 0x0000
Dec  9 08:50:35 nuc kernel: ukbd_intr_callback: [0] = 0x39
Dec  9 08:50:35 nuc kernel: ukbd_put_key: 0x39 (57) pressed
Dec  9 08:50:35 nuc kernel: ukbd_set_leds: leds=0x01
Dec  9 08:50:35 nuc syslogd: last message repeated 3 times
Dec  9 08:50:35 nuc kernel: ukbd_put_key: 0x04 (4) pressed
Dec  9 08:50:35 nuc kernel: ukbd_set_leds_callback: len=1, id=0
Dec  9 08:50:35 nuc syslogd: last message repeated 3 times
Dec  9 08:50:35 nuc kernel: ukbd_intr_callback: actlen=8 bytes
Dec  9 08:50:35 nuc kernel: ukbd_intr_callback: modifiers = 0x0000
Dec  9 08:50:35 nuc kernel: ukbd_put_key: 0x439 (1081) released
Dec  9 08:50:35 nuc kernel: ukbd_put_key: 0x04 (4) pressed
Dec  9 08:50:35 nuc kernel: ukbd_intr_callback: actlen=64 bytes