Lenovo Yoga s740 no sound from speakers

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
User avatar
MrEen
Level 22
Level 22
Posts: 16828
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Another idea hit me. Your system might be too new for the kernel you're using. Go here and get the kernel upgraded to a 5.6 or 5.7 kernel. That might be the key here. Thought of that because of this bug report where a newer kernel is in use.
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

No problem. I did already try upgrading to 5.7.9 at an earlier stage but still no sound. Do you think it would be worthwhile upgrading again and then trying the commands you've given me to match up with Windows?

Here's the result of the pacmd command

Code: Select all

4 sink(s) available.
    index: 0
	name: <alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	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: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 341.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = ""
		alsa.id = "HDMI3 (*)"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "5"
		alsa.card = "0"
		alsa.card_name = "sof-hda-dsp"
		alsa.long_card_name = "LENOVO-81NX-LenovoYogaS740_15IRH-LNVNB161216"
		alsa.driver_name = "snd_soc_skl_hda_dsp"
		device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a348"
		device.product.name = "Cannon Lake PCH cAVS"
		device.string = "hw:sofhdadsp,5"
		device.buffering.buffer_size = "65472"
		device.buffering.fragment_size = "16320"
		device.access_mode = "mmap+timer"
		device.profile.name = "HiFi: hw:sofhdadsp,5: sink"
		device.profile.description = "HDMI3/DP3 Output"
		alsa.mixer_device = "hw:sofhdadsp"
		device.description = "Cannon Lake PCH cAVS HDMI3/DP3 Output"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		[Out] HDMI3: HDMI3/DP3 Output (priority 700, latency offset 0 usec, available: no)
			properties:
				
	active port: <[Out] HDMI3>
    index: 1
	name: <alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	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: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 1
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 341.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = ""
		alsa.id = "HDMI2 (*)"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "4"
		alsa.card = "0"
		alsa.card_name = "sof-hda-dsp"
		alsa.long_card_name = "LENOVO-81NX-LenovoYogaS740_15IRH-LNVNB161216"
		alsa.driver_name = "snd_soc_skl_hda_dsp"
		device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a348"
		device.product.name = "Cannon Lake PCH cAVS"
		device.string = "hw:sofhdadsp,4"
		device.buffering.buffer_size = "65472"
		device.buffering.fragment_size = "16320"
		device.access_mode = "mmap+timer"
		device.profile.name = "HiFi: hw:sofhdadsp,4: sink"
		device.profile.description = "HDMI2/DP2 Output"
		alsa.mixer_device = "hw:sofhdadsp"
		device.description = "Cannon Lake PCH cAVS HDMI2/DP2 Output"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		[Out] HDMI2: HDMI2/DP2 Output (priority 600, latency offset 0 usec, available: no)
			properties:
				
	active port: <[Out] HDMI2>
    index: 2
	name: <alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	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: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 2
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 341.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = ""
		alsa.id = "HDMI1 (*)"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "3"
		alsa.card = "0"
		alsa.card_name = "sof-hda-dsp"
		alsa.long_card_name = "LENOVO-81NX-LenovoYogaS740_15IRH-LNVNB161216"
		alsa.driver_name = "snd_soc_skl_hda_dsp"
		device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a348"
		device.product.name = "Cannon Lake PCH cAVS"
		device.string = "hw:sofhdadsp,3"
		device.buffering.buffer_size = "65472"
		device.buffering.fragment_size = "16320"
		device.access_mode = "mmap+timer"
		device.profile.name = "HiFi: hw:sofhdadsp,3: sink"
		device.profile.description = "HDMI1/DP1 Output"
		alsa.mixer_device = "hw:sofhdadsp"
		device.description = "Cannon Lake PCH cAVS HDMI1/DP1 Output"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		[Out] HDMI1: HDMI1/DP1 Output (priority 500, latency offset 0 usec, available: no)
			properties:
				
	active port: <[Out] HDMI1>
  * index: 3
	name: <alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	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: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 3
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 341.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = ""
		alsa.id = "HDA Analog (*)"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "sof-hda-dsp"
		alsa.long_card_name = "LENOVO-81NX-LenovoYogaS740_15IRH-LNVNB161216"
		alsa.driver_name = "snd_soc_skl_hda_dsp"
		device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a348"
		device.product.name = "Cannon Lake PCH cAVS"
		device.string = "hw:sofhdadsp"
		device.buffering.buffer_size = "65472"
		device.buffering.fragment_size = "16320"
		device.access_mode = "mmap+timer"
		device.profile.name = "HiFi: hw:sofhdadsp: sink"
		device.profile.description = "Speaker + Headphones"
		alsa.mixer_device = "hw:sofhdadsp"
		device.description = "Cannon Lake PCH cAVS Speaker + Headphones"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		[Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown)
			properties:
				
		[Out] Headphones: Headphones (priority 200, latency offset 0 usec, available: no)
			properties:
				
	active port: <[Out] Speaker>
User avatar
MrEen
Level 22
Level 22
Posts: 16828
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Yeah, I thought I had spotted a more recent kernel in one of your outputs. Still, wasn't sure if it had been tried with the sof driver.

I'm pretty sure whatever is causing this is the issue:

Code: Select all

	ports:
		[Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown)
While the Headphone output says No, I'm pretty sure if you plugged some it, it would also say unknown.

I know we sort of covered this, but is Fast Boot in the BIOS also disabled? This is different that Fast Startup in Windows, but does much the same thing.
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

With the headphones in it gives

Code: Select all

		[Out] Headphones: Headphones (priority 200, latency offset 0 usec, available: yes) 
, and the headphones work perfectly.

There doesn't seem to be any fast boot option available in the BIOS.

I'm also fairly certain when I tried updating the kernel that I tested both the sof and intel drivers, but I will give it another try.
User avatar
MrEen
Level 22
Level 22
Posts: 16828
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

LovelyShaun wrote:
Sun Jul 26, 2020 3:05 am
and the headphones work perfectly.
Ahh, was this ever the case before? Maybe we're getting close?
User avatar
MrEen
Level 22
Level 22
Posts: 16828
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

I'm thinking since the headphones work, we might want to try changing the pin for the speaker, and maybe that'll solve everything now.

If you want to try that, install alsa-tools-gui and run HDAJackRetask. When it opens, select ALC285 in the upper left, then check the Override box for pin 0x17 below that and change it to Not connected.

Next check the box for Show unconnected pins then choose a not connected pin other than 0x17 over on the left and check it's Override box and see if can be changed to Speakers (or whatever 0x17 said, maybe Internal Speakers), then click on Apply now and test the output. If it works, click on Install boot override then reboot and verify it still works. If still no sound, undo the change and try another not connected pin.

Even if a change messes things up, it can all be undone with a reboot. So test everything, remembering to always click on Apply now before testing the sound.
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Okay, I tried to do as you say, both with intel driver and sof, however I keep getting this error thrown at me when I try to click apply:
Screenshot_2020-07-26_17-30-25.png
Also this one:
Screenshot_2020-07-26_17-47-41.png
I try to kill pulseaudio with pulseaudio --kill but it restarts immediately and hdajackretask throws up either one of those two errors. "pasuspender hdajackretask" also doesn't seem to stop it from happening.

Most of the 'not connected' pins don't give me options for selecting a speaker option, but there are 4 that do. I just don't seem to be able to apply the changes.

The headphones have worked all along, which is at least something, and I could probably make do with headphone sound for most things, but speakers would be highly preferable.
User avatar
MrEen
Level 22
Level 22
Posts: 16828
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Okay, let's get a look at cat ~/.config/pulse/client.conf as I didn't know you had created that. Best to look at ls -la ~/.config/pulse as well.
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Okay, let's get a look at cat ~/.config/pulse/client.conf as I didn't know you had created that.
I wasn't aware I had created it. I have done a fresh install since most of the things I tried with the sound earlier, and as far as I'm aware since doing that I've only changed things you have instructed me to, or else I have just changed back to default what hasn't worked for me.

cat ~/.config/pulse/client.conf

Code: Select all

autospawn=no
ls -la ~/.config/pulse

Code: Select all

total 92
drwx------  2 shaun shaun  4096 Jul 26 17:25 .
drwxr-xr-x 17 shaun shaun  4096 Jul 26 23:21 ..
-rw-------  1 shaun shaun 36864 Jul 26 18:21 c4f2d44acf3c4564bf5a66409c42613f-card-database.tdb
-rw-------  1 shaun shaun    83 Jul 26 18:23 c4f2d44acf3c4564bf5a66409c42613f-default-sink
-rw-------  1 shaun shaun    86 Jul 26 18:23 c4f2d44acf3c4564bf5a66409c42613f-default-source
-rw-------  1 shaun shaun 16384 Jul 26 18:21 c4f2d44acf3c4564bf5a66409c42613f-device-volumes.tdb
-rw-------  1 shaun shaun 16384 Jul 27 19:03 c4f2d44acf3c4564bf5a66409c42613f-stream-volumes.tdb
-rw-rw-r--  1 shaun shaun    13 Jul 26 17:25 client.conf
-rw-------  1 shaun shaun   256 Jul 25 04:39 cookie
the default sink file:

Code: Select all

alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink 
default source file:

Code: Select all

alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source
User avatar
MrEen
Level 22
Level 22
Posts: 16828
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Okay, delete the sucker with this:

Code: Select all

rm ~/.config/pulse/client.conf
Then run pulseaudio -k or reboot, then see if HDAJackRetask behaves. It may not still, but the chances it will are better. I'm surprised pulseaudio even started with that client.conf superseding the proper version.
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Now I'm getting this:
Screenshot_2020-07-28_12-10-23.png
User avatar
MrEen
Level 22
Level 22
Posts: 16828
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

LovelyShaun wrote:
Mon Jul 27, 2020 10:13 pm
Now I'm getting this:

Screenshot_2020-07-28_12-10-23.png
From clicking on Apply now? It appears you may have used sudo to call hdajackreask in that case, as the path begins with /root.

I've not seen that before, but maybe a reboot before continuing would be a good idea.
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Ah sorry, my bad.

I have changed all the unconnected pins to internal speaker that will let me do so, still no sound though.
User avatar
MrEen
Level 22
Level 22
Posts: 16828
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

You know, there's a stupid little trick that works for some on the snd-hda-intel driver that might also work with the sof driver.

Headphones unplugged, play a song or video and run alsamixer in the terminal. Navigate to the Headphone column and raise it's volume. If it's already maxed out, press the m key to unmute it. Muted columns show MM at the bottom. Pressing the m key should make it change to OO.

Any luck?

If no, try the dspcfg parameter to boot using thde snd-hda-intel driver and see if it works there.
jasom
Level 1
Level 1
Posts: 1
Joined: Tue Oct 06, 2020 3:01 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by jasom »

Hi, I have same problem on same model even on Ubuntu 20.04, not only Mint 20 Ulyanov. Headphones and Bluetooth speaker works, build in "Dolby Atmos speaker system" do not works. Within dualboot installation sound works well on Win 10.
User avatar
MrEen
Level 22
Level 22
Posts: 16828
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Hi jasom, and welcome to the forum.

I don't know what you've tried already, but let's see the output of this terminal command:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
The last line of output will have a URL pointing to your sound setup.

I didn't split this off into it's own topic as the OP hasn't returned in quite some time. We might find the fix for both of you in one go here.
Post Reply

Return to “Sound, Multimedia, & Codecs”