您尚未登录。

#1 2023-07-01 12:04:42

chrisivanovic
会员
注册时间: 2023-06-13
帖子: 66

[已解决]突然出现的声音问题

今天打开amberol听歌,没声音,换成elisa,也没声音,换成vlc播放也没有声音
speaker-test -c -2报错如下

speaker-test 1.2.9

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1024 channels
Using 16 octaves of pink noise
Channels count (1024) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument

aplay -l的输出

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

日志

journalctl -p 3..1
Jul 01 11:49:01 Xiaoxin-PRO13 kernel: integrity: Problem loading X.509 certificate -65
Jul 01 11:49:01 Xiaoxin-PRO13 (sd-execu[238]: /usr/lib/systemd/system-generators/ostree-system-generator failed with exit status 1.
Jul 01 11:49:05 Xiaoxin-PRO13 kernel: Bluetooth: hci0: FW download error recovery failed (-19)
Jul 01 11:49:05 Xiaoxin-PRO13 kernel: Bluetooth: hci0: sending frame failed (-19)
Jul 01 11:49:05 Xiaoxin-PRO13 kernel: Bluetooth: hci0: Failed to read MSFT supported features (-19)
Jul 01 11:49:06 Xiaoxin-PRO13 wpa_supplicant[848]: nl80211: kernel reports: Match already configured
Jul 01 11:49:06 Xiaoxin-PRO13 wpa_supplicant[848]: nl80211: kernel reports: Match already configured
Jul 01 11:49:06 Xiaoxin-PRO13 wpa_supplicant[848]: nl80211: kernel reports: Match already configured
Jul 01 11:49:06 Xiaoxin-PRO13 wpa_supplicant[848]: nl80211: kernel reports: Match already configured
Jul 01 11:49:06 Xiaoxin-PRO13 wpa_supplicant[848]: nl80211: kernel reports: Match already configured
Jul 01 11:49:06 Xiaoxin-PRO13 wpa_supplicant[848]: nl80211: kernel reports: Match already configured
Jul 01 11:49:06 Xiaoxin-PRO13 wpa_supplicant[848]: nl80211: kernel reports: Match already configured
Jul 01 11:49:06 Xiaoxin-PRO13 wpa_supplicant[848]: nl80211: kernel reports: Match already configured
Jul 01 11:49:06 Xiaoxin-PRO13 wpa_supplicant[848]: nl80211: kernel reports: Match already configured
Jul 01 11:49:06 Xiaoxin-PRO13 wpa_supplicant[848]: nl80211: kernel reports: Match already configured
Jul 01 11:49:07 Xiaoxin-PRO13 kernel: Bluetooth: hci0: Malformed MSFT vendor event: 0x02
Jul 01 11:49:07 Xiaoxin-PRO13 bluetoothd[630]: Failed to set mode: Failed (0x03)
Jul 01 11:49:16 Xiaoxin-PRO13 pulseaudio[1467]: org.bluez.ProfileManager1.RegisterProfile() failed: org.bluez.Error.NotPermitted: UUID already registered

/etc/asound.conf

cat /etc/asound.conf
pcm.!default{
 type hw
  card 1
}
ctl.!default{
 type hw
  card 1
}

google过了没找到什么类似的案例,有什么头猪吗

最近编辑记录 chrisivanovic (2023-07-01 18:06:52)

离线

#2 2023-07-01 12:09:37

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,953
个人网站

Re: [已解决]突然出现的声音问题

我住在城市,这里没有猪,只有猪肉。

为什么你们都喜欢跑 alsa 过不去呢?不用 PipeWire 或者 PulseAudio 的吗?

离线

#3 2023-07-01 12:25:39

chrisivanovic
会员
注册时间: 2023-06-13
帖子: 66

Re: [已解决]突然出现的声音问题

我去换成pulseaudio试试

离线

#4 2023-07-01 13:15:57

chrisivanovic
会员
注册时间: 2023-06-13
帖子: 66

Re: [已解决]突然出现的声音问题

这样算是ok了吗?

pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 11
Tile Size: 65472
User Name: chasel
Host Name: Xiaoxin-PRO13
Server Name: pulseaudio
Server Version: 16.1
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_03_00.6.analog-stereo
Default Source: alsa_input.pci-0000_03_00.6.analog-stereo
Cookie: 01be:bcf3

但是speaker-test还是一样的报错,别的应用也没有声音
服务状态

systemctl status --user pulseaudio
● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; preset: enabled)
     Active: active (running) since Sat 2023-07-01 13:13:17 CST; 27s ago
TriggeredBy: ● pulseaudio.socket
   Main PID: 962 (pulseaudio)
      Tasks: 8 (limit: 16597)
     Memory: 41.6M
        CPU: 388ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pulseaudio.service
             ├─ 962 /usr/bin/pulseaudio --daemonize=no --log-target=journal
             └─1013 /usr/lib/pulse/gsettings-helper

Jul 01 13:13:16 Xiaoxin-PRO13 systemd[954]: Starting Sound Service...
Jul 01 13:13:16 Xiaoxin-PRO13 pulseaudio[962]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enable>
Jul 01 13:13:17 Xiaoxin-PRO13 systemd[954]: Started Sound Service.

难道说还需要什么别的设置么

离线

#5 2023-07-01 13:51:19

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,953
个人网站

Re: [已解决]突然出现的声音问题

pactl list sinks

离线

#6 2023-07-01 14:08:13

chrisivanovic
会员
注册时间: 2023-06-13
帖子: 66

Re: [已解决]突然出现的声音问题

pactl list sinks
Sink #0
        State: SUSPENDED
        Name: alsa_output.pci-0000_03_00.6.analog-stereo
        Description: Family 17h/19h HD Audio Controller Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 7
        Mute: no
        Volume: front-left: 26241 /  40% / -23.85 dB,   front-right: 26241 /  40% / -23.85 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_03_00.6.analog-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC257 Analog"
                alsa.id = "ALC257 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd05c0000 irq 83"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "front:1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Family 17h/19h HD Audio Controller Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability unknown)
                analog-output-headphones: Headphones (type: Headphones, priority: 9900, not available)
        Active Port: analog-output-speaker
        Formats:
                pcm

离线

#7 2023-07-01 15:06:31

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,953
个人网站

Re: [已解决]突然出现的声音问题

看起来没问题啊。你用 mpv 播放声音试试?如果还有问题,看看 pavucontrol 「回放」面板里有没有播放声音的程序。

离线

#8 2023-07-01 16:29:44

chrisivanovic
会员
注册时间: 2023-06-13
帖子: 66

Re: [已解决]突然出现的声音问题

mpv能正常播放,也有声音,但是pavucontrol的回放面板里没有播放声音的程序

最近编辑记录 chrisivanovic (2023-07-01 16:30:49)

离线

#9 2023-07-01 16:33:42

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,953
个人网站

Re: [已解决]突然出现的声音问题

mpv 输出里 AO 显示是什么?

离线

#10 2023-07-01 17:36:25

chrisivanovic
会员
注册时间: 2023-06-13
帖子: 66

Re: [已解决]突然出现的声音问题

AO: [pipewire] 44100hz stereo 2ch s16

离线

#11 2023-07-01 18:00:28

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,953
个人网站

Re: [已解决]突然出现的声音问题

哦,你是用 PipeWire 的啊。那你 pacman -S pipewire-pulse 一下。装完重启一下以确保 PulseAudio 服务被替换。

离线

#12 2023-07-01 18:06:34

chrisivanovic
会员
注册时间: 2023-06-13
帖子: 66

Re: [已解决]突然出现的声音问题

可以了,一切正常了,感谢指导:)

离线

页脚