所以我擅长Linux,但硬件不是我的强项。
我有一个 USB 扬声器,已插入我的机器,但我不知道如何配置 Linux 来使用它。
我看到它已加载/var/log/messages
Aug 20 12:48:35 usb 1-2: new full-speed USB device number 11 using xhci_hcd
Aug 20 12:48:36 usb 1-2: new full-speed USB device number 12 using xhci_hcd
Aug 20 12:48:36 usb 1-2: New USB device found, idVendor=046d, idProduct=0a4f
Aug 20 12:48:36 usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Aug 20 12:48:36 usb 1-2: Product: MINI BOOM
Aug 20 12:48:36 usb 1-2: Manufacturer: Logitech
Aug 20 12:48:36 hid-generic 0003:046D:0A4F.0007: hiddev0,hidraw0: USB HID v1.11 Device
[Logitech MINI BOOM] on usb-0000:00:14.0-2/input0
根据最后一行,我看到这些文件已经出现:
0 crw------- 1 root root 240, 0 Aug 20 12:48 /dev/hidraw0
0 crw------- 1 root root 180, 96 Aug 20 12:48 /dev/usb/hiddev0
我安装了模块:
snd_seq_oss
snd_seq_midi_event
snd_pcm_oss
snd_mixer_oss
snd_usb_audio
snd_usbmidi_lib
snd_rawmidi
snd_seq_dummy
snd_seq
snd_seq_device
snd_hda_codec_hdmi
snd_hda_codec_realtek
snd_hda_codec_generic
snd_hda_intel
snd_hda_codec
snd_hda_core
snd_hwdep
snd_pcm
snd_timer
snd
soundcore
但每次运行时alsamixer
,我只看到内置声卡:
┌───── Sound Card ──────┐
│- (default) │
│0 HDA Intel PCH │
│ enter device name...│
└───────────────────────┘
并且它没有列出在/proc/asound/cards
% cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xb1228000 irq 128
我缺少什么?
========
编辑1:
% sudo lsusb -vd 046D:0A4F
Bus 001 Device 012: ID 046d:0a4f Logitech, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 3 Human Interface Device
bDeviceSubClass 1 Boot Interface Subclass
bDeviceProtocol 1 Keyboard
[....]
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
我怀疑我发现了我的问题。计算机认为它是键盘。