LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-11-2020, 05:19 AM   #1
MagicPoulp
LQ Newbie
 
Registered: Sep 2020
Posts: 4

Rep: Reputation: Disabled
lsusb does not detect a usb headset


Thanks in advance for the help.

I run debian buster, with the latest backported kernel 5.7. I want to add a usb entity for a usb-based audio headset inside virt-manager. It is a graphical tool to start kvm images, in which I use a Windows VM. When I configure to add a usb entity, I see only my keyboard and my mouse. The headset is not detected.

So either I can forward the USB bus itself and let windows do the detection,
or I have to fix the USB detection in Linux itself.

The headset's model:
https://www.deltaco.eu/en/products/l...%A5por/GAM-074


In this other thread, they say it should be detected as a sound card (weird since it has a microphone also)
https://www.linuxquestions.org/quest...sa-4175542418/
But it is not detected.

cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0x92c30000 irq 142


I activated at boot time snd-usb-audio in /etc/modules, but I did not understand how to configure it.

> lsmod | grep ^snd_hda_intel
snd_hda_intel 57344 2


> lsmod | grep ^snd_usb
snd_usb_audio 311296 0
snd_usbmidi_lib 40960 1 snd_usb_audio


The heaset is on usb 3.1, on bus 2. I know that because the socket in use is blue and the speed is 10000M in lsusb -t
sudo lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:c069 Logitech, Inc. M-U0007 [Corded Mouse M500]
Bus 001 Device 003: ID 046d:c333 Logitech, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


sudo lsusb -t

/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
|__ Port 8: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 12: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 12: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M

the usb bus 2 part in dmesg after booting, and nothing is added when inserting the usb socket after booting.
[ 1.344676] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.07
[ 1.344677] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.344677] usb usb2: Product: xHCI Host Controller
[ 1.344678] usb usb2: Manufacturer: Linux 5.7.0-0.bpo.2-amd64 xhci-hcd
[ 1.344678] usb usb2: SerialNumber: 0000:00:14.0
[ 1.344835] hub 2-0:1.0: USB hub found
[ 1.344871] hub 2-0:1.0: 10 ports detected


After reading the intro below of usb_modeswtich, it seems that the process of setting up drivers on Windows is complex and would require lots of effort to "eavesdrop" and then replicate on linux.
https://www.draisberghof.de/usb_modeswitch/

So I am prioritizing the solution with kvm otions to just forward the usb bus and then let windows do the driver detection.
 
Old 09-11-2020, 07:18 AM   #2
MagicPoulp
LQ Newbie
 
Registered: Sep 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
In this additional post, I could tweak the vm's XML, but it does not solve my issue.

I have found this below.
https://serverfault.com/questions/66...t-with-libvirt

I made a copy of my fvm image, and I can now edit the xml:
virsh -c qemu:///system list --all
virsh -c qemu:///system edit win10


I cannot add this in <devices>: (bus 2 or 02)
<hub type='usb'>
<address type='usb' bus='2' port='1'/>
</hub>
when saving I get this error:
error: XML error: Missing USB bus 2

It looks likes this:

<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
<sound model='ich9'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
</video>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='3'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='2'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='4'/>
</redirdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
</memballoon>
<hub type='usb'>
<address type='usb' bus='1' port='1'/>
</hub>
</devices>
</domain>






If I add the mouse, I get the following added in the XML. But I can't use it anymore it freezes. It worked before I started anything with the headset. I use the default mouse.


<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x046d'/>
<product id='0xc069'/>
</source>
<address type='usb' bus='0' port='5'/>
</hostdev>








---
I tried various combinations of this with device or port. I can press i to iǵnore the validation but then it fails.

<hub type='usb'>
<address type='usb' bus='2' device='1'/>
</hub>

Failed. Try again? [y,n,i,f,?]:
error: XML error: USB bus 1 requested but no controller with that index is present
Failed. Try again? [y,n,f,?]:
error: XML error: USB bus 2 requested but no controller with that index is present
Failed. Try again? [y,n,i,f,?]:
error: XML error: USB bus 2 requested but no controller with that index is present
Failed. Try again? [y,n,f,?]:




---

update. I could define a new controller, but to simplify, I tried to connect the headset to the bus 0.
I know the mouse was on port 4, I removed teh socket for the mouse and put the headset socket at the same place, assuming it wil remain on port 4.

I rebooted, and now I get this. SO the port 4 is not detected.

lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
|__ Port 5: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 12: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 12: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M

But int the virtsh edit I could add the following:
<hub type='usb'>
<address type='usb' bus='0' port='4'/>
</hub>
no validation error

And I changed the virt-manager usb connector to use USB 2 instead of 3, graphically.

In Windows, in the control panel / device manager, it shows different things if I change the VM from usb 3 to usb 2, in usb 2 I ahve:
4 times Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293A
4 times USB-rotnav (hub)
And if I add the xml above, the headset Windows is not auto detected but I get a new element after starting windows:
NEC USB Hub

opening it I get lots of stuff that I do not understand.

Device USB\VID_0409&PID_55AA\314159-0000:00:1d.7-4 was started.

Driver Name: usb.inf
Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
Service: usbhub
Lower Filters:
Upper Filters:
 
Old 09-11-2020, 07:58 AM   #3
MagicPoulp
LQ Newbie
 
Registered: Sep 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
update, the support said: the usb is not for the sound but to control colors, and that the sound must use the analog sockets.
 
Old 09-11-2020, 10:53 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

Please use code tags when presenting long list of information as it will be cleaner to the reader.

Another good resource to help you; https://www.linuxquestions.org/quest...hp?faq=welcome
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] lsusb usb versions conflict with tech spec and color of USB ports gregorian Linux - General 7 05-10-2015 05:35 PM
Bluetooth headset, Alsa - no soundcard in /proc/asound/cards (but headset works) simopal6 Linux - Hardware 1 04-29-2009 09:07 AM
Logitech USB Headset 30 (or another USB headset) dezza Linux - Hardware 0 11-29-2004 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration