Sound doesn't work on Linux

I installed PsychoPy 2022.2.0 on Ubuntu 22.04 with this method:

PsychoPy is running well except one big issue: whenever I run from psychopy import sound, the terminal would freeze and didn’t respond to any input. It also cripples the entire system, where no sound output device can be found any more. I even couldn’t play YouTube videos in a browser. The only solution is to restart the computer.

I have tried to set audiolib in prefs, but it doesn’t helped. :frowning:

Update. I have addressed this issue with the solution from this page:

Basically, you need to enter these codes in Terminal:

echo "options snd-hda-intel model=generic" | sudo tee -a /etc/modprobe.d/alsa-base.conf

echo "options snd-hda-intel dmic_detect=0" | sudo tee -a /etc/modprobe.d/alsa-base.conf

echo "blacklist snd_soc_skl" | sudo tee -a /etc/modprobe.d/blacklist.conf
1 Like