![为什么用户在 Debian 11 中可以正常工作,而在其他版本中却不能?](https://linux22.com/image/225702/%E4%B8%BA%E4%BB%80%E4%B9%88%E7%94%A8%E6%88%B7%E5%9C%A8%20Debian%2011%20%E4%B8%AD%E5%8F%AF%E4%BB%A5%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C%EF%BC%8C%E8%80%8C%E5%9C%A8%E5%85%B6%E4%BB%96%E7%89%88%E6%9C%AC%E4%B8%AD%E5%8D%B4%E4%B8%8D%E8%83%BD%EF%BC%9F.png)
在 Debian 11 中,我有两个用户使用笔记本电脑 Lenovo Ideapad S145。
一位用户的声音运行得很好——我不知道这是否是有效信息,但该用户位于 sudoers 组中。另一个在声音输出配置中获得虚拟输出。
如果第一个用户的驱动程序已安装且工作正常,为什么一个用户可以听到音频而其他用户则不能?
一些可能的相关信息(在控制台中,用户声音正在工作):
输出lcpci | grep -i audio
:
00:1f.3 Audio device: Intel Corporation Ice Lake-LP Smart Sound Technology Audio Controller (rev 30)
输出sudo lspci -nnk | grep -A2 Audio
:
00:1f.3 Audio device [0403]: Intel Corporation Ice Lake-LP Smart Sound Technology Audio Controller [8086:34c8] (rev 30)
Subsystem: Lenovo Smart Sound Technology Audio Controller [17aa:3840]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_sof_pci
输出sudo lsmod | grep snd_hda_intel
:
snd_hda_intel 57344 6
snd_intel_dspcfg 28672 3 snd_hda_intel,snd_sof_pci,snd_sof_intel_hda_common
snd_hda_codec 176128 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
snd_hda_core 110592 9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_pcm 143360 11 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_hda_core
snd 110592 20 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm
输出aplay -l
:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC236 Analog [ALC236 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 11: HDMI 5 [HDMI 5]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 12: HDMI 6 [HDMI 6]
Subdevices: 1/1
Subdevice #0: subdevice #0
答案1
确保所有用户都位于 /etc/group 文件中的音频组中。