Pulseaudio distortion, pops and crackles... still...

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Post Reply
el_octogono
Level 1
Level 1
Posts: 3
Joined: Mon May 28, 2018 12:54 pm

Pulseaudio distortion, pops and crackles... still...

Post by el_octogono » Mon May 28, 2018 7:43 pm

Hi everyone!

I'm new to Mint and pretty newbie to Linux. I've been using Ubuntu for some years and switched this year. I have a M-Audio Delta66 audio card. I had the same issues in Ubuntu in the past but somehow I got them sorted. Now I'm having this problem in Mint, and I can't find any solution. I've tried many of the suggested tweaks in Pulseaudio, such as setting "tsched=0" or making a fixed sample rate, with no luck.

However I found that the distortion stops if I put Mint on Suspend and wake her. The distortion starts again if I play a sound or music of a different rate, such as playing an audio in 44.100hz in XPlayer and then watching a video in 48.000hz on YouTube. So... I believe there is some residue or module, or something that doesn't get cleaned or updated every time the sample rate changes, something that DOES when waking Mint from suspension.

I'm not a Linux savvy, but I can get things done. Any help is pretty welcome, and thanks in advance!!!

User avatar
MrEen
Level 5
Level 5
Posts: 820
Joined: Mon Jun 12, 2017 8:39 pm

Re: Pulseaudio distortion, pops and crackles... still...

Post by MrEen » Mon May 28, 2018 9:14 pm

I honestly can't say if this will help or not, but increasing the default sample rate might be the fix. This site has the details.

User avatar
phd21
Level 16
Level 16
Posts: 6335
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Pulseaudio distortion, pops and crackles... still...

Post by phd21 » Mon May 28, 2018 10:39 pm

Hi el_octogono,

Welcome to the wonderful world of Linux Mint and its excellent forum!

It would help to know more about your system setup. If you run "inxi -Fxzd" and "lsusb" from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.

1.) You can try deleting the hidden pulse audio user configuration folder (~/.config/pulse/) from your file manager or from the console terminal prompt, then rebooting which will recreate the pulse audio configuration folder. I did this to correct some audio issues after some updates and it worked.

Code: Select all

rm -r ~/.config/pulse/
2.) If problem still exists, see post below. I would not recommend removing pulse audio like the last comment in the post below, but editing the pulse audio file to add "tsched=0" to the one line may help.

[SOLVED] Logictech Z313 speakers popping/crackling when not playing audio - Linux Mint Forums
viewtopic.php?f=48&t=269976&sid=04c15d3 ... 6c198725f4

This uses the "xed" text editor to edit the pulse audio default file.

Code: Select all

sudo xed /etc/pulse/default.pa
Locate "load-module module-udev-detect" (line 55 on mine) and add a space and " tsched=0" to the end of that line, save the file, exit the file, restart.

The line should like the one below

Code: Select all

load-module module-udev-detect tsched=0
Hope this helps ...
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Hoser Rob
Level 11
Level 11
Posts: 3973
Joined: Sat Dec 15, 2012 8:57 am

Re: Pulseaudio distortion, pops and crackles... still...

Post by Hoser Rob » Tue May 29, 2018 7:59 am

AFAIK Pulse doesn't resample unless there's software mixing involved. You can see if a media player is resampling easily, just play the file and while it's playing run this in the terminal:

Code: Select all

cat /proc/asound/card?/stream0 | grep Momentary

el_octogono
Level 1
Level 1
Posts: 3
Joined: Mon May 28, 2018 12:54 pm

Re: Pulseaudio distortion, pops and crackles... still...

Post by el_octogono » Tue May 29, 2018 9:23 am

phd21 wrote:
Mon May 28, 2018 10:39 pm

It would help to know more about your system setup. If you run "inxi -Fxzd" and "lsusb" from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.
Hi! PHD21, thanks for your time.

Here is the output of inxi -Fxzd

Code: Select all

System:    Host: pato-desktop Kernel: 4.13.0-43-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.3 Sylvia
Machine:   Mobo: ASRock model: FM2A55M-HD+
           Bios: American Megatrends v: P1.50 date: 11/20/2013
