使用 ubuntu 22.04 时,有时重新启动后声音输出设备似乎无法识别。在设置中,我无法选择连接到笔记本电脑的输出设备:
我重新连接了输出设备(USB 耳机)并运行了命令
pulseaudio -k && sudo alsa force-reload
没有成功。输出设备仍然无法识别。我已经重启了笔记本电脑两次。
我很感激有人能提供一些方法来解决此问题而无需重启笔记本电脑,而我现在已经第三次重启笔记本电脑了。谢谢
amixer -c 0 sget 'Master'
声音工作时的输出:
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 87 [100%] [0.00dB] [on]
当声音不工作并且需要重新启动时输出:
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 87 [100%] [0.00dB] [on]
sudo dmesg -w
当我在耳机不工作的情况下插入耳机时,该命令显示以下输出:
[ 180.197897] usb 3-1: USB disconnect, device number 2
[ 182.938423] usb 3-1: new full-speed USB device number 12 using xhci_hcd
[ 183.087660] usb 3-1: New USB device found, idVendor=046d, idProduct=0a45, bcdDevice= 1.00
[ 183.087669] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 183.087672] usb 3-1: Product: Logitech USB Headset
[ 183.087675] usb 3-1: Manufacturer: Logitech
[ 183.087678] usb 3-1: SerialNumber: 000000000000
[ 183.138531] usb 3-1: Warning! Unlikely big volume range (=496), cval->res is probably wrong.
[ 183.138546] usb 3-1: [51] FU [Mic Playback Volume] ch = 1, val = 0/7936/16
[ 183.178269] usb 3-1: Warning! Unlikely big volume range (=1008), cval->res is probably wrong.
[ 183.178281] usb 3-1: [49] FU [Headphone Playback Volume] ch = 2, val = -16129/-1/16
[ 183.218532] usb 3-1: Warning! Unlikely big volume range (=496), cval->res is probably wrong.
[ 183.218540] usb 3-1: [50] FU [Mic Capture Volume] ch = 1, val = 0/7936/16
[ 183.220772] input: Logitech Logitech USB Headset as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.3/0003:046D:0A45.0006/input/input34
[ 183.278617] hid-generic 0003:046D:0A45.0006: input,hidraw1: USB HID v1.00 Device [Logitech Logitech USB Headset] on usb-0000:00:14.0-1/input3
输出为pactl list short sinks
:
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
/var/log/syslog
显示:
Dec 5 06:36:03 alex-Ubuntu kernel: [ 386.013612] usb 3-1: new full-speed USB device number 14 using xhci_hcd
Dec 5 06:36:03 alex-Ubuntu kernel: [ 386.162762] usb 3-1: New USB device found, idVendor=046d, idProduct=0a45, bcdDevice= 1.00
Dec 5 06:36:03 alex-Ubuntu kernel: [ 386.162771] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 5 06:36:03 alex-Ubuntu kernel: [ 386.162775] usb 3-1: Product: Logitech USB Headset
Dec 5 06:36:03 alex-Ubuntu kernel: [ 386.162777] usb 3-1: Manufacturer: Logitech
Dec 5 06:36:03 alex-Ubuntu kernel: [ 386.162780] usb 3-1: SerialNumber: 000000000000
Dec 5 06:36:03 alex-Ubuntu kernel: [ 386.215929] usb 3-1: Warning! Unlikely big volume range (=496), cval->res is probably wrong.
Dec 5 06:36:03 alex-Ubuntu kernel: [ 386.215937] usb 3-1: [51] FU [Mic Playback Volume] ch = 1, val = 0/7936/16
Dec 5 06:36:04 alex-Ubuntu kernel: [ 386.257716] usb 3-1: Warning! Unlikely big volume range (=1008), cval->res is probably wrong.
Dec 5 06:36:04 alex-Ubuntu kernel: [ 386.257724] usb 3-1: [49] FU [Headphone Playback Volume] ch = 2, val = -16129/-1/16
Dec 5 06:36:04 alex-Ubuntu kernel: [ 386.297612] usb 3-1: Warning! Unlikely big volume range (=496), cval->res is probably wrong.
Dec 5 06:36:04 alex-Ubuntu kernel: [ 386.297620] usb 3-1: [50] FU [Mic Capture Volume] ch = 1, val = 0/7936/16
Dec 5 06:36:04 alex-Ubuntu kernel: [ 386.299831] input: Logitech Logitech USB Headset as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.3/0003:046D:0A45.0008/input/input36
Dec 5 06:36:04 alex-Ubuntu kernel: [ 386.358274] hid-generic 0003:046D:0A45.0008: input,hidraw1: USB HID v1.00 Device [Logitech Logitech USB Headset] on usb-0000:00:14.0-1/input3
Dec 5 06:36:04 alex-Ubuntu mtp-probe: checking bus 3, device 14: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1"
Dec 5 06:36:04 alex-Ubuntu mtp-probe: bus: 3, device: 14 was not an MTP device
Dec 5 06:36:04 alex-Ubuntu systemd-udevd[6158]: 3-1:1.2: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2 0:0' failed with exit code 1.
Dec 5 06:36:04 alex-Ubuntu systemd-udevd[6156]: 3-1:1.1: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.1 0:0' failed with exit code 1.
Dec 5 06:36:04 alex-Ubuntu systemd-udevd[6158]: 3-1:1.2: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2 0:0' failed with exit code 1.
Dec 5 06:36:04 alex-Ubuntu systemd-udevd[6156]: 3-1:1.1: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.1 0:0' failed with exit code 1.
Dec 5 06:36:04 alex-Ubuntu systemd-udevd[6174]: 3-1:1.0: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0 0:0' failed with exit code 1.
Dec 5 06:36:04 alex-Ubuntu systemd-udevd[6174]: 3-1:1.0: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0 0:0' failed with exit code 1.
Dec 5 06:36:04 alex-Ubuntu systemd-udevd[6174]: 3-1:1.3: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.3 0:0' failed with exit code 1.
Dec 5 06:36:04 alex-Ubuntu systemd-udevd[6174]: 3-1:1.3: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.3 0:0' failed with exit code 1.
Dec 5 06:36:04 alex-Ubuntu mtp-probe: checking bus 3, device 14: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1"
Dec 5 06:36:04 alex-Ubuntu mtp-probe: bus: 3, device: 14 was not an MTP device
Dec 5 06:36:04 alex-Ubuntu systemd-udevd[6174]: 3-1: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_cupsd /devices/pci0000:00/0000:00:14.0/usb3/3-1 189:269' failed with exit code 1.
Dec 5 06:36:04 alex-Ubuntu systemd-udevd[6174]: 3-1: Process '/usr/lib/snapd/snap-device-helper bind snap_cups_ippeveprinter /devices/pci0000:00/0000:00:14.0/usb3/3-1 189:269' failed with exit code 1.
Dec 5 06:36:04 alex-Ubuntu systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Dec 5 06:36:04 alex-Ubuntu colord-sane: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied