SOLVED - Reinstall the volume system by default

Questions about applications and software
Forum rules
Before you post please read how to get help
KIMW
Level 3
Level 3
Posts: 152
Joined: Sat Nov 12, 2016 1:43 pm
Location: Italy

SOLVED - Reinstall the volume system by default

Post by KIMW » Mon Jul 01, 2019 11:31 am

I always had issue with sound since I switched to Linux Mint and now it's getting worse and worse, so I would like advices to reinstall the volume system by default. Thanks in advance for your help.
Last edited by KIMW on Thu Sep 05, 2019 9:11 am, edited 1 time in total.
Distro: Linux Mint 18.3 KDE
Laptop: Dell Latitude-E7470. RAM 16GB. Dual core: Intel Core i7-6600U. Graphic Card: Intel Sky Lake..

User avatar
MrEen
Level 14
Level 14
Posts: 5079
Joined: Mon Jun 12, 2017 8:39 pm

Re: Reinstall the volume system by default

Post by MrEen » Mon Jul 01, 2019 3:44 pm

In your other thread you said you've already re-installed alsa and pulseaudio, so try deleting the files in /home/YourUserName/.config/pulse, then look for any files in .config or /home like .pulse or .asoundrc or asound.state and delete those as well. Finally if /var/lib/alsa/asound.state exists, delete that as well.

Reboot then test the sound.

From your earlier experiments, there may still be some other files in .config that might be interferring, but the above may be enough.

If there's still an issue after that, paste back the output of inxi -Fxz and aplay -l please.

KIMW
Level 3
Level 3
Posts: 152
Joined: Sat Nov 12, 2016 1:43 pm
Location: Italy

Re: Reinstall the volume system by default

Post by KIMW » Wed Jul 03, 2019 12:22 pm

Hi MrEen,

In fact I installed lots of different sound apps, beside alsa and pulseaudio because those two seemed not to work properly.
I deleted the files you mentioned but I still have issue. Sometimes it works, sometimes it does not.

To get the sound from Youtube on Firefox I need to have pulseaudio, but then if I want to watch a movie on SMPlayer the sound does not work anymore. Today I discovered that if I end pulseaudio process via my System Activity, the sound comes back, so I suppose the problem is from that...

Output of inxi -Fxz:

Code: Select all

System:    Host: E7470 Kernel: 4.15.0-54-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: KDE Plasma 5.8.9 (Qt 5.6.1) Distro: Linux Mint 18.3 Sylvia
Machine:   System: Dell (portable) product: Latitude E7470
           Mobo: Dell model: 0T6HHJ v: A00 Bios: Dell v: 1.17.5 date: 07/11/2017
CPU:       Dual core Intel Core i7-6600U (-HT-MCP-) cache: 4096 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 11232
           clock speeds: max: 3400 MHz 1: 600 MHz 2: 520 MHz 3: 537 MHz 4: 554 MHz
Graphics:  Card: Intel Skylake GT2 [HD Graphics 520] bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.00hz
           GLX Renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
           GLX Version: 3.0 Mesa 18.0.5 Direct Rendering: Yes
Audio:     Card Intel Sunrise Point-LP HD Audio driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.15.0-54-generic
Network:   Card-1: Intel Ethernet Connection I219-LM
           driver: e1000e v: 3.2.6-k bus-ID: 00:1f.6
           IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Card-2: Intel Wireless 8260 driver: iwlwifi bus-ID: 01:00.0
           IF: wlp1s0 state: down mac: <filter>
           Card-3: Intel Device 093c bus-ID: 02:00.0
           IF: N/A state: N/A speed: N/A duplex: N/A mac: N/A
Drives:    HDD Total Size: 512.1GB (91.4% used)
           ID-1: /dev/sda model: SanDisk_X400_M.2 size: 512.1GB
Partition: ID-1: / size: 416G used: 394G (100%) fs: ext4 dev: /dev/sda7
           ID-2: swap-1 size: 17.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda8
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 45.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 227 Uptime: 3:04 Memory: 8164.3/15860.2MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 

Output of aplay -l:

The program 'aplay' is currently not installed. You can install it by typing:
sudo apt install alsa-utils


Should I re-install alsa-utils?
Thanks for your help!
Last edited by Moem on Wed Jul 17, 2019 8:08 am, edited 1 time in total.
Reason: Adding [code] tags instead of [c] tags. They retain some formatting that makes your output easier to read.
Distro: Linux Mint 18.3 KDE
Laptop: Dell Latitude-E7470. RAM 16GB. Dual core: Intel Core i7-6600U. Graphic Card: Intel Sky Lake..

User avatar
Flemur
Level 17
Level 17
Posts: 7206
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Reinstall the volume system by default

Post by Flemur » Wed Jul 03, 2019 12:41 pm