CPU:       Quad core AMD A8-6600K APU with Radeon HD Graphics (-MCP-) cache: 8192 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 31144
           clock speeds: max: 3900 MHz 1: 2074 MHz 2: 2476 MHz 3: 1895 MHz
           4: 1896 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Richland [Radeon HD 8570D]
           bus-ID: 00:01.0
           Display Server: X.Org 1.18.4 drivers: ati,radeon (unloaded: fbdev,vesa)
           Resolution: 1440x900@59.89hz
           GLX Renderer: AMD ARUBA (DRM 2.50.0 / 4.13.0-43-generic, LLVM 5.0.0)
           GLX Version: 3.0 Mesa 17.2.8 Direct Rendering: Yes
Audio:     Card-1 VIA ICE1712 [Envy24] PCI Multi-Channel I/O Controller
           driver: snd_ice1712 ports: d040 d070 d060 d000 bus-ID: 02:05.0
           Card-2 Advanced Micro Devices [AMD/ATI] Trinity HDMI Audio Controller
           driver: snd_hda_intel bus-ID: 00:01.1
           Card-3 KYE Systems (Mouse Systems)
           driver: USB Audio usb-ID: 001-003
           Sound: Advanced Linux Sound Architecture v: k4.13.0-43-generic
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: e000 bus-ID: 01:00.0
           IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 2660.6GB (34.4% used)
           ID-1: /dev/sda model: WDC_WD1600AABS size: 160.0GB
           ID-2: /dev/sdb model: WDC_WD10EZEX size: 1000.2GB
           ID-3: /dev/sdc model: WDC_WD5000AAKS size: 500.1GB
           ID-4: USB /dev/sdd model: 10EAVS_External size: 1000.2GB
           Optical: /dev/sr0 model: HL-DT-ST DVDRAM GH22NS40
           rev: NL02 dev-links: cdrom,cdrw,dvd,dvdrw
           Features: speed: 48x multisession: yes
           audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition: ID-1: / size: 143G used: 41G (30%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 3.95GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 0.0C mobo: N/A gpu: -4.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 189 Uptime: 3 min Memory: 1040.3/3620.3MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 
...and lsusb

Code: Select all

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0458:708f KYE Systems Corp. (Mouse Systems) 
Bus 001 Device 002: ID 1058:1100 Western Digital Technologies, Inc. My Book Essential Edition 2.0 (WDH1U)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

1.) You can try deleting the hidden pulse audio user configuration folder (~/.config/pulse/) from your file manager or from the console terminal prompt, then rebooting which will recreate the pulse audio configuration folder. I did this to correct some audio issues after some updates and it worked.

Code: Select all

rm -r ~/.config/pulse/
I'll try deleting the folder an report back.
2.) If problem still exists, see post below. I would not recommend removing pulse audio like the last comment in the post below, but editing the pulse audio file to add "tsched=0" to the one line may help.

[SOLVED] Logictech Z313 speakers popping/crackling when not playing audio - Linux Mint Forums
viewtopic.php?f=48&t=269976&sid=04c15d3 ... 6c198725f4

The line should like the one below

Code: Select all

load-module module-udev-detect tsched=0
Hope this helps ...
I've already tried adding "tsched=0" with no luck.

I'll try your suggestions and post any changes. Thanks!

el_octogono
Level 1
Level 1
Posts: 3
Joined: Mon May 28, 2018 12:54 pm

Re: Pulseaudio distortion, pops and crackles... still...

Post by el_octogono » Tue May 29, 2018 9:49 am

phd21 wrote:
Mon May 28, 2018 10:39 pm
1.) You can try deleting the hidden pulse audio user configuration folder (~/.config/pulse/) from your file manager or from the console terminal prompt, then rebooting which will recreate the pulse audio configuration folder. I did this to correct some audio issues after some updates and it worked.
Hi again. I deleted the folder. Something changed because I now have a "welcome" sound when starting Mint... but everything else is the same. :(
phd21 wrote:
Mon May 28, 2018 10:39 pm
2.) If problem still exists, see post below. I would not recommend removing pulse audio like the last comment in the post below, but editing the pulse audio file to add "tsched=0" to the one line may help.

Locate "load-module module-udev-detect" (line 55 on mine) and add a space and " tsched=0" to the end of that line, save the file, exit the file, restart.
I tried again adding "tsched=0" but nothing changed...
I even disabled the on board HDMI audio, which i wasn't aware of... but got nothing...

Post Reply

Return to “Sound, Multimedia, & Codecs”