18.3 & ALC892: cracking sound...

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
Rhinox
Level 1
Level 1
Posts: 15
Joined: Wed Aug 16, 2017 12:26 pm

18.3 & ALC892: cracking sound...

Post by Rhinox » Thu Mar 15, 2018 4:12 pm

I have problem with LinuxMint/Cinnamon 18.3 on older PC (some i5, z68 chipset, realtek ALC892 sound chip):

Sound seems to be "cracking" a little bit, as if playback is being interrupted randomly for a few miliseconds. I tested a few audio/video players, different media-files with various encoding, it is still the same. It seems to me to be driver-related problem, quite annoying. How could I fix it?

FYI, there was windows installed on this pc previously, and this problem was not there...

deepakdeshp
Level 10
Level 10
Posts: 3427
Joined: Sun Aug 09, 2015 10:00 am

Re: 18.3 & ALC892: cracking sound...

Post by deepakdeshp » Fri Mar 16, 2018 1:30 pm

Please paste output of

Code: Select all

inxi -Fxz
in code blocks
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 19 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

Rhinox
Level 1
Level 1
Posts: 15
Joined: Wed Aug 16, 2017 12:26 pm

Re: 18.3 & ALC892: cracking sound...

Post by Rhinox » Sat Mar 17, 2018 12:54 pm

Code: Select all

$ inxi -Fxz
System:    Host: fourlix Kernel: 4.13.0-37-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: ASUSTeK model: P8Z68-V v: Rev 1.xx
           Bios: American Megatrends v: 3603 date: 11/09/2012
CPU:       Quad core Intel Core i5-2500K (-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 27198
           clock speeds: max: 5900 MHz 1: 3399 MHz 2: 3399 MHz 3: 3399 MHz 4: 3399 MHz
Graphics:  Card: NVIDIA GK110 [GeForce GTX 780] bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 drivers: nouveau (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: NVF1 GLX Version: 3.0 Mesa 17.2.8 Direct Rendering: Yes
Audio:     Card-1 NVIDIA GK110 HDMI Audio driver: snd_hda_intel bus-ID: 01:00.1
           Card-2 Intel 6 Series/C200 Series Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.13.0-37-generic
Network:   Card: Intel 82579V Gigabit Network Connection
           driver: e1000e v: 3.2.6-k port: f040 bus-ID: 00:19.0
           IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 976.2GB (12.6% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 256.1GB
           ID-2: /dev/sdb model: SAMSUNG_MZ7WD480 size: 480.1GB
           ID-3: /dev/sdc model: MKNSSDRE240GB size: 240.1GB
Partition: ID-1: / size: 184G used: 9.4G (6%) fs: ext4 dev: /dev/sda1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 31.0
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 201 Uptime: 0 min Memory: 550.2/16008.8MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0 Client: Shell (bash 4.3.481) inxi: 2.2.35

User avatar
trytip
Level 7
Level 7
Posts: 1657
Joined: Tue Jul 05, 2016 1:20 pm

Re: 18.3 & ALC892: cracking sound...

Post by trytip » Sat Mar 17, 2018 1:07 pm

install nvidia drivers first and the microcode from the Driver manager.
Image

Rhinox
Level 1
Level 1
Posts: 15
Joined: Wed Aug 16, 2017 12:26 pm

Re: 18.3 & ALC892: cracking sound...

Post by Rhinox » Sat Mar 17, 2018 3:33 pm

I have done it, and if anything, it is even worse now! Sound is cracking every 2-3 seconds. It is practically impossible to play any audio/video, because sound is terribly distorted...

Code: Select all

$ inxi -Fxz
System:    Host: fourlix Kernel: 4.13.0-37-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: ASUSTeK model: P8Z68-V v: Rev 1.xx Bios: American Megatrends v: 3603 date: 11/09/2012
CPU:       Quad core Intel Core i5-2500K (-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 27199
           clock speeds: max: 5900 MHz 1: 3399 MHz 2: 3399 MHz 3: 3399 MHz 4: 3399 MHz
Graphics:  Card: NVIDIA GK110 [GeForce GTX 780] bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: GeForce GTX 780/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 384.111 Direct Rendering: Yes
Audio:     Card-1 NVIDIA GK110 HDMI Audio driver: snd_hda_intel bus-ID: 01:00.1
           Card-2 Intel 6 Series/C200 Series Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.13.0-37-generic
Network:   Card: Intel 82579V Gigabit Network Connection driver: e1000e v: 3.2.6-k port: f040 bus-ID: 00:19.0
           IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 976.2GB (12.7% used) ID-1: /dev/sda model: Samsung_SSD_850 size: 256.1GB
           ID-2: /dev/sdb model: SAMSUNG_MZ7WD480 size: 480.1GB ID-3: /dev/sdc model: MKNSSDRE240GB size: 240.1GB
Partition: ID-1: / size: 184G used: 11G (6%) fs: ext4 dev: /dev/sda1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 0.0:43C
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 207 Uptime: 3 min Memory: 1063.1/16008.8MB Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35

User avatar
trytip
Level 7
Level 7
Posts: 1657
Joined: Tue Jul 05, 2016 1:20 pm

Re: 18.3 & ALC892: cracking sound...

Post by trytip » Sat Mar 17, 2018 3:47 pm

go to .config/pulse/ delete everything in there and reboot
Image

Rhinox
Level 1
Level 1
Posts: 15
Joined: Wed Aug 16, 2017 12:26 pm

Re: 18.3 & ALC892: cracking sound...

Post by Rhinox » Sat Mar 17, 2018 4:42 pm

It improved, but still noticeable. Less "cracking", but sound seems to be distorted like "over-amplified" (with volume set to ~50%).

But there is one more problem now: small stuttering when playing movies, like video shortly freezing every few seconds (again, no matter what kind of player/media I use). Quite visible when camera doing some panning. This was definitely not before, I would notice it...

User avatar
trytip
Level 7
Level 7
Posts: 1657
Joined: Tue Jul 05, 2016 1:20 pm

Re: 18.3 & ALC892: cracking sound...

Post by trytip » Sat Mar 17, 2018 6:56 pm

you will need to purge nvidia and reinstall it
sudo apt-get remove --purge nvidia-*
reboot and if you want to try again use the command line to install nvidia
Image

Rhinox
Level 1
Level 1
Posts: 15
Joined: Wed Aug 16, 2017 12:26 pm

Re: 18.3 & ALC892: cracking sound...

Post by Rhinox » Sun Mar 18, 2018 3:58 am

Removed nvidia-drivers, and video playback with open-source driver is better. Still some stuttering (is seems to me the longer is video played, the more stuttering), but less than before. As for the sound, it is still bad, cracking all the time.

Just to be sure there is no hw-problem, I swapped drives, booted old Win7 and guess what: no problem there at all. Video-playback smooth, sound without cracking...

Honestly, if this problem can not be fixed, then linux-mint (or linux in general) is still unusable as my primary desktop and I will have to revert back to windows...

User avatar
trytip
Level 7
Level 7
Posts: 1657
Joined: Tue Jul 05, 2016 1:20 pm

Re: 18.3 & ALC892: cracking sound...

Post by trytip » Sun Mar 18, 2018 3:00 pm

you have 2 cards running and linux can't decide what to do. you need to tell it where the sound needs to go. can you disable an audio output in your bios? i find that sometimes these issues are desktop related. you should boot with linux-mint-xfce or linux-mint-mate and see if you have the same issues in the live sessions
Image

Rhinox
Level 1
Level 1
Posts: 15
Joined: Wed Aug 16, 2017 12:26 pm

Re: 18.3 & ALC892: cracking sound...

Post by Rhinox » Sun Mar 18, 2018 4:19 pm

2 cards? I do not understand. I have single audio "card" (according to manual, my motherboard has Realtek ALC892 audio chip) and single add-on graphic-card (GTX 780). I think this is quite common setup.

I could disable on-board sound chip in bios, but then my PC would be silent. What is such a PC good for?

User avatar
ClixTrix
Level 5
Level 5
Posts: 718
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: 18.3 & ALC892: cracking sound...

Post by ClixTrix » Sun Mar 18, 2018 4:42 pm

Does this link to ALC892 noise problem and fix posted at Ubuntu have relevance?

https://askubuntu.com/questions/594552/ ... ting-music
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-24-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung EVO 960 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

User avatar
trytip
Level 7
Level 7
Posts: 1657
Joined: Tue Jul 05, 2016 1:20 pm

Re: 18.3 & ALC892: cracking sound...

Post by trytip » Mon Mar 19, 2018 2:31 pm

is this true in your inxi report?
Card-1 NVIDIA GK110 HDMI Audio driver: snd_hda_intel bus-ID: 01:00.1
Card-2 Intel 6 Series/C200 Series Family High Definition Audio Controller

how do you connect to audio? is it hdmi or line-out?
Image

Rhinox
Level 1
Level 1
Posts: 15
Joined: Wed Aug 16, 2017 12:26 pm

Re: 18.3 & ALC892: cracking sound...

Post by Rhinox » Tue Mar 20, 2018 12:27 pm

I do not know what that means or how Linux detects this hardware. All I know is that I have Asus P8Z68-V motherboard and NVidia GeForce GTX-780 graphic card. There is not much more inside (some disks, memory modules, and that's it). This motherboard has Intel Z68 chipset (6-series, with Intel HD Audio Technology), and in motherboard-manual I found it has Realtek ALC892 on-board sound chip.

I do not know why that NVidia-card is detected as "Audio Card 1". It is graphic card, and I have single LCD attached to it using display-port. A pair of common speakers is attached to line-out 3.5mm jack (this one is definitely on motherboard, not on NVidia GFX card).

User avatar
trytip
Level 7
Level 7
Posts: 1657
Joined: Tue Jul 05, 2016 1:20 pm

Re: 18.3 & ALC892: cracking sound...

Post by trytip » Tue Mar 20, 2018 1:03 pm

if you use the nvidia hdmi for display it also has sound embedded in it although if you do not have nvidia-drivers hdmi sound may not work properly. not sure what display you are using. is it the hdmi or dvi?

go to /etc/pulse/daemon.conf BACKitUP by compressing it or renaming it then open it and replace your content with this and REBOOT

Code: Select all

# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
## more information. Default values are commented out.  Use either ; or # for
## commenting.

; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; enable-memfd = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no

high-priority = yes
nice-level = -11

realtime-scheduling = yes
realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa

; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0

resample-method = speex-float-1
; enable-remixing = yes
; enable-lfe-remixing = no
; lfe-crossover-freq = 0

flat-volumes = no
; flat-volumes = yes

; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rttime = 200000

; default-sample-format = s16le
; default-sample-rate = 44100
; alternate-sample-rate = 48000
; default-sample-channels = 2
; default-channel-map = front-left,front-right

default-fragments = 4
default-fragment-size-msec = 25

; enable-deferred-volume = yes
; deferred-volume-safety-margin-usec = 8000
; deferred-volume-extra-delay-usec = 0
test a few videos and if it's the same undo your work with the backup
Image

Rhinox
Level 1
Level 1
Posts: 15
Joined: Wed Aug 16, 2017 12:26 pm

Re: 18.3 & ALC892: cracking sound...

Post by Rhinox » Tue Mar 20, 2018 4:11 pm

As I wrote previously, I have single LCD attached to display-port on NVidia-card. I'm pretty sure about it, because my LCD has no hdmi (only display-port, dvi and d-sub).

I tested modified /etc/pulse/daemon.conf, with no success. If there is any change, then I did not notice it. There is still significant "cracking" sound, especially when playing music. Very disturbing...

I checked pulse manual to see what actually was changed in this config-file. Well, not much. All those uncommented values are just default values (at least that's what man pulse-daemon.conf says). The only real change is:

Code: Select all

; deferred-volume-safety-margin-usec = 8000
in original config-file it was:

Code: Select all

deferred-volume-safety-margin-usec = 1

User avatar
trytip
Level 7
Level 7
Posts: 1657
Joined: Tue Jul 05, 2016 1:20 pm

Re: 18.3 & ALC892: cracking sound...

Post by trytip » Wed Mar 21, 2018 11:49 am

lspci -v | grep -i audio <<< you have two audio? right? i see hdmi in your inxi. where's the hdmi?
Image

Rhinox
Level 1
Level 1
Posts: 15
Joined: Wed Aug 16, 2017 12:26 pm

Re: 18.3 & ALC892: cracking sound...

Post by Rhinox » Wed Mar 21, 2018 1:27 pm

Code: Select all

$ lspci -v | grep -i audio
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
	Subsystem: ASUSTeK Computer Inc. 6 Series/C200 Series Chipset Family High Definition Audio Controller
01:00.1 Audio device: NVIDIA Corporation GK110 HDMI Audio (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd GK110 HDMI Audio
This still seems "normal" to me. There is nothing "exotic" here, many computers have NVidia graphic cards (with hdmi-port) and on-board audio chip/chipset...

Post Reply

Return to “Hardware Support”