KIMW wrote:
Wed Jul 03, 2019 12:22 pm
To get the sound from Youtube on Firefox I need to have pulseaudio,
To run firefox with alsa and without pulseaudio, you just do this:

Code: Select all

apulse /path/to/firefox 
Package "apulse" is now in the repos.
Today I discovered that if I end pulseaudio process via my System Activity, the sound comes back, so I suppose the problem is from that...
I stopped using pulseaudio years ago; it's just another layer of trouble.

Try removing pulseaudio - but check for tons of other (poorly designed) packages being removed, in which case, just disable it (and reboot) and try running with just alsa.
Should I re-install alsa-utils?
Yes!
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

KIMW
Level 3
Level 3
Posts: 152
Joined: Sat Nov 12, 2016 1:43 pm
Location: Italy

Re: Reinstall the volume system by default

Post by KIMW » Wed Jul 03, 2019 12:58 pm

Thanks for the suggestion Flemur.
I re-installed alsa-utils.
I did not find "apulse" package in the repos...
Distro: Linux Mint 18.3 KDE
Laptop: Dell Latitude-E7470. RAM 16GB. Dual core: Intel Core i7-6600U. Graphic Card: Intel Sky Lake..

User avatar
Flemur
Level 17
Level 17
Posts: 7206
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Reinstall the volume system by default

Post by Flemur » Wed Jul 03, 2019 1:11 pm

KIMW wrote:
Wed Jul 03, 2019 12:58 pm
I did not find "apulse" package in the repos...
Oops I see you're on 18.3 (19.1 has it in repos)
When I had 18.3 I built it with the source from here, along with unusually good instructions:

Code: Select all

https://github.com/i-rinat/apulse
Firefox is the only program I use it on.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

User avatar
MrEen
Level 14
Level 14
Posts: 5079
Joined: Mon Jun 12, 2017 8:39 pm

Re: Reinstall the volume system by default

Post by MrEen » Wed Jul 03, 2019 4:14 pm

Before eliminating pulseaudio, SMPlayer is probably using either alsa directly, or the Hardware directly. Go to Options > Preferences > Audio tab and select pulse as the Output driver. That should allow cooperation between SMPlayer and Firefox.

It's worth a shot I believe, but Flemur's suggestion may be the most appropriate for you as well.

Good luck.

KIMW
Level 3
Level 3
Posts: 152
Joined: Sat Nov 12, 2016 1:43 pm
Location: Italy

Re: Reinstall the volume system by default

Post by KIMW » Mon Jul 15, 2019 8:38 am

So... I have tried many different possibilities and yet it does not work fully.

I installed apulse and tried to make it work with SMPlayer and Firefox but it did not work at all.

I uninstalled pulseaudio completely because with it I only had my sounds system working (no sounds on Firefox and no sound on SMPlayer).

Then I carried on installing and un-installing audio apps and the only things that works at the moment is SMPlayer.
Distro: Linux Mint 18.3 KDE
Laptop: Dell Latitude-E7470. RAM 16GB. Dual core: Intel Core i7-6600U. Graphic Card: Intel Sky Lake..

User avatar
MrEen
Level 14
Level 14
Posts: 5079
Joined: Mon Jun 12, 2017 8:39 pm

Re: Reinstall the volume system by default

Post by MrEen » Mon Jul 15, 2019 4:13 pm

Well, while playing something in SMPlayer, what's the output of sudo fuser -v /dev/snd/*

I'm probably not going to be able to help much, as my experience centers around pulseaudio and alsa. With any luck, the output from the above will give me some clue as to where to try fixing.

One more thing worth trying. Maybe you have some permissions issues. You can find out and fix them them in one go with sudo chown -Rc $USER:$USER $HOME

Good luck.

KIMW
Level 3
Level 3
Posts: 152
Joined: Sat Nov 12, 2016 1:43 pm
Location: Italy

Re: Reinstall the volume system by default

Post by KIMW » Tue Jul 16, 2019 8:46 am

Thanks for trying to help me MrEen.

sudo fuser -v /dev/snd/* output is:
USER PID ACCESS COMMAND
/dev/snd/controlC0: oo 1549 F.... kmix

If you have more knowledge with pulseaudio perhaps I should reinstall it and make some more experimentation...
Distro: Linux Mint 18.3 KDE
Laptop: Dell Latitude-E7470. RAM 16GB. Dual core: Intel Core i7-6600U. Graphic Card: Intel Sky Lake..

User avatar
MrEen
Level 14
Level 14
Posts: 5079
Joined: Mon Jun 12, 2017 8:39 pm

Re: Reinstall the volume system by default

Post by MrEen » Tue Jul 16, 2019 3:12 pm

KIMW wrote:
Tue Jul 16, 2019 8:46 am
Thanks for trying to help me MrEen.

sudo fuser -v /dev/snd/* output is:
USER PID ACCESS COMMAND
/dev/snd/controlC0: oo 1549 F.... kmix

If you have more knowledge with pulseaudio perhaps I should reinstall it and make some more experimentation...
I'll keep trying to help as long as you want. I'd suggest reinstalling pulseaudio then run these two commands in the terminal to get a thorough output of your sound system: cd ~/ followed by wget http://www.alsa-project.org/alsa-info.sh -O alsa-info.sh && bash alsa-info.sh

That script will allow you to upload the results or save them locally. The choice is yours. Just paste back the output or URL and we'll go from there.

KIMW
Level 3
Level 3
Posts: 152
Joined: Sat Nov 12, 2016 1:43 pm
Location: Italy

Re: Reinstall the volume system by default

Post by KIMW » Wed Jul 17, 2019 7:43 am

MrEen wrote:
Tue Jul 16, 2019 3:12 pm
I'd suggest reinstalling pulseaudio then run these two commands in the terminal to get a thorough output of your sound system: cd ~/ followed by wget http://www.alsa-project.org/alsa-info.sh -O alsa-info.sh && bash alsa-info.sh
Thanks. I did that and the only thing I got was a file named "alsa-info.txt.CyaGGi4SvW" but when I open it there is nothing inside...
Distro: Linux Mint 18.3 KDE
Laptop: Dell Latitude-E7470. RAM 16GB. Dual core: Intel Core i7-6600U. Graphic Card: Intel Sky Lake..

User avatar
MrEen
Level 14
Level 14
Posts: 5079
Joined: Mon Jun 12, 2017 8:39 pm

Re: Reinstall the volume system by default

Post by MrEen » Wed Jul 17, 2019 8:05 am

Does cat /tmp/alsa-info.txt.CyaGGi4SvW produce anything?

KIMW
Level 3
Level 3
Posts: 152
Joined: Sat Nov 12, 2016 1:43 pm
Location: Italy

Re: Reinstall the volume system by default

Post by KIMW » Wed Jul 17, 2019 8:16 am

Yes, but it's an EXTREMELY long text. Shall I paste it here?
Distro: Linux Mint 18.3 KDE
Laptop: Dell Latitude-E7470. RAM 16GB. Dual core: Intel Core i7-6600U. Graphic Card: Intel Sky Lake..

KIMW
Level 3
Level 3
Posts: 152
Joined: Sat Nov 12, 2016 1:43 pm
Location: Italy

Re: Reinstall the volume system by default

Post by KIMW » Wed Jul 17, 2019 8:54 am

I have to go now so I'll be in touch with you later on.
Distro: Linux Mint 18.3 KDE
Laptop: Dell Latitude-E7470. RAM 16GB. Dual core: Intel Core i7-6600U. Graphic Card: Intel Sky Lake..

User avatar
MrEen
Level 14
Level 14
Posts: 5079
Joined: Mon Jun 12, 2017 8:39 pm

Re: Reinstall the volume system by default

Post by MrEen » Wed Jul 17, 2019 2:22 pm

Yeah, I know it's huge. It should fit inside code tags like you did with your inxi output.

User avatar
Moem
Level 19
Level 19
Posts: 9372
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Reinstall the volume system by default

Post by Moem » Wed Jul 17, 2019 2:25 pm

MrEen wrote:
Wed Jul 17, 2019 2:22 pm
inside code tags like you did with your inxi output.
*cough*
Well, I did help a little there...
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

User avatar
MrEen
Level 14
Level 14
Posts: 5079
Joined: Mon Jun 12, 2017 8:39 pm

Re: Reinstall the volume system by default

Post by MrEen » Wed Jul 17, 2019 2:27 pm

Ut oh! :D

We may need your assistance again. Sorry I missed that! :wink:

@KIMW: you could rerun the script with cd ~/ followed by bash alsa-info.sh and this time have it upload the results. At the end it will give you a URL you can paste here.

KIMW
Level 3
Level 3
Posts: 152
Joined: Sat Nov 12, 2016 1:43 pm
Location: Italy

Re: Reinstall the volume system by default

Post by KIMW » Wed Jul 17, 2019 4:11 pm

Distro: Linux Mint 18.3 KDE
Laptop: Dell Latitude-E7470. RAM 16GB. Dual core: Intel Core i7-6600U. Graphic Card: Intel Sky Lake..

User avatar
MrEen
Level 14
Level 14
Posts: 5079
Joined: Mon Jun 12, 2017 8:39 pm

Re: Reinstall the volume system by default

Post by MrEen » Wed Jul 17, 2019 6:33 pm

I forgot the most important question. How are you trying to hear sound? Headphones? Built-in Speakers? Speakers plugged into the Line Out port?

Also, the output got chopped off for some reason. Please post the output of dmesg | grep -C1 -E 'ALSA|HDA|HDMI|snd[_-]|sound|hda.codec|hda.intel' then I'll have the complete picture.

Post Reply

Return to “Software & Applications”