#New Lenovo Laptop. Can't get sound
72 messages · Page 1 of 1 (latest)
Please screenshot sound settings window too
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.
Is the sound still there if you reboot a few more times?
I'll give it a try. Crossing fingers
would you look at that, Rebooting broke it again, BUT closing the lid of the laptop making it sleep then waking it again makes the sound work. I'm baffled haha
Screenshot the sound settings too
the one in pavucontrol?
That or system (cinnamon) sound settings
could be the driver that has an easier time to start from sleep? That it needs some help to get going after a reboot?
Also, go to the terminal and run
dmesg -Hx > dmesg.txt
then send dmesg.txt from your home folder here
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
ok
I restarted and lost sound. Tried to run the command, but got: "Failed to connect to bus: No medium found"
Provide a screenshot including the command
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
Ah my bad... try without sudo
systemctl --user restart wireplumber pipewire pipewire-pulse
make another screenshot of audio settings while you don't have a sound. Output devices and configuration.
Ok, and see if sleep - wake cycle gets the sound back.
yeah it works then
interesting...
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)
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
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)
Btw, mint 22 comes with kernel 6.8 and you have 6.14. I'm guessing it didn't work on 6.8 either?
for some reason it never came to mind to test the sound before I updated.
Mint usually saves a few old ones, see if you can boot to 6.8 and check it
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
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
hmm....
Show us
cat /etc/modprobe.d/disable-sound-powersave.conf
please
hmm, it ended up correctly it looks like
it needs to be 1 line, not 2
it's just that I tried opening the file again and when I clicked save I kept getting these errors
aha, i see
these are usual
ok, formatted it to one line now, and still the same.
show the file again
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
The file seems correct. Close it and run
sudo update-initramfs -u
and restart, then recheck those 2 files again.
No sound right now?
nope
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
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!
Ah.... Mint 22 now uses powerprofilectl instead of tlp, so installing both messes things up. See if you still have power management options
I do have the power management, but can't seem to find where to chose between balanced, battery saver etc
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
Purge I guess? Clicked it, but didn't get the options back. Reboot maybe?
Purge residual configuration, yeah.
After that's done, go to the terminal and type
sudo apt install --reinstall power-profiles-daemon
that fixed it. thanks!!