[SOLVED] Audio hiccups in 19.1 fresh install

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Post Reply
ibozzie
Level 1
Level 1
Posts: 13
Joined: Wed Jun 13, 2012 6:21 pm
Location: State College, PA

[SOLVED] Audio hiccups in 19.1 fresh install

Post by ibozzie » Wed May 08, 2019 10:36 am

I recently installed 19.1 MATE, replacing an older MATE installation (18.something? I can't remember). Previously, I had no issues with audio. Now, with the same hardware, I'm experiencing occasional skips/hiccups in audio playback, once every 5 minutes or so. Specifically, it loops back on itself, like the audio buffer hasn't had a chance to fully replenish itself and is repeating the last N milliseconds of audio. This is regardless of audio source, whether it's playing from a local file or streaming from an online source. The only major change in the installation is that my `/home` partition is on a newer, larger hard drive rather than the spinning rust it was on before. The OS is where it was before, on an SSD. I've replaced the video card, but I assume that shouldn't affect audio (maybe that's a wrong assumption?). My gut reaction is that Pulse is somehow responsible (I've had to uninstall it in the past, but that was years ago), but since this is so intermittent, I'm not sure how to diagnose it. Have there been any changes to audio playback that might have introduced this problem? How might I go about trying to figure this out? Thanks much.

Code: Select all

➜  ~ inxi -Fxz
System:
  Host: air-temple Kernel: 4.15.0-20-generic x86_64 bits: 64 compiler: gcc 
  v: 7.3.0 Desktop: MATE 1.20.1 Distro: Linux Mint 19.1 Tessa 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Desktop Mobo: MSI model: B150M MORTAR (MS-7972) v: 2.0 
  serial: <filter> UEFI [Legacy]: American Megatrends v: C.50 
  date: 05/17/2016 
CPU:
  Topology: Quad Core model: Intel Core i5-6500 bits: 64 type: MCP 
  arch: Skylake-S rev: 3 L2 cache: 6144 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 25536 
  Speed: 800 MHz min/max: 800/3600 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 
Graphics:
  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: ZOTAC driver: nouveau 
  v: kernel bus ID: 01:00.0 
  Display: x11 server: X.Org 1.19.6 driver: nouveau 
  unloaded: fbdev,modesetting,vesa 
  resolution: 1920x1080~60Hz, 1680x1050~60Hz 
  OpenGL: renderer: NV124 v: 4.3 Mesa 18.2.8 direct render: Yes 
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio 
  vendor: Micro-Star MSI Sunrise Point-H driver: snd_hda_intel v: kernel 
  bus ID: 00:1f.3 
  Device-2: NVIDIA GM204 High Definition Audio vendor: ZOTAC 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 
  Device-3: Midiman KeyStudio type: USB driver: snd-usb-audio bus ID: 1-3:2 
  Sound Server: ALSA v: k4.15.0-20-generic 
Network:
  Device-1: Realtek RTL8192CE PCIe Wireless Network Adapter 
  driver: rtl8192ce v: kernel port: d000 bus ID: 02:00.0 
  IF: wlp2s0 state: down mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: 2.3LK-NAPI port: c000 
  bus ID: 04:00.0 
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 2.05 TiB used: 50.16 GiB (2.4%) 
  ID-1: /dev/sda vendor: Samsung model: SSD 840 EVO 250GB size: 232.89 GiB 
  ID-2: /dev/sdb vendor: Hitachi model: HUA723020ALA640 size: 1.82 TiB 
Partition:
  ID-1: / size: 60.22 GiB used: 13.96 GiB (23.2%) fs: ext4 dev: /dev/sda5 
  ID-2: /home size: 1.78 TiB used: 36.21 GiB (2.0%) fs: ext4 dev: /dev/sdb5 
  ID-3: swap-1 size: 7.63 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb1 
Sensors:
  System Temperatures: cpu: 46.0 C mobo: 29.8 C gpu: nouveau temp: 42 C 
  Fan Speeds (RPM): N/A gpu: nouveau fan: 1168 
Info:
  Processes: 192 Uptime: 22m Memory: 31.36 GiB used: 3.00 GiB (9.6%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: zsh v: 5.4.2 
  inxi: 3.0.27 

Code: Select all

➜  ~ pactl set-sink-mute 0 0 ; pactl list sinks ; lspci -v | grep -A7 -i "audio" ; lsmod
Sink #0
	State: SUSPENDED
	Name: alsa_output.pci-0000_00_1f.3.analog-stereo
	Description: Built-in Audio Analog Stereo
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 44100Hz
	Channel Map: front-left,front-right
	Owner Module: 9
	Mute: no
	Volume: front-left: 28180 /  43% / -21.99 dB,   front-right: 28180 /  43% / -21.99 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC892 Analog"
		alsa.id = "ALC892 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xdf320000 irq 126"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a170"
		device.product.name = "Sunrise Point-H HD Audio"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "Realtek ALC892"
		alsa.components = "HDA:10ec0892,1462f972,00100302"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Ports:
		analog-output-lineout: Line Out (priority: 9900, available)
		analog-output-headphones: Headphones (priority: 9000, not available)
	Active Port: analog-output-lineout
	Formats:
		pcm
00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Sunrise Point-H HD Audio
	Flags: bus master, fast devsel, latency 32, IRQ 126
	Memory at df320000 (64-bit, non-prefetchable) [size=16K]
	Memory at df300000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

--
01:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1)
	Subsystem: ZOTAC International (MCO) Ltd. GM204 High Definition Audio Controller
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at df080000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8192CE PCIe Wireless Network Adapter (rev 01)
Module                  Size  Used by
nfsv3                  40960  1
nfs_acl                16384  1 nfsv3
rpcsec_gss_krb5        36864  0
auth_rpcgss            61440  1 rpcsec_gss_krb5
nfsv4                 577536  0
nfs                   262144  5 nfsv4,nfsv3
lockd                  90112  2 nfs,nfsv3
grace                  16384  1 lockd
fscache                61440  2 nfsv4,nfs
pci_stub               16384  1
vboxpci                24576  0
vboxnetadp             28672  0
vboxnetflt             28672  0
vboxdrv               471040  3 vboxnetadp,vboxnetflt,vboxpci
ip6t_REJECT            16384  4
nf_reject_ipv6         16384  1 ip6t_REJECT
ipt_REJECT             16384  3
nf_reject_ipv4         16384  1 ipt_REJECT
xt_tcpudp              16384  10
xt_owner               16384  2
ip6table_filter        16384  1
ip6_tables             28672  1 ip6table_filter
iptable_filter         16384  1
snd_hda_codec_hdmi     49152  1
hid_uclogic            16384  0
intel_rapl             20480  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
snd_usb_audio         196608  0
joydev                 24576  0
snd_usbmidi_lib        32768  1 snd_usb_audio
input_leds             16384  0
coretemp               16384  0
kvm_intel             204800  0
kvm                   593920  1 kvm_intel
arc4                   16384  2
irqbypass              16384  1 kvm
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
rtl8192ce              65536  0
ghash_clmulni_intel    16384  0
rtl_pci                32768  1 rtl8192ce
rtl8192c_common        57344  1 rtl8192ce
rtlwifi                77824  3 rtl_pci,rtl8192ce,rtl8192c_common
pcbc                   16384  0
mac80211              778240  3 rtl_pci,rtl8192ce,rtlwifi
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
aesni_intel           188416  0
snd_hda_codec_realtek   102400  1
snd_rawmidi            32768  2 snd_seq_midi,snd_usbmidi_lib
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
snd_hda_intel          40960  4
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel,aesni_intel
intel_cstate           20480  0
snd_hda_codec         126976  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
intel_rapl_perf        16384  0
snd_hda_core           81920  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              20480  2 snd_hda_codec,snd_usb_audio
snd_seq                65536  2 snd_seq_midi_event,snd_seq_midi
snd_pcm                98304  5 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_hda_core,snd_hda_codec_hdmi
intel_wmi_thunderbolt    16384  0
serio_raw              16384  0
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
cfg80211              622592  2 mac80211,rtlwifi
snd_timer              32768  2 snd_seq,snd_pcm
snd                    81920  21 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_usb_audio,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_usbmidi_lib,snd_seq_device,snd_hda_codec_realtek,snd_pcm
idma64                 20480  0
virt_dma               16384  1 idma64
soundcore              16384  1 snd
mei_me                 40960  0
shpchp                 36864  0
mei                    90112  1 mei_me
intel_lpss_pci         20480  0
intel_lpss             16384  1 intel_lpss_pci
intel_pch_thermal      16384  0
acpi_pad              180224  0
mac_hid                16384  0
sch_fq_codel           20480  6
parport_pc             36864  1
ppdev                  20480  0
sunrpc                335872  22 auth_rpcgss,rpcsec_gss_krb5,nfsv4,nfs_acl,lockd,nfs,nfsv3
lp                     20480  0
parport                49152  3 lp,parport_pc,ppdev
ip_tables              28672  1 iptable_filter
x_tables               40960  8 ipt_REJECT,xt_owner,ip_tables,iptable_filter,xt_tcpudp,ip6t_REJECT,ip6table_filter,ip6_tables
autofs4                40960  2
btrfs                1122304  0
xor                    24576  1 btrfs
zstd_compress         163840  1 btrfs
raid6_pq              114688  1 btrfs
dm_mirror              24576  0
dm_region_hash         20480  1 dm_mirror
dm_log                 20480  2 dm_mirror,dm_region_hash
hid_generic            16384  0
usbhid                 49152  0
hid                   118784  3 hid_generic,usbhid,hid_uclogic
nouveau              1716224  3
i2c_algo_bit           16384  1 nouveau
ttm                   106496  1 nouveau
drm_kms_helper        167936  1 nouveau
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
mxm_wmi                16384  1 nouveau
fb_sys_fops            16384  1 drm_kms_helper
psmouse               147456  0
r8169                  86016  0
ahci                   36864  3
drm                   401408  6 nouveau,ttm,drm_kms_helper
mii                    16384  1 r8169
libahci                32768  1 ahci
wmi                    24576  3 intel_wmi_thunderbolt,mxm_wmi,nouveau
video                  40960  1 nouveau
pinctrl_sunrisepoint    28672  0
Last edited by ibozzie on Mon May 13, 2019 12:20 pm, edited 1 time in total.

ibozzie
Level 1
Level 1
Posts: 13
Joined: Wed Jun 13, 2012 6:21 pm
Location: State College, PA

Re: Audio hiccups in 19.1 fresh install

Post by ibozzie » Wed May 08, 2019 11:18 am

I've tried the following, as per this thread: viewtopic.php?f=48&t=291155

Code: Select all

sudo apt-get remove --purge alsa-base pulseaudio

sudo apt-get install alsa-base pulseaudio

sudo alsa force-reload
I'll report back as to whether this has solved the issue or not.

User avatar
Pjotr
Level 21
Level 21
Posts: 13764
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Audio hiccups in 19.1 fresh install

Post by Pjotr » Wed May 08, 2019 11:53 am

Update your kernel.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

ibozzie
Level 1
Level 1
Posts: 13
Joined: Wed Jun 13, 2012 6:21 pm
Location: State College, PA

Re: Audio hiccups in 19.1 fresh install

Post by ibozzie » Wed May 08, 2019 3:57 pm

The reinstall didn't fix it; I'll try updating the kernel. Thanks!

User avatar
MrEen
Level 15
Level 15
Posts: 5568
Joined: Mon Jun 12, 2017 8:39 pm

Re: Audio hiccups in 19.1 fresh install

Post by MrEen » Wed May 08, 2019 9:15 pm

Hi ibozzie.

If the new kernel doesn't fix you, try this:
If you're experiencing glitches, skips, pops or crackling in your audio playback, it's quite possibly caused by the timer-based scheduling pulseaudio now uses. Disable timer-based scheduling this way:

Users of 18.3 and earlier versions of Mint type this in the terminal: gksudo xed /etc/pulse/default.pa
Users of 19 and later versions of Mint type this in the terminal: xed admin:///etc/pulse/default.pa
Find the line that says load-module module-udev-detect and change it to load-module module-udev-detect tsched=0
Save the file, then run pulseaudio -k in the terminal and test your sound
Good luck.

ibozzie
Level 1
Level 1
Posts: 13
Joined: Wed Jun 13, 2012 6:21 pm
Location: State College, PA

Re: Audio hiccups in 19.1 fresh install

Post by ibozzie » Thu May 09, 2019 3:39 pm

Thanks for that suggestion! I upgraded my kernel to 4.18.0-18, which didn't fix the issue, nor unfortunately did disabling the timer-based scheduling. Anything else I ought to try?

EDIT: I think disabling timer-based scheduling did help; it's less blatant of an issue now, but I'm still getting occasional skips/hiccups. They're shorter now.

User avatar
MrEen
Level 15
Level 15
Posts: 5568
Joined: Mon Jun 12, 2017 8:39 pm

Re: Audio hiccups in 19.1 fresh install

Post by MrEen » Fri May 10, 2019 2:12 pm

You mentioned in your first post having changed the video card. Are you listening to sound via HDMI? If so, maybe the nouveau driver is to blame. Check the Driver Manager to see if there's a recommended nVidia driver for your card.

ibozzie
Level 1
Level 1
Posts: 13
Joined: Wed Jun 13, 2012 6:21 pm
Location: State College, PA

Re: Audio hiccups in 19.1 fresh install

Post by ibozzie » Fri May 10, 2019 4:19 pm

No, the sound isn't going through the video card -- I'm using the audio jack on my motherboard.

I've purged pulseaudio, and so far the issue seems to be gone. Amusingly, nothing else seems to be affected. I'm wondering what the purpose of pulse is, especially if it's continuing to cause these kinds of issues after many years.

User avatar
MrEen
Level 15
Level 15
Posts: 5568
Joined: Mon Jun 12, 2017 8:39 pm

Re: Audio hiccups in 19.1 fresh install

Post by MrEen » Fri May 10, 2019 10:12 pm

Well, pulseaudio works well for most people. Without it, I don't think you can have 2 programs being able to access the sound card at the same time. Also, Firefox and maybe some other programs will need a workaround to get sound.

I started helping with sound issues about 14 months ago, and your system has some of the red flags based on that history. Most have been fixable, but not all. Seeing Sunrise Point-H, and bus ID: 00:1f.3 has been rather common for me. Skylake a little less so, but not much.

If you ever decide to reinstall pulseaudio, delete the files in ~/.config/pulse then restart the sound daemon with pulseaudio -k and maybe that will get things working properly.

Good luck to you.

ibozzie
Level 1
Level 1
Posts: 13
Joined: Wed Jun 13, 2012 6:21 pm
Location: State College, PA

Re: Audio hiccups in 19.1 fresh install

Post by ibozzie » Mon May 13, 2019 12:20 pm

Interesting. Thanks for the help; I appreciate it! Good to know re: my system. For what it's worth, I haven't noticed any issues with multiple sound sources in Pulse's absence. I did do a little reading up and can see some of the advantages for Pulse in certain situations.

User avatar
MrEen
Level 15
Level 15
Posts: 5568
Joined: Mon Jun 12, 2017 8:39 pm

Re: [SOLVED] Audio hiccups in 19.1 fresh install

Post by MrEen » Mon May 13, 2019 2:36 pm

I am glad it's working well for you.

PulseAudio is a bit like systemd. A few love it, a lot are indifferent, and quite a few absolutely hate it.

As long as things keep working well for you, there's no reason to change anything.

Take care.

Post Reply

Return to “Sound, Multimedia, & Codecs”