- 运行 Debian:
# uname --kernel-name --kernel-release --machine Linux 6.5.11-7-pve x86_64 # cat /proc/asound/cards 0 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0xfb410000 irq 98 2 [USB ]: USB-Audio - Scarlett Solo USB Focusrite Scarlett Solo USB at usb-0000:00:14.0-7, high speed
- 每次开机,声卡的顺序都会改变,即USB随机为0或2
- 如何确保每次都是默认 USB?
更新1
root@pve:/scripts# cat /etc/modprobe.d/sound/alsa.conf
# makes usb audio always index 0, needs reboot
options snd-usb-audio index=0
options snd-hda-intel index=1
root@pve:/scripts# cat /etc/asound.conf
defaults.pcm.card 2
defaults.ctl.card 2
root@pve:/scripts#
这是我目前拥有的,但 USB 仍然可能最终为 2,我必须使用/etc/asound.conf
它来将其设为默认值,而无需执行另一次重新启动,并希望它最终为 0
更新2
# cat /etc/modprobe.d/*.conf
# makes usb audio always index 0, needs reboot
#options snd-usb-audio index=0
#options snd-hda-intel index=1
# This file contains a list of modules which are not supported by Proxmox VE
# nvidiafb see bugreport https://bugzilla.proxmox.com/show_bug.cgi?id=701
blacklist nvidiafb
options zfs zfs_arc_max=13488881664