the problem with pulseaudio sound[DONE]

the output HDMI ports are unplugged, if the sound turn off, everything go normal, but if turn on, that will be a collapse…….

i have fixed by following this…..

https://chatgpt.com/share/6739b1eb-697c-800f-9d59-258a9f897802

STEP1

the first thing is make sure pulseaudio can work in a correct way.

actually, this should not be the first step, but it is the most quickly step.

1
2
3
4
rm -rf ~/.config/pulse
pulseaudio -k
pulseaudio --start
(systemctl --user restart pulseaudio)

STEP2

1
2
sudo alsactl init
sudo systemctl restart sound.target

STEP3

1
2
3
4
sudo modprobe snd_hda_intel
(if error occur, restart pulseaudio
pulseaudio -k
pulseaudio --start)

STEP4

1
alsamixer;

if there is blocks, change it by keyboard-m.

STEP5

use

1
aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Center.wav

to make sure someport can make sound, then change port in ‘pavucontrol’ to let audio work.

(need to use command ‘aplay -l’ to check the port and change ‘1,0’ to the correct number. )

STEP6

1
pavucontrol;

use this tool to chooese right port or speaker.

Above is the complete procedure to solve this problem, but is not necessary to execute all instructions like this(in most case, just remove the blocks by alsamixer can work). I think the reason of this problem occurs (after a update actually) is the kernel can’t change device correctly and can’t remove the blocks in time, I need to change it and remove the blocks(sometimes) by myself.

Maybe it can be solved by appoint the default Ports(or change the logic about blocks) can help.


update in 2024/11/17

play with arch homepage

click here to come back to play with arch
homepage.