#New Lenovo Laptop. Can't get sound

72 messages · Page 1 of 1 (latest)

dark cargo
#

Putting my forum post here to maybe reach out to more. I have just updated to the latest BIOS and that did not help. I also tried running a portable version of Windows, and my speakers worked there out of the box, so at least they aren't broken. Using bluetooth headphones gives me sound though.

rough tusk
#

Please screenshot sound settings window too

dark cargo
#

ok, this is awkward. I gave up for a bit and the pc went to sleep. When I came back I wanted to try an audio file again for fun and just like that it works. Can't really say what did it to help others, but hey, at least it works! For reference, I had been rebooting every time I did a change of some sort, and it didn't want to work no matter what.

rough tusk
#

Is the sound still there if you reboot a few more times?

dark cargo
#

I'll give it a try. Crossing fingers

dark cargo
rough tusk
#

Screenshot the sound settings too

dark cargo
#

the one in pavucontrol?

rough tusk
#

That or system (cinnamon) sound settings

dark cargo
#

could be the driver that has an easier time to start from sleep? That it needs some help to get going after a reboot?

rough tusk
#

Also, go to the terminal and run

dmesg -Hx > dmesg.txt

then send dmesg.txt from your home folder here

dark cargo
rough tusk
#

Do a little test please. Restart, and if you won't have sound - go to the terminal and run

sudo systemctl --user restart wireplumber pipewire pipewire-pulse

see if the sound comes back

dark cargo
#

ok

#

I restarted and lost sound. Tried to run the command, but got: "Failed to connect to bus: No medium found"

rough tusk
#

Provide a screenshot including the command

dark cargo
rough tusk
#

hmm.. ok, which one is giving that one out? Do that one at a time, please.

sudo systemctl --user restart wireplumber
sudo systemctl --user restart pipewire
sudo systemctl --user restart pipewire-pulse

dark cargo
#

all of them for some reason

#

could try and make it sleep then run the commands?

rough tusk
#

Ah my bad... try without sudo

systemctl --user restart wireplumber pipewire pipewire-pulse

dark cargo
#

ok

#

the command went through succesfully, but didn't give me sound

rough tusk
#

make another screenshot of audio settings while you don't have a sound. Output devices and configuration.

dark cargo
rough tusk
#

Ok, and see if sleep - wake cycle gets the sound back.

dark cargo
#

yeah it works then

rough tusk
#

interesting...

dark cargo
#

Of course, here are the instructions translated into English.


Solution: Automate the "wake-up" with a system service

This is a slightly technical, but very effective and permanent solution. Follow these steps in your terminal.

1. Create a small script to restart the audio driver

This command opens a text editor to create the script file:

sudo nano /usr/local/bin/restart-audio.sh

Paste the following text exactly as it is:

#!/bin/bash
modprobe -r snd_hda_intel
modprobe snd_hda_intel

Press Ctrl+X, then Y, and Enter to save and exit.

2. Make the script executable

sudo chmod +x /usr/local/bin/restart-audio.sh

3. Create a systemd service to run the script

This command creates the service file:

sudo nano /etc/systemd/system/restart-audio.service

Paste the following text exactly as it is:

[Unit]
Description=Restart audio driver to fix boot issue
After=systemd-user-sessions.service

[Service]
Type=oneshot
ExecStart=/usr/local/bin/restart-audio.sh

[Install]
WantedBy=multi-user.target

Press Ctrl+X, then Y, and Enter to save and exit.

4. Enable the new service

This command ensures the service runs automatically at every startup:

sudo systemctl enable restart-audio.service

After you've done this, reboot your PC. The sound should now work from the start every time, without you having to close the lid.

This is Gemini's suggestion. Do you think that's worth trying? The formatting is probably bad, but hopefully you can read it

#

(formatting ended up perfectly haha)

rough tusk
#

Reloading the driver? Well see if it works first. Restart until you don't have a sound, then go to the terminal and use

