"We are back" « oc.at

FAQ: Windows -> GNU/Linux - Umstieg, Einstieg, Aufstieg

COLOSSUS 20.10.2004 - 12:30 815380 1190 Thread rating
Posts

Daeda

Renegade
Registered: Aug 2007
Location: Graz
Posts: 1807
Zitat aus einem Post von issue
kommt mir wild vor, dass hid-generic das nicht dapackt, bzw der hersteller soweit daneben nagelt.
kannst du mal den output von `dmesg` posten nachdem du das trum angesteckt hast?

dmesg haut in einer loop ständig das raus:

Code:
[ 1764.458913] usb 3-2.2: new full-speed USB device number 38 using xhci_hcd
[ 1764.566721] usb 3-2.2: New USB device found, idVendor=04d9, idProduct=0348, bcdDevice= 1.10
[ 1764.566730] usb 3-2.2: New USB device strings: Mfr=3, Product=1, SerialNumber=0
[ 1764.566736] usb 3-2.2: Product: Ducky Keyboard
[ 1764.566740] usb 3-2.2: Manufacturer: DuckyChannel International Co., Ltd.
[ 1764.702208] input: DuckyChannel International Co., Ltd. Ducky Keyboard as /devices/pci0000:00/0000:00:08.1/0000:34:00.4/usb3/3-2/3-2.2/3-2.2:1.0/0003:04D9:0348.09DA/input/input2546
[ 1764.790336] hid-generic 0003:04D9:0348.09DA: input,hidraw7: USB HID v1.11 Keyboard [DuckyChannel International Co., Ltd. Ducky Keyboard] on usb-0000:34:00.4-2.2/input0
[ 1764.792201] usbhid 3-2.2:1.1: can't add hid device: -32
[ 1764.792241] usbhid 3-2.2:1.1: probe with driver usbhid failed with error -32
[ 1764.793081] usbhid 3-2.2:1.2: can't add hid device: -32
[ 1764.793356] usbhid 3-2.2:1.2: probe with driver usbhid failed with error -32

Zusammenfassung von Claude Codes trial&error:
Zitat
Ducky Shine 7 (04d9:0348) — endless USB reset loop on Linux 6.17 / Ubuntu 25.
---
Symptom: Keyboard connects, immediately disconnects, loops indefinitely. No input.

dmesg:
usbhid 3-2.2:1.1: can't add hid device: -32
usbhid 3-2.2:1.1: probe with driver usbhid failed with error -32
usbhid 3-2.2:1.2: can't add hid device: -32
usbhid 3-2.2:1.2: probe with driver usbhid failed with error -32
usb 3-2.2: USB disconnect

Root cause: The keyboard has 3 HID interfaces:
- Interface 0: standard keyboard (Class 3 / SubClass 1 Boot / Protocol 1) — works
- Interface 1: lighting/macro (Class 3 / SubClass 0 / Protocol 0, 64-byte interrupt IN+OUT) — stalls
- Interface 2: lighting/macro (Class 3 / SubClass 0 / Protocol 0, 64-byte interrupt IN) — stalls

Interfaces 1 and 2 return EPIPE (-32) when usbhid tries to fetch their HID report descriptor via usb_control_msg(). This triggers usb_reset_device() in usbhid_probe(), resetting the entire device — including interface 0 — causing the loop.

What didn't work:
HID_QUIRK_NO_INIT_REPORTS (0x20000000) via /etc/modprobe.d/ — the EPIPE occurs during report descriptor fetch, before that quirk has any effect.

What should work:
A minimal USB kernel module registered with USB_DEVICE_INTERFACE_NUMBER(0x04d9, 0x0348, 1/2) that claims interfaces 1 and 2, returns 0 from probe, and does nothing — preventing usbhid from ever touching them and stopping the reset loop. Module builds and loads fine, but Secure Boot blocks unsigned modules on this live USB system.

Irgendeine Idee dazu?
Ich werds sonst dann einfach mal demnächst installieren statt von usb zu booten und dann weiter probieren.
Bearbeitet von Daeda am 23.03.2026, 23:30

issue

Rock and Stone, brother!
Avatar
Registered: Feb 2003
Location: Linz
Posts: 3722
Wuerd sagen das hat claudius schon ganz gut analysiert. Kabel/Usb sind fix gut?
Du koenntest noch versuchen usbhid mit quirks zu laden, damit er auf die 2 interfaces nicht anspringt.
usbhid unloaden und mit `modprobe usbhid 'quirks=04d9:0348:4'` nochmals probiern

edit: nvm das mit den quirks, lesen is hard :D das wuerd dir das komplette keyboard ignoriern
edit2: wobei vllt hilft der NO_GET, also 8 statt der 4 (https://github.com/torvalds/linux/b...inux/hid.h#L399)
Bearbeitet von issue am 23.03.2026, 23:37

Daeda

Renegade
Registered: Aug 2007
Location: Graz
Posts: 1807
Kabel und Anschlüsse wirken fehlerfrei.
Habs noch bissl besser formattiert, ging etwas unter was schon versucht wurde - irgendwas mit quirks war jedenfalls dabei. Danke trotzdem

issue

Rock and Stone, brother!
Avatar
Registered: Feb 2003
Location: Linz
Posts: 3722
Wenn du nur das livesystem gebootet hast, zieht /etc/modprobe.d nicht, weil das beim reboot angschaut wird.
Du kannst die quirks auch als kernel parameter in grub oder was auch immer ubuntu als bootloader nimmt eintragen (meistens 'e' auf den eintrag und dann zb usbhid.quirks=xxx)
Falls das keyboard n-key rollover hat, eventl das mal ausschalten probieren.

Rogaahl

Elder
interrup
Avatar
Registered: Feb 2014
Location: K
Posts: 2643
Nach 6 Jahren ist es endlich so weit, Wayland session management protocol wurde gemerged. Bedeutet, in Zukunft werden Fenster Positionen und Größe gemerkt. KDE hatte natürlich den Implementation code lange bereit, das es spätestens in Plasma 6.7 landen wird.





Daeda

Renegade
Registered: Aug 2007
Location: Graz
Posts: 1807
Zitat aus einem Post von issue
Wenn du nur das livesystem gebootet hast, zieht /etc/modprobe.d nicht, weil das beim reboot angschaut wird.
Du kannst die quirks auch als kernel parameter in grub oder was auch immer ubuntu als bootloader nimmt eintragen (meistens 'e' auf den eintrag und dann zb usbhid.quirks=xxx)
Falls das keyboard n-key rollover hat, eventl das mal ausschalten probieren.

Fn-key rollover hab ich überprüft, ist default aus und hab ich auch nie geändert.
Claude hat es nach langem hin- und her irgendwie hinbekommen, dass die Ducky beim Booten erfolgreich initialisiert wird, aber nach ab-/anstecken schon wieder nicht. Und da ich täglich zwischen Firmen- und Privatlaptop an der Dockingstation wechsle, bringt mir das genau gar nix.

Habs aufgegeben und bin jetzt am lauten Ersatzkeyboard unterwegs :(

Nächstes Problem: DRM. Ich schau manchmal mim Laptop via HDMI am TV Netflix & Co., das geht standardmäßig mal nur mit 720p. Mit FF Browsererweiterung immerhin 1080p, zumindest für Netflix (https://addons.mozilla.org/en-US/fi...80p-ua/reviews/ - 1 negatives Review, aber bei mir funktionierts).
4k und HDR sind also scheinbar unmöglich?
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz