我怎样才能使我的声音发挥作用?

我怎样才能使我的声音发挥作用?

我买了一个华硕 Vivobook Pro K6500ZH几天前,我买了一台 PC,并在其上安装了 Ubuntu,除了声音之外,一切都运行正常,但由于某种原因,我听不到任何声音。

我尝试了很多方法,但都不管用,比如用 alsamixer 等等。我只找到了一个对我有用的解决方案YouTube使用以下脚本:

#!/bin/bash
sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1b
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x4a4b
sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x74

一切似乎都很好,直到我重新启动电脑并且需要再次运行脚本才能使声音正常工作,这非常烦人。

我听不到任何声音的原因可能是什么?如何才能在不重新启动电脑时运行该脚本的情况下解决这个问题?

我有一张声卡:HDA 英特尔 PCH
芯片:瑞昱 ALC294

输出sudo lshw -c sound命令

*-multimedia              
       description: Audio device
       product: NVIDIA Corporation
       vendor: NVIDIA Corporation
       physical id: 0.1
       bus info: pci@0000:01:00.1
       logical name: card1
       logical name: /dev/snd/controlC1
       logical name: /dev/snd/hwC1D0
       logical name: /dev/snd/pcmC1D3p
       logical name: /dev/snd/pcmC1D7p
       logical name: /dev/snd/pcmC1D8p
       logical name: /dev/snd/pcmC1D9p
       version: a1
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=snd_hda_intel latency=0
       resources: irq:17 memory:86080000-86083fff
  *-usb:2
       description: Video
       product: USB2.0 FHD UVC WebCam: USB2.0 F
       vendor: Sonix Technology Co., Ltd.
       physical id: 9
       bus info: usb@3:9
       logical name: input9
       logical name: /dev/input/event7
       version: 0.03
       capabilities: usb-2.01 usb
       configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
  *-multimedia
       description: Audio device
       product: Alder Lake PCH-P High Definition Audio Controller
       vendor: Intel Corporation
       physical id: 1f.3
       bus info: pci@0000:00:1f.3
       logical name: card0
       logical name: /dev/snd/controlC0
       logical name: /dev/snd/hwC0D0
       logical name: /dev/snd/hwC0D2
       logical name: /dev/snd/pcmC0D0c
       logical name: /dev/snd/pcmC0D0p
       logical name: /dev/snd/pcmC0D10p
       logical name: /dev/snd/pcmC0D11p
       logical name: /dev/snd/pcmC0D12p
       logical name: /dev/snd/pcmC0D13p
       logical name: /dev/snd/pcmC0D14p
       logical name: /dev/snd/pcmC0D15p
       logical name: /dev/snd/pcmC0D16p
       logical name: /dev/snd/pcmC0D17p
       logical name: /dev/snd/pcmC0D3p
       logical name: /dev/snd/pcmC0D7p
       logical name: /dev/snd/pcmC0D8p
       logical name: /dev/snd/pcmC0D9p
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list
       configuration: driver=snd_hda_intel latency=32
       resources: iomemory:600-5ff iomemory:600-5ff irq:188 memory:6037288000-603728bfff memory:6037000000-60370fffff

相关内容