sudo modprobe -r snd_hda_intel
sudo modprobe snd_hda_intel

see if that works

dark cargo
#

great will do

#

good thing to test it first, it doesn't seem to work. And I got "modprobe: FATAL: Module snd_hda_intel is in use." when using the first command (-r)

rough tusk
#

Btw, mint 22 comes with kernel 6.8 and you have 6.14. I'm guessing it didn't work on 6.8 either?

dark cargo
#

for some reason it never came to mind to test the sound before I updated.

rough tusk
#

Mint usually saves a few old ones, see if you can boot to 6.8 and check it

dark cargo
#

alright

#

it's the same on 6.8. The sleep trick works there too

rough tusk
#

Alright, then screenshot the output of these commands

lspci -nnD | grep -i audio
cat /sys/module/snd_hda_intel/parameters/power_save
cat /sys/module/snd_hda_intel/parameters/power_save_controller

dark cargo
rough tusk
#

Alright, let's try disabling power saving for sound and see if that affects it.

In the terminal type

sudo xed /etc/modprobe.d/disable-sound-powersave.conf

in the opened empty text file type

options snd_hda_intel power_save=0 power_save_controller=N

save it, close the editor and restart

#

After restarting screenshot these commands again

cat /sys/module/snd_hda_intel/parameters/power_save
cat /sys/module/snd_hda_intel/parameters/power_save_controller

dark cargo
rough tusk
#

hmm....

dark cargo
#

think i formatted the file wrong or something

#

1 sec

rough tusk
#

Show us

cat /etc/modprobe.d/disable-sound-powersave.conf

please

dark cargo
#

hmm, it ended up correctly it looks like

rough tusk
#

it needs to be 1 line, not 2

dark cargo
#

it's just that I tried opening the file again and when I clicked save I kept getting these errors

#

aha, i see

dark cargo
#

ok, formatted it to one line now, and still the same.

rough tusk
#

show the file again

dark cargo
#

I have been using the pc on battery all day, but just now thought to plug the charger in to test, but no luck with that either

rough tusk
#

The file seems correct. Close it and run

sudo update-initramfs -u

and restart, then recheck those 2 files again.

dark cargo
#

ok

#

1 and Y still.

rough tusk
#

No sound right now?

dark cargo
#

nope

rough tusk
#

Ok, then try this

sudo sh -c 'echo 0 > /sys/module/snd_hda_intel/parameters/power_save'
sudo sh -c 'echo N > /sys/module/snd_hda_intel/parameters/power_save_controller'
cat /sys/module/snd_hda_intel/parameters/power_save
cat /sys/module/snd_hda_intel/parameters/power_save_controller

screenshot the result

#

That's a number 0 not letter O, btw

dark cargo
#

Ok, I just tried to track back everything I've done since I got the computer a couple of days ago, and the first thing I did was to install TLP. Guess this has been blocking what we've been trying and also blocking the driver from loading. Fully uninstalled it now and eureka, sound is working!

Thanks a bunch for your help, even though it was a problem I made for myself in the end (was using TLP on my last Lenovo Legion laptop without problems so installed it and forgot), it was the troubleshooting with the battery saver mode that led me to it. Thanks again!

rough tusk
#

Ah.... Mint 22 now uses powerprofilectl instead of tlp, so installing both messes things up. See if you still have power management options

dark cargo
#

I do have the power management, but can't seem to find where to chose between balanced, battery saver etc

rough tusk
#

Yeah tlp messes that up I guess. First, go to software sources app, there on Maintainance tab should be "remove leftover config" button (or something like that), click that

dark cargo
#

Purge I guess? Clicked it, but didn't get the options back. Reboot maybe?

rough tusk
#

Purge residual configuration, yeah.
After that's done, go to the terminal and type

sudo apt install --reinstall power-profiles-daemon

dark cargo
#

that fixed it. thanks!!