Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Sound Is Infrequently Dead After Returning From Suspend

Help for Current Versions of MX
User avatar
calinb
Forum Regular
Forum Regular
Posts: 157
Joined: Tue Jun 27, 2017 1:57 am

Sound Is Infrequently Dead After Returning From Suspend

#1

Post by calinb » Tue May 07, 2019 4:35 pm

I've had this problem ever since installing MX-17 RC1 (currently dist-upgraded to current MX-18). Perhaps once every 10 or 15 times on the average, I lose sound after a suspend ("sleep"). I usually experience the problem when returning to watch a video in Firefox (or since the Firefox cert bug fiasco, Waterfox now too). I recall it sometimes happening when returning to VLC to finish watching a video, but I use VLC much less often than the browser for videos so I'm not sure about the VLC scenario.

Settings >> Pulse Audio Volume Control only shows a dummy output device.

To get it working again, I have to open a terminal and type:

Code: Select all

sudo rmmod snd_hda_intel
sudo modprobe snd_hda_intel 
It's a fairly rare failure and I don't know how to reproduce it but I guess I'm getting tired of repeatedly executing the above cure. Any suggestions are sure appreciated!

Code: Select all

$ lsmod |grep snd
snd_hda_intel          45056  6
snd_hda_codec_hdmi     61440  1
snd_hda_codec_realtek   110592  1
snd_hda_codec_generic    90112  1 snd_hda_codec_realtek
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core           94208  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              20480  1 snd_hda_codec
snd_pcm               114688  6 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              36864  1 snd_pcm
snd                    98304  18 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
soundcore              16384  1 snd

Code: Select all

$ inxi -F
System:    Host: HP-mx17 Kernel: 4.19.0-1-amd64 x86_64 bits: 64 Desktop: Xfce 4.12.3 
           Distro: MX-18.2_x64 Continuum December 10  2017 
Machine:   Type: Laptop System: HP product: HP Laptop 15-bs0xx v: Type1ProductConfigId serial: <root required> 
           Mobo: HP model: 832C v: 25.26 serial: <root required> UEFI: Insyde v: F.10 date: 05/10/2017 
Battery:   ID-1: BAT1 charge: 26.4 Wh condition: 30.2/31.1 Wh (97%) 
CPU:       Topology: Quad Core model: Intel Pentium N3710 bits: 64 type: MCP L2 cache: 1024 KiB 
           Speed: 628 MHz min/max: 480/2560 MHz Core speeds (MHz): 1: 513 2: 552 3: 1160 4: 2046 
Graphics:  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics driver: i915 v: kernel 
           Display: x11 server: X.Org 1.19.2 driver: intel resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 405 (Braswell) v: 4.5 Mesa 18.2.6 
Audio:     Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio 
           driver: snd_hda_intel 
           Sound Server: ALSA v: k4.19.0-1-amd64 
Network:   Device-1: Realtek RTL8188EE Wireless Network Adapter driver: rtl8188ee 
           IF: wlan0 state: up mac: XX:13:X9:1a:XX:XX 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: eth0 state: down mac: XX:60:X4:14:XX:XX
Drives:    Local Storage: total: 465.76 GiB used: 319.21 GiB (68.5%) 
           ID-1: /dev/sda vendor: Toshiba model: MQ01ABF050 size: 465.76 GiB 
Partition: ID-1: / size: 360.15 GiB used: 318.99 GiB (88.6%) fs: ext4 dev: /dev/sda6 
           ID-2: swap-1 size: 4.00 GiB used: 132.9 MiB (3.2%) fs: swap dev: /dev/sda7 
Sensors:   System Temperatures: cpu: 47.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 188 Uptime: 4d 23h 56m Memory: 3.76 GiB used: 1.83 GiB (48.7%) Shell: bash inxi: 3.0.33 

User avatar
Stevo
Developer
Posts: 19887
Joined: Fri Dec 15, 2006 8:07 pm

Re: Sound Is Infrequently Dead After Returning From Suspend

#2

Post by Stevo » Tue May 07, 2019 7:02 pm

The procedure I use to automatically unload my wi-fi driver at suspend and reload at resume seems like it should also work for your sound driver: https://mxlinux.org/wiki/networking/wif ... nd-issues/

User avatar
calinb
Forum Regular
Forum Regular
Posts: 157
Joined: Tue Jun 27, 2017 1:57 am

Re: Sound Is Infrequently Dead After Returning From Suspend

#3

Post by calinb » Wed May 08, 2019 12:41 am

Stevo wrote:
Tue May 07, 2019 7:02 pm
The procedure I use to automatically unload my wi-fi driver at suspend and reload at resume seems like it should also work for your sound driver: https://mxlinux.org/wiki/networking/wif ... nd-issues/
Thanks for the tip, Stevo. I did it. The procedure doesn't seem to have hurt anything. Time will tell if it helps!

User avatar
calinb
Forum Regular
Forum Regular
Posts: 157
Joined: Tue Jun 27, 2017 1:57 am

Re: Sound Is Infrequently Dead After Returning From Suspend

#4

Post by calinb » Fri May 17, 2019 12:35 am

Well it didn't work, Stevo. Rather, it completely breaks suspend (won't suspend at all). I usually suspend by simply closing the lid of my laptop and it too me a while to realize suspend wasn't working at all :duh: nor does it work from the shutdown menu. I removed the /etc/pm/config.d file and at least suspend now functions again.

cdugan
Forum Novice
Forum  Novice
Posts: 6
Joined: Sun May 08, 2011 8:23 pm

Re: Sound Is Infrequently Dead After Returning From Suspend

#5

Post by cdugan » Sun Aug 11, 2019 5:38 pm

Has anyone found a solution to this issue yet? I am using the KDE version of MX 18.3 on a Lenovo ThinkPad T450s laptop. After a few weeks of no problems, I opened the lid after letting my laptop suspend on close, and the sound was gone. As was the case in calinb's initial post, the volume control widget only showed a dummy output device, instead of the usual builtin audio analog stereo, and audio digital stereo (HDMI) devices (and an audio analog stereo "capture" device). I tried to find a way to reset the audio but could not find instructions that helped. After a reboot, all three devices came back and everything worked.

However, it happened again. a reboot (but not a logoff) again reset everything - but it was frustrating that I had no idea what was happening - or why it was. It was also frustrating to have to act like I'm using windows, and reboot to get things working. The third, or fourth time that it happened a reboot no longer solved the issue. By resetting VLN to use the analog device as the default - and resetting the default in the MX Tools "select sound" application to the analog device, I got sound back in VLN, but not in Firefox. Eventually, by changing and re-changing settings in the KDE configure audio volume application I got sound back in Firefox, but I'm not sure why. Everything worked again, for a few weeks of closing and opening the laptop. However, yesterday, once again after opening the lid sound was gone. I could not change settings to get sound in Firefox. However, I did get the sound volume widget to show the playback devices (but not the capture device) and I can now at least use VLN with sound. I'm not sure how long this will last, and I would like to get sound back for Firefox.

Here is my "Quick System Info" output:

Code: Select all

System:    Host: mx18 Kernel: 4.19.0-1-amd64 x86_64 bits: 64 compiler: gcc v: 6.3.0 Desktop: KDE Plasma 5.8.6 
           Distro: MX-18.3_x64 Continuum March 14  2018 base: Debian GNU/Linux 9 (stretch) 
Machine:   Type: Laptop System: LENOVO product: 20BWS0PJ00 v: ThinkPad T450s serial: <filter> 
           Mobo: LENOVO model: 20BWS0PJ00 v: SDK0E50510 WIN serial: <filter> UEFI: LENOVO v: JBET72WW (1.36 ) 
           date: 02/23/2019 
Battery:   ID-1: BAT0 charge: 21.5 Wh condition: 22.3/23.2 Wh (96%) model: SONY 45N1111 status: Unknown 
           ID-2: BAT1 charge: 42.7 Wh condition: 44.9/56.2 Wh (80%) model: LGC 45N1735 status: Unknown 
CPU:       Topology: Dual Core model: Intel Core i7-5600U bits: 64 type: MT MCP arch: Broadwell rev: 4 
           L2 cache: 4096 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 20751 
           Speed: 1295 MHz min/max: 500/3200 MHz Core speeds (MHz): 1: 1295 2: 1391 3: 1357 4: 1399 
Graphics:  Device-1: Intel HD Graphics 5500 vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
           Display: x11 server: X.Org 1.19.2 driver: modesetting unloaded: fbdev,vesa resolution: 1600x900~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 5500 (Broadwell GT2) v: 4.5 Mesa 18.2.6 
           direct render: Yes 
Audio:     Device-1: Intel Broadwell-U Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:03.0 
           Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Lenovo driver: snd_hda_intel 
           v: kernel bus ID: 00:1b.0 
           Sound Server: ALSA v: k4.19.0-1-amd64 
Network:   Device-1: Intel Ethernet I218-LM vendor: Lenovo driver: e1000e v: 3.2.6-k port: 3080 bus ID: 00:19.0 
           IF: eth0 state: down mac: <filter> 
           Device-2: Intel Wireless 7265 driver: iwlwifi v: kernel port: efa0 bus ID: 03:00.0 
           IF: wlan0 state: up mac: <filter> 
Drives:    Local Storage: total: 931.51 GiB used: 421.41 GiB (45.2%) 
           ID-1: /dev/sda vendor: Western Digital model: WD10JPVT-24A1YT0 size: 931.51 GiB 
Partition: ID-1: / size: 49.25 GiB used: 7.55 GiB (15.3%) fs: ext4 dev: /dev/sda2 
           ID-2: /home size: 848.70 GiB used: 413.86 GiB (48.8%) fs: ext4 dev: /dev/sda4 
           ID-3: swap-1 size: 17.67 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3 
Sensors:   System Temperatures: cpu: 65.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 0 
Repos:     Active apt repos in: /etc/apt/sources.list.d/antix.list 
           1: deb http://la.mxrepo.com/antix/stretch/ stretch main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
           2: deb http://security.debian.org/ stretch/updates main contrib non-free
           3: deb http://deb.debian.org/debian/ stretch-backports main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://la.mxrepo.com/mx/repo/ stretch main non-free
           No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:      Processes: 218 Uptime: 3h 36m Memory: 11.61 GiB used: 3.04 GiB (26.1%) Init: SysVinit runlevel: 5 
           Compilers: gcc: 6.3.0 Shell: bash v: 4.4.12 inxi: 3.0.33 
I also tried the command line option suggested by calinb, in the original post, but that failed with the first command:

Code: Select all

cmdugan@mx18:~
$ sudo rmmod snd_hda_intel
[sudo] password for cmdugan: 
rmmod: ERROR: Module snd_hda_intel is in use
I did some research and found that there might be a dependency that I could check for with lsmod, and a suggestion to use modprobe instead of rmmod to get around the error if lsmode shows that there is not another module using the module (as it did) - to no avail:

Code: Select all

$ lsmod | grep snd_hda_intel
snd_hda_intel          45056  8
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core           94208  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_pcm               114688  6 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd                    98304  23 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,thinkpad_acpi,snd_pcm
cmdugan@mx18:~
$ sudo modprobe -rf snd_hda_intel
[sudo] password for cmdugan: 
modprobe: FATAL: Module snd_hda_intel is in use.
Since I cannot remove the module, I cannot reinstall it to see if this fix works like it did for calinb.

I would really like to find a way to get sound back for Firefox - even if it's a kludge. But I would also like to know why it is intermittently failing after closing and opening the lid.

Thanks for any advice that anyone can provide.

User avatar
calinb
Forum Regular
Forum Regular
Posts: 157
Joined: Tue Jun 27, 2017 1:57 am

Re: Sound Is Infrequently Dead After Returning From Suspend

#6

Post by calinb » Sun Aug 11, 2019 6:15 pm

cdugan wrote:
Sun Aug 11, 2019 5:38 pm
Has anyone found a solution to this issue yet? <snip>
I've not found a bug fix yet. I just continue to use my terminal history and "bang" the commands, as I described above:

Code: Select all

sudo rmmod snd_hda_intel
sudo modprobe snd_hda_intel 
Funny--it just happened to me again today while watching/suspending & resuming Youtube on Waterfox. If Stevo or others could suggest an appropriate place to file a bug report, I'd be happy to do so.

cdugan
Forum Novice
Forum  Novice
Posts: 6
Joined: Sun May 08, 2011 8:23 pm

Re: Sound Is Infrequently Dead After Returning From Suspend

#7

Post by cdugan » Sun Aug 11, 2019 9:41 pm

That's unfortunate.

I would also file a bug report if I knew where (and how, since it's intermittent) to do so.

Since your solution does not work, does anyone know where I can find instructions on taking out the module and reinstalling it given the problems that I mentioned in my original response?

Thanks for the quick reply.

User avatar
JayM
Qualified MX Guide
Posts: 1873
Joined: Tue Jan 08, 2019 4:47 am

Re: Sound Is Infrequently Dead After Returning From Suspend

#8

Post by JayM » Sun Aug 11, 2019 10:23 pm

It's already been reported, but if you two want to you can register accounts on bugs.mxlinux.org and add your comments containing your specific information and details. Than extra info might help Dolphin Oracle in fixing it as I see the bug has been assigned to him.
https://bugs.mxlinux.org/show_bug.cgi?id=72
Please read How To Ask For Help and How to Break Your System.
MX User Manual: hold down ALT and press F1. Further information may be found in the MX Wiki.

cdugan
Forum Novice
Forum  Novice
Posts: 6
Joined: Sun May 08, 2011 8:23 pm

Re: Sound Is Infrequently Dead After Returning From Suspend

#9

Post by cdugan » Mon Aug 12, 2019 1:44 am

JayM wrote:
Sun Aug 11, 2019 10:23 pm
It's already been reported, but if you two want to you can register accounts on bugs.mxlinux.org and add your comments containing your specific information and details. Than extra info might help Dolphin Oracle in fixing it as I see the bug has been assigned to him.
https://bugs.mxlinux.org/show_bug.cgi?id=72
Thanks for the link. Apparently my problem is worse - as restarting Firefox, rebooting, the solution suggested by calinb, and the suggestion in the bug report (/usr/bin/pasuspender /bin/true) all fail to get my sound back in Firefox. Would my information still be useful to this bug report? Or should a new one be posted?

Since it's possible that something that I changed in an attempt to fix the problem may have made it worse, is there any diagnostic program that I can use to find out what is going wrong? If it's Pulse Audio, can it be removed and reinstalled? Or, do I need to change distributions (which I would regret as Mepis was my favorite distribution, until it apparently died, and MX seems to be the closest that I can get to Mepis).

User avatar
JayM
Qualified MX Guide
Posts: 1873
Joined: Tue Jan 08, 2019 4:47 am

Re: Sound Is Infrequently Dead After Returning From Suspend

#10

Post by JayM » Mon Aug 12, 2019 1:56 am

You could try booting from a fresh burn of the live USB and see if you can duplicate the problem.

Also, are you having exactly the same issue as the original poster (no sound after resuming from suspend but only every once in a while) or does it happen for you every single time? If the latter, yours may be a different problem that needs some troubleshooting done in a new topic as it might be due to something about your MX installation or computer rather than an Xfce or MX bug.
Please read How To Ask For Help and How to Break Your System.
MX User Manual: hold down ALT and press F1. Further information may be found in the MX Wiki.

Post Reply

Return to “MX Help”