Bug 1689623 - Sound crackles when shutdown AND static sound when there's network traffic
Summary: Sound crackles when shutdown AND static sound when there's network traffic
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Kysela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-17 03:53 UTC by hs.guimaraes
Modified: 2019-10-11 14:50 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
TXT file generated by alsa-info.sh (45.94 KB, text/plain)
2019-03-17 03:53 UTC, hs.guimaraes
no flags Details
TXT file generated by alsa-info in Ubuntu (46.00 KB, text/plain)
2019-03-17 19:10 UTC, hs.guimaraes
no flags Details
alsa-info kernel 4.20.16-200.fc29.x86_64 (6.53 KB, text/plain)
2019-03-19 19:37 UTC, hs.guimaraes
no flags Details

Description hs.guimaraes 2019-03-17 03:53:11 UTC
Created attachment 1544911 [details]
TXT file generated by alsa-info.sh

Description of problem:

I've installed a fresh Fedora 29 installation. I didn't connect to any wi-fi router until I was logged in for the first time, wishing to do a 'sudo dnf upgrade'. When I connect to any wi-fi router, as soon the network traffic starts I hear a static sound coming from the speakers, that seems to be synchronized with the traffic. It is not continuous. Let me give you an example:

1) connect to a wi-fi router;
2) open firefox;
3) type any valid url;
4) static sound starts as the page loads;
5) static sound disappear as the page finishes loading.

Another example:
1) connect to a wi-fi router;
2) open terminal;
3) type 'sudo dnf upgrade';
4) static sounds starts as the dnf downloads data;
5) static sound disappear as the download finishes.

The same occurs if I turn off wi-fi and connect an ethernet cable.

But there's something weird. Static sounds disappear (even with intense network  traffic) if I go to Settings>Sound. While I'm on the "Sound" tab, static sounds do not occur, whatever I do. But when I leave the Sound tab, while having network traffic, the static sounds starts after exactly 6 secs (I did it multiple times to check it).

What did I do until now:
1) followed the instructions in https://fedoraproject.org/wiki/How_to_debug_sound_problems
3) removed alsa-plugins-pulseaudio with dnf
4) searched my subsystem number on the internet for "'17aa:367b' alsa" but didn't find anything relevant
5) did the "alsa-info.sh --no-upload" command and uploaded the txt here.
6) opened this bug thread

With all the steps above, I still have the same issue.

Comment 1 hs.guimaraes 2019-03-17 04:06:30 UTC
Some notes I forgot to include and had tested:

1) having network traffic while playing a video on youtube doesn't make the static sounds, even if the youtube video is muted. It seems that while there's an application using the sound, I don't have the problem. When I close the youtube video, the static sound comes back (while there's network traffic). It works the same way with rythmbox. But with rythmbox I need to play a file for static sounds go away.

2) muting all the devices on alsamixer doesn't help either.

3) I think the hardware is ok. When I boot Windows (I have it on dual-boot) or ubuntu (live-usb) I don't have these issues.

Comment 2 Jaroslav Kysela 2019-03-17 16:58:04 UTC
Could you also attach output from 'alsa-info.sh --no-upload' from ubuntu (live) ?

Comment 3 hs.guimaraes 2019-03-17 19:07:42 UTC
Sure.

Comment 4 hs.guimaraes 2019-03-17 19:10:15 UTC
Created attachment 1545028 [details]
TXT file generated by alsa-info in Ubuntu

Comment 5 Jaroslav Kysela 2019-03-18 09:06:28 UTC
Probably it's the power save function. Ubuntu has this option off:

  ...
  !!Loaded sound module option
  ...
  -	power_save : 1
  +	power_save : 0
  ...

Try this command sequence as root (note that it will reboot your machine): 

  echo "options snd_hda_intel power_save=0,0" > /etc/modprobe.d/alsa-hda.conf
  reboot

Comment 6 hs.guimaraes 2019-03-18 11:53:28 UTC
That works. Thank you!

Anyway, will updating the system or upgrading it in the future undo this fix? Do I need to do it every time? Or can you guys make it default so people with the same hardware as me won't have to deal with it in the future?

Again, thank you for this! I'm really happy right now =)

Comment 8 hs.guimaraes 2019-03-19 19:37:35 UTC
Created attachment 1545799 [details]
alsa-info kernel 4.20.16-200.fc29.x86_64

Since update, my sound card was removed. Now I got no sound at all.

Comment 9 hs.guimaraes 2019-03-19 19:44:24 UTC
Actually, all the Kernels I have (since 4.18, that was included within the oficial ISO) don't show any sound card.

Comment 10 Jaroslav Kysela 2019-03-20 09:05:29 UTC
It was my fault. The power_save cannot be set per card, so replace the modprobe config:

  echo "options snd_hda_intel power_save=0" > /etc/modprobe.d/alsa-hda.conf
  reboot

Comment 11 hs.guimaraes 2019-03-20 13:29:16 UTC
Oh... Ok. Now is working. Thanks.


Note You need to log in before you can comment on or make changes to this bug.