Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keyboard Ducky one 2 mini doesn't work sometimes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Ami00
n00b
n00b


Joined: 06 Apr 2021
Posts: 2

PostPosted: Sat Apr 17, 2021 8:36 am    Post subject: Keyboard Ducky one 2 mini doesn't work sometimes Reply with quote

Hello everyone!

I have an issue with my mechanical keyboard(Ducky one 2 mini): 1 of 10 boots it doesn't start working.
here is my dmesg - https://dpaste.com/9TLXCP9H3
I assume this is the error itself:
Code:
[   12.616695] xhci_hcd 0000:0c:00.3: Timeout while waiting for setup device command
[   12.823347] usb 3-1: device not accepting address 2, error -62
[   22.950013] xhci_hcd 0000:0c:00.3: Abort failed to stop command ring: -110
[   22.966017] xhci_hcd 0000:0c:00.3: Host halt failed, -110
[   22.966019] xhci_hcd 0000:0c:00.3: xHCI host controller not responding, assume dead
[   22.966022] xhci_hcd 0000:0c:00.3: HC died; cleaning up
[   22.966056] xhci_hcd 0000:0c:00.3: Error while assigning device slot ID
[   22.966057] xhci_hcd 0000:0c:00.3: Max number of devices this xHCI host supports is 64.
[   22.966080] usb usb3-port1: couldn't allocate usb_device


I tried to searched it, but for some reason I wasn't able to find list of error codes and it's meaning.
What I was able to find - threads in which the solution was to enable or disable IOMMU, which I tried to do in bios but result is still the same.
Now I have no ideas where to dig and this issue is really annoying as long as I removed DM, now I can't use mouse to reboot pc at logging screen >_<
Also I have only keyboard and mouse connected to my pc.

here are my other logs (they are pretty much the same but might be helpful):
kern.log - https://dpaste.com/B6RGWTUB8
messages - https://dpaste.com/87KPXMP8E
syslog - https://dpaste.com/CN33QAT8N

Below are output when it was loaded fine!

Code:
~ % /usr/sbin/lspci -v | grep USB     
01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] X370 Series Chipset USB 3.1 xHCI Controller (rev 02) (prog-if 30 [XHCI])
   Subsystem: ASMedia Technology Inc. X370 Series Chipset USB 3.1 xHCI Controller
0c:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) USB 3.0 Host Controller (prog-if 30 [XHCI])
   Subsystem: ASRock Incorporation Family 17h (Models 00h-0fh) USB 3.0 Host Controller


Code:
 ~ % lsusb
Bus 003 Device 002: ID 3233:6301 Ducky Ducky One2 Mini RGB
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:c245 Logitech, Inc. G400 Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Code:
~ % lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 3, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 10: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 10: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M


side note: I have these options for kernel to avoid freezes with my amd ryzen cpu : processor.max_cstate=1 intel_idle.max_cstate=0 rcu_nocbs=0-11 idle=nomwait. the problem with the keyboard was there even before I added these.

Regarding kernel config - I still use the one that was made by genkernel during installation:
https://dpaste.com/9FVTC849U

make.conf
Code:
INPUT_DEVICES="libinput"


Any help is appreciated!

PS:
I tried to plug out/plug in it but it doesn't help. Although I can plug in my old keyboard and it will work.

PPS:
dmesg when keyboard started fine - https://dpaste.com/65TQH4Y9E
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Tue Apr 27, 2021 7:45 pm    Post subject: Reply with quote

Welcome to Gentoo.

This is quite a wild guess but, It may be because insufficient power. Something else might draw too much power. Does your other USB device work ok?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Ami00
n00b
n00b


Joined: 06 Apr 2021
Posts: 2

PostPosted: Tue Apr 27, 2021 9:30 pm    Post subject: Reply with quote

Zucca wrote:
Welcome to Gentoo.

This is quite a wild guess but, It may be because insufficient power. Something else might draw too much power. Does your other USB device work ok?

Hey there, thnx for the warm welcome!
I have only mouse and keyboard connected via usb, and sometimes flash stick. Everything works fine except the keyboard, but tbh I re-plugged it from USB3 port to USB2 and disabled everything I was able to find in bios/kernel related to IOMMU and I haven't seen any issues so far(one week) with keyboard in Gentoo. Still the keyboard may not be started at the grub welcome screen sometimes, only after udev started working, so I can't select other OS.
Also I found this bug - https://bugzilla.kernel.org/show_bug.cgi?id=115741 , looked through it and I guess it might be related to my problem. Meanwhile I'm thinking of changing the keyboard to something more "standard" =\
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Thu Mar 28, 2024 9:24 pm    Post subject: Reply with quote

By pure change of luck I found this exact same keyboard from trash.
I think I found it about a year ago.

What I've noticed is that the keyboard boots quite a long time. And because of this I haven't been able to enter to bios settings. However I haven't faced the bug OP mentioned.
Code:
panther-box ~ # uname -r
6.1.81-google-panther-0.1
... so maybe it has been fixed in kernel already?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum