[SOLVED] No Sound on New Computer

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
fletcher1978
Level 1
Level 1
Posts: 14
Joined: Sun Oct 28, 2018 7:24 am

[SOLVED] No Sound on New Computer

Post by fletcher1978 »

I have been setting up my new computer over the last week. Installed Mint 20 Cinnamon fresh over the Windows 10 (no dual-boot, just Mint). Everything seems to be working except the sound.

Code: Select all

inxi -SMA gives me:
System:
  Host: fletcher-HP-Desktop-M01-F0xxx Kernel: 5.4.0-40-generic x86_64 
  bits: 64 Desktop: Cinnamon 4.6.6 Distro: Linux Mint 20 Ulyana 
Machine:
  Type: Desktop System: HP product: HP Desktop M01-F0xxx v: N/A 
  serial: <superuser/root required> 
  Mobo: HP model: 8643 v: SMVB serial: <superuser/root required> UEFI: AMI 
  v: F.12 date: 01/14/2020 
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  driver: snd_rn_pci_acp3x 
  Device-3: AMD Family 17h HD Audio driver: snd_hda_intel 
  Sound Server: ALSA v: k5.4.0-40-generic 
And I have tried everything on this page: https://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/ (I might have different hardware)
Have also checked out: http://mreen.epizy.com/SoundFixTips.html?i=1 with no luck

I really want to get my Spotify on, so any help would be greatly appreciated.
Last edited by fletcher1978 on Fri Jul 17, 2020 7:09 am, edited 1 time in total.
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

Hi fletcher1978,

I have never seen this driver before:

Code: Select all

driver: snd_rn_pci_acp3x
A quick search reveals this is brand spanking new, with kernel support just being added 2 months ago as per here and here.

That would lead me to believe it'll be a little while before that support trickles down to our level. However, we'll see if there's anything we can do about it in the meantime. Please run this command and paste the output:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
That will have a URL on the last line pointing to your sound setup that might assist in getting at least some sound working until the proper support is there.
fletcher1978
Level 1
Level 1
Posts: 14
Joined: Sun Oct 28, 2018 7:24 am

Re: No Sound on New Computer

Post by fletcher1978 »

Came up with this:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2039 100 2039 0 0 4531 0 --:--:-- --:--:-- --:--:-- 4531
cat: '/sys/module/acp3x_rn/parameters/*': No such file or directory
https://termbin.com/v9nmy


Problems with trying to be a casual Linux user just cause I hate windows
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

Okay, the output was certainly new. Let's try to force the use of the legacy snd-hda-intel driver and see if that makes your audio work with this:

Code: Select all

sudo tee /etc/modprobe.d/alsa-fix.conf <<<'options snd-intel-dspcfg dsp_driver=1'
Reboot after running that then test the sound.
fletcher1978
Level 1
Level 1
Posts: 14
Joined: Sun Oct 28, 2018 7:24 am

Re: No Sound on New Computer

Post by fletcher1978 »

Still nothing. I guess I will just have to wait until there is support introduced for this sound card.

Fortunately, I don't get a lot of chances to listen to music at home.
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

Well, run the curl command again with the above parameter still set just in case. It could be a simple config issue at this point.
fletcher1978
Level 1
Level 1
Posts: 14
Joined: Sun Oct 28, 2018 7:24 am

Re: No Sound on New Computer

Post by fletcher1978 »

Actually think I'll swap out the sound card when I get paid next week. Everything else about the computer is great, but I miss being able to spin some tunes in the mornings.
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

I just had another look at your sound setup. I see 3 cards on the system, but the actual built-in card has it's Profile set to Off. Not saying this will make a difference, but changing it's profile on the Configuration tab of PulseAudio Volume Control to Analog Stereo Duplex might help. I say might, because the Profiles are not showing as available.

It's also possible the newest version of pulseaudio is conflicting with your system as it is for some other users. We can check you version with apt policy pulseaudio to see if you're running the latest.
kyoko
Level 1
Level 1
Posts: 4
Joined: Sat Jul 11, 2020 5:43 pm

Re: No Sound on New Computer

Post by kyoko »

I'm having the same audio issue in Mint 20 Cinnamon (kernel version 5.7.*8) on a new Lenovo IdeaPad Slim 7. I'm getting no audio from the laptop speakers except for an intermittent crackling noise.

inxi -SMA output:

Code: Select all

System:
  Host: IdeaPad-Slim-7 Kernel: 5.7.8-050708-generic x86_64 bits: 64 
  Desktop: Cinnamon 4.6.6 Distro: Linux Mint 20 Ulyana 
Machine:
  Type: Laptop System: LENOVO product: 82A5 v: IdeaPad Slim 7 14ARE05 
  serial: <superuser/root required> 
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN 
  serial: <superuser/root required> UEFI: LENOVO v: DMCN24WW 
  date: 04/01/2020 
Audio:
  Device-1: AMD driver: snd_hda_intel 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A 
  Device-3: AMD Family 17h HD Audio driver: snd_hda_intel 
  Sound Server: ALSA v: k5.7.8-050708-generic 
curl output before forcing legacy snd-hda-intel:

Code: Select all

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2039  100  2039    0     0  12743      0 --:--:-- --:--:-- --:--:-- 12743
dmesg: read kernel buffer failed: Operation not permitted
https://termbin.com/w9x5
curl output after forcing legacy snd-hda-intel:

Code: Select all

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2039  100  2039    0     0  11718      0 --:--:-- --:--:-- --:--:-- 11718
dmesg: read kernel buffer failed: Operation not permitted
https://termbin.com/27l5
When attempting to change the profile from within PulseAudio, the duplex profile shows as "Analog Stereo Duplex (unavailable)".

PulseAudio version:

Code: Select all

pulseaudio:
  Installed: 1:13.99.1-1ubuntu3.3
  Candidate: 1:13.99.1-1ubuntu3.3
  Version table:
 *** 1:13.99.1-1ubuntu3.3 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:13.99.1-1ubuntu3.2 500
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
     1:13.99.1-1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
Any additional advice is much appreciated :)
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

Hi kyoko, and welcome to the forum.

How are you trying to listen to audio. With just a very quick check, the pre-force-legacy-driver showed your built-in audio card was muted:

Code: Select all

Sink #1
	State: SUSPENDED
	Name: alsa_output.pci-0000_03_00.6.analog-stereo
	Description: Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 8
	Mute: yes
	Volume: front-left: 22932 /  35% / -27.36 dB,   front-right: 22932 /  35% / -27.36 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
I'll continue looking through the output, as I'm suspecting it's not going to be that easy to fix this.
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

Well, there's something weird still. I assume simply unmuting via alsamixer -c1 won't be enough. Also, both outputs gave no results for dmesg which is really odd. See if it works locally:

Code: Select all

dmesg | grep -C1 -E 'ALSA|HDA|sof|HDMI|snd[_-]|sound|hda.codec|hda.intel'
And the legacy driver forcing isn't really necessary in your case, as it was already being used, at least for your output.

You're now the third person I've seen with something similar to this:

Code: Select all

Audio:
  Device-1: AMD driver: snd_hda_intel 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A 
  Device-3: AMD Family 17h HD Audio driver: snd_hda_intel
That middle one is where the weird results the OP had for the driver showed. The first is your HDMI audio card. I'm somewhat suspecting the new pulseaudio version could be the issue, but I haven't yet heard back from the users I've instructed to try downgrading it to see if my command was correct. If you're brave enough to try, this is the instruction I have given:

Code: Select all

apt update && apt install libpulse-mainloop-glib0=1:13.99.1-1ubuntu3.2 libpulse0=1:13.99.1-1ubuntu3.2 libpulsedsp=1:13.99.1-1ubuntu3.2 pulseaudio=1:13.99.1-1ubuntu3.2 pulseaudio-module-bluetooth=1:13.99.1-1ubuntu3.2 pulseaudio-utils=1:13.99.1-1ubuntu3.2
If you want to wait for up to a day, I should have some confirmation by then if it works properly.
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

And here's a fix that might work for you: viewtopic.php?p=1844746#p1844746

I have to say I don't understand why it's necessary, but it worked for that user, and is easily undoable.
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

MrEen wrote:
Sat Jul 11, 2020 7:48 pm
If you're brave enough to try, this is the instruction I have given:

Code: Select all

apt update && apt install libpulse-mainloop-glib0=1:13.99.1-1ubuntu3.2 libpulse0=1:13.99.1-1ubuntu3.2 libpulsedsp=1:13.99.1-1ubuntu3.2 pulseaudio=1:13.99.1-1ubuntu3.2 pulseaudio-module-bluetooth=1:13.99.1-1ubuntu3.2 pulseaudio-utils=1:13.99.1-1ubuntu3.2
The command has been confirmed to help a user with their sound issue, so I would suggest trying that. We're not certain your issue is the newest pulseaudio update, but the new one will be available in the Update Manager again when your done.
kyoko
Level 1
Level 1
Posts: 4
Joined: Sat Jul 11, 2020 5:43 pm

Re: No Sound on New Computer

Post by kyoko »

Oops, I think I probably just had my laptop speakers muted when I ran the curl command, which is why it was showing as muted.

I downgraded my version of PulseAudio with the cmd you provided, but that didn't seem to fix the issue, still no audio + crackling noise when trying to play audio. I also uncommented both lines of the code in the specified .conf file, but no luck.

Here's the curl output after both changes:

Code: Select all

/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2039  100  2039    0     0  11718      0 --:--:-- --:--:-- --:--:-- 11718
dmesg: read kernel buffer failed: Operation not permitted
https://termbin.com/vj24g
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

Okay, revert the change to /etc/pulse/default.pa. For you, the second line should have ended with hw:1,0, but that's no matter, as the first line didn't work anyway.

This new sound card is most likely what's giving us issues, and at the moment, I'm not sure what to try.

The only thing I can suggest at the moment is to try forcing the new driver and see if that makes a difference for you, now that we've made sure pulseaudio has been reverted to a known working version. Run this then reboot:

Code: Select all

sudo tee /etc/modprobe.d/alsa-fix.conf <<<'options snd-intel-dspcfg dsp_driver=3'
Then get the output of this to post here:

Code: Select all

dmesg | grep -C1 -E 'ALSA|HDA|sof|HDMI|snd[_-]|sound|hda.codec|hda.intel'
kyoko
Level 1
Level 1
Posts: 4
Joined: Sat Jul 11, 2020 5:43 pm

Re: No Sound on New Computer

Post by kyoko »

So this is strange...this morning I reinstalled Mint 20 kernel version 5.4 and audio worked out of the box! The only thing I did differently during install was check "install multimedia codecs" instead of installing after install.

While my audio started working, I noticed my microphone/input devices in kernel 5.4 weren't working. However, once upgrading the kernel to 5.8-rc1, input devices seems to be working. The internal laptop microphone now captures audio, but the audio is distorted. I think this is just a matter of waiting for additional hardware support in newer kernel versions.

Thanks again for your help Mr Een, it's much appreciated!
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

You're most welcome. I'm also at a loss as to why you had different results this time. The dmesg command from my previous post might provide a clue, but as we didn't get that output from the curl command, we have nothing to compare it to, so it might just remain a mystery.
fletcher1978
Level 1
Level 1
Posts: 14
Joined: Sun Oct 28, 2018 7:24 am

Re: No Sound on New Computer

Post by fletcher1978 »

Sorry to revive this, but I already have most of my info here.

Got it to stop saying Dummy Output, now says HDMI /Display Port Raven/Raven2/-Fenghuang HDMI/-DP Audio Comtroller

Still no sound. Have done everything here: http://mreen.epizy.com/SoundFixTips.html?i=2

Then have inxi -Fxz

Code: Select all

System:
  Kernel: 5.4.0-40-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.6.6 Distro: Linux Mint 20 Ulyana 
  base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop System: HP product: HP Desktop M01-F0xxx v: N/A 
  serial: <filter> 
  Mobo: HP model: 8643 v: SMVB serial: <filter> UEFI: AMI v: F.12 
  date: 01/14/2020 
Battery:
  Device-1: hidpp_battery_0 model: Logitech K520 
  charge: 70% (should be ignored) status: Discharging 
  Device-2: hidpp_battery_1 model: Logitech Wireless Mouse M510 
  charge: 55% (should be ignored) status: Discharging 
CPU:
  Topology: Quad Core model: AMD Ryzen 5 3400G with Radeon Vega Graphics 
  bits: 64 type: MT MCP arch: Zen+ rev: 1 L2 cache: 2048 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 59092 
  Speed: 1334 MHz min/max: 1400/3700 MHz Core speeds (MHz): 1: 1257 2: 1256 
  3: 1257 4: 1258 5: 1256 6: 1255 7: 1257 8: 1266 
Graphics:
  Device-1: AMD Picasso vendor: Hewlett-Packard driver: amdgpu v: kernel 
  bus ID: 07:00.0 
  Display: x11 server: X.Org 1.20.8 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa resolution: 1600x900~60Hz 
  OpenGL: renderer: AMD RAVEN (DRM 3.35.0 5.4.0-40-generic LLVM 10.0.0) 
  v: 4.6 Mesa 20.0.8 direct render: Yes 
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel 
  v: kernel bus ID: 07:00.1 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  driver: snd_rn_pci_acp3x v: kernel bus ID: 07:00.5 
  Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 07:00.6 
  Sound Server: ALSA v: k5.4.0-40-generic 
Network:
  Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter 
  vendor: Hewlett-Packard driver: rtl8821ce v: v5.5.2.1_35598.20191029 
  port: e000 bus ID: 04:00.0 
  IF: wlp4s0 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: d000 bus ID: 05:00.0 
  IF: enp5s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 704.24 GiB used: 525.23 GiB (74.6%) 
  ID-1: /dev/nvme0n1 model: KBG30ZMV256G KIOXIA size: 238.47 GiB 
  ID-2: /dev/sda type: USB vendor: Samsung model: HD502HI size: 465.76 GiB 
Partition:
  ID-1: / size: 233.24 GiB used: 111.22 GiB (47.7%) fs: ext4 
  dev: /dev/nvme0n1p2 
Sensors:
  System Temperatures: cpu: 43.0 C mobo: N/A gpu: amdgpu temp: 43 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 271 Uptime: 7m Memory: 5.78 GiB used: 1.53 GiB (26.6%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.16 
  inxi: 3.0.38 
And aplay -l

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: Generic Digital [Generic Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC671 Analog [ALC671 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
And pacmd list-sinks while Spotify is playing wiht no sound

Code: Select all

1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_07_00.1.hdmi-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 347.10 ms
	max request: 63 KiB
	max rewind: 63 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 371.52 ms; range is 0.50 .. 371.52 ms
	card: 0 <alsa_card.pci-0000_07_00.1>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "Generic Digital"
		alsa.id = "Generic Digital"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "3"
		alsa.card = "0"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfcac8000 irq 104"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:07:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.product.id = "15de"
		device.product.name = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"
		device.string = "hdmi:0"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "hdmi-stereo"
		device.profile.description = "Digital Stereo (HDMI)"
		device.description = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller Digital Stereo (HDMI)"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "video-display"
	active port: <hdmi-output-0>
User avatar
MrEen
Level 20
Level 20
Posts: 11790
Joined: Mon Jun 12, 2017 8:39 pm

Re: No Sound on New Computer

Post by MrEen »

Hi fletcher1978,

I should have asked, how are you trying to listen to sound? Speaker/headphones? Or HDMI connected device? I'm suspecting speakers/headphones.

Does this produce any sound:

Code: Select all

aplay -D hw:1,0 /usr/share/sounds/alsa/Front_Center.wav
It is possible you need a much newer kernel like kyoko installed who had the same sound device as you, though on a different machine. Installing out-of-distro kernels is not something I've done. I'll look into that.
fletcher1978
Level 1
Level 1
Posts: 14
Joined: Sun Oct 28, 2018 7:24 am

Re: No Sound on New Computer

Post by fletcher1978 »

Using headphones (meant to mention that a long time ago, actually). That command line gave me a couple of pops in my headphones, but no real sound. I have actually been able to get some popping or mild static (not sure the best way to describe it) in my headphones several times.

And thank you, MrEen, for the time you have put in here.
Post Reply

Return to “Sound, Multimedia, & Codecs”