You are not logged in.

#1 2017-05-10 07:32:41

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

[Solved] No sound after system upgrade

After a system upgrade, I no longer have a working sound.
I have alsa and pulseaudio installed, when I run pavucontrol while playing some soundtracks , the volumn bar is responsive.
when running pulseaudio as root

pulseaudio --system                                       :(
W: [pulseaudio] main.c: Running in system mode, but --disallow-exit not set.
W: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set.
N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode.
N: [pulseaudio] main.c: Running in system mode, forcibly disabling exit idle time.
W: [pulseaudio] main.c: Home directory of user 'pulse' is not '/var/run/pulse', ignoring.
W: [pulseaudio] main.c: OK, so you are running PA in system mode. Please make sure that you actually do want to do that.
W: [pulseaudio] main.c: Please read http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ for an explanation why system mode is usually a bad idea.
W: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.pulse-cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/var/run/pulse/.pulse-cookie': No such file or directory
E: [pulseaudio] main.c: Failed to acquire org.pulseaudio.Server: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.105" is not allowed to own the service "org.pulseaudio.Server" due to security policies in the configuration file

Tried to restart pulseaudio, it showed me the same result.

alsamixer has the following sound card options
-  (default)   (PulseAudio)
0  HD-Audio Generic
1  HDA NVidia
and has its master and headphone channels both unmuted.
Here are the alsa plugin script tests:

#  alsabat
alsa-utils version 1.1.3

Entering playback thread (ALSA).
Get period size: 2756  buffer size: 22050
Playing generated audio sine wave
Entering capture thread (ALSA).
Get period size: 2756  buffer size: 22050
Recording ...
Playback completed.
Capture completed.

BAT analysis: signal has 65536 frames at 44100 Hz, 1 channels, 2 bytes per sample.

Channel 1 - Checking for target frequency 997.00 Hz
Amplitude: 22696.8; Percentage: [69]
Detected peak at 997.26 Hz of 35.52 dB
 Total 41.3 dB from 985.14 to 1008.70 Hz
 PASS: Peak detected at target frequency
Detected at least 1 signal(s) in total

Return value is 0




# alsabat-test.sh                                         :(
*******************************************
                BAT Test                   
-------------------------------------------
usage:
  /usr/bin/alsabat-test.sh <sound card>
  /usr/bin/alsabat-test.sh <device-playback> <device-capture>
current setting:
  /usr/bin/alsabat-test.sh default default
============================================
0: ALSA generate mono wav file with default params
-------------------------------------------
alsabat -c1 --saveplay default_mono.wav --log=tmp/0.log
alsa-utils version 1.1.3

pass
============================================
1: ALSA generate dual wav file with default params
-------------------------------------------
alsabat -c2 --saveplay default_dual.wav --log=tmp/1.log
alsa-utils version 1.1.3

pass
============================================
2: ALSA single line mode, playback
-------------------------------------------
alsabat -P default --log=tmp/2.log
alsa-utils version 1.1.3

pass
============================================
3: ALSA single line mode, capture
-------------------------------------------
alsabat -C default --standalone --log=tmp/3.log
alsa-utils version 1.1.3

pass
============================================
4: ALSA play mono wav file and detect
-------------------------------------------
alsabat -P default -C default --file default_mono.wav --log=tmp/4.log
alsa-utils version 1.1.3

fail
============================================
5: ALSA play dual wav file and detect
-------------------------------------------
alsabat -P default -C default --file default_dual.wav --log=tmp/5.log
alsa-utils version 1.1.3

pass
============================================
6: ALSA configurable channel number: 1
-------------------------------------------
alsabat -P default -C default -c1 --log=tmp/6.log
alsa-utils version 1.1.3

fail
============================================
7: ALSA configurable channel number: 2
-------------------------------------------
alsabat -P default -C default -c2 -F 17:16547 --log=tmp/7.log
alsa-utils version 1.1.3

pass
============================================
8: ALSA configurable sample rate: 44100
-------------------------------------------
alsabat -P default -C default -r44100 --log=tmp/8.log
alsa-utils version 1.1.3

pass
============================================
9: ALSA configurable sample rate: 48000
-------------------------------------------
alsabat -P default -C default -r48000 --log=tmp/9.log
alsa-utils version 1.1.3

pass
============================================
10: ALSA configurable duration: in samples
-------------------------------------------
alsabat -P default -C default -n10000 --log=tmp/10.log
alsa-utils version 1.1.3

pass
============================================
11: ALSA configurable duration: in seconds
-------------------------------------------
alsabat -P default -C default -n2.5s --log=tmp/11.log
alsa-utils version 1.1.3

fail
============================================
12: ALSA configurable data format: U8
-------------------------------------------
alsabat -P default -C default -f U8 --log=tmp/12.log
alsa-utils version 1.1.3

pass
============================================
13: ALSA configurable data format: S16_LE
-------------------------------------------
alsabat -P default -C default -f S16_LE --log=tmp/13.log
alsa-utils version 1.1.3

pass
============================================
14: ALSA configurable data format: S24_3LE
-------------------------------------------
alsabat -P default -C default -f S24_3LE --log=tmp/14.log
alsa-utils version 1.1.3

pass
============================================
15: ALSA configurable data format: S32_LE
-------------------------------------------
alsabat -P default -C default -f S32_LE --log=tmp/15.log
alsa-utils version 1.1.3

pass
============================================
16: ALSA configurable data format: cd
-------------------------------------------
alsabat -P default -C default -f cd --log=tmp/16.log
alsa-utils version 1.1.3

pass
============================================
17: ALSA configurable data format: dat
-------------------------------------------
alsabat -P default -C default -f dat --log=tmp/17.log
alsa-utils version 1.1.3

fail
============================================
18: ALSA standalone mode: play and capture
-------------------------------------------
alsabat -P default -C default -F 16547 --standalone --log=tmp/18.log
alsa-utils version 1.1.3

pass
============================================
19: ALSA local mode: analyze local file
-------------------------------------------
alsabat -P default -C default --local -F 16547 --file /tmp/bat.wav.ExxzCE --log=tmp/19.log
alsa-utils version 1.1.3

pass
============================================
20: ALSA round trip latency test
-------------------------------------------
alsabat -P default -C default --roundtriplatency --log=tmp/20.log
alsa-utils version 1.1.3

pass
============================================
21: ALSA noise detect threshold in SNR(dB)
-------------------------------------------
alsabat -P default -C default --snr-db 26 --log=tmp/21.log
alsa-utils version 1.1.3

fail
============================================
22: ALSA noise detect threshold in noise percentage(%)
-------------------------------------------
alsabat -P default -C default --snr-pc 5 --log=tmp/22.log
alsa-utils version 1.1.3

fail
============================================
23: ALSA power management: S3 test
-------------------------------------------
alsabat -P default -C default -n5s --log=tmp/23.log
[1]  + 2436 suspended (signal)  alsabat-test.sh

pavucontrol meanwhile is also responsive to the latter alsabat audio playback.

Here is the result of lspci -nn:

# lspci -nn
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Complex [1022:1410]
00:02.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Port [1022:1412]
00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [IDE mode] [1022:7800] (rev 40)
00:12.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller [1022:7807] (rev 11)
00:12.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller [1022:7808] (rev 11)
00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller [1022:7807] (rev 11)
00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller [1022:7808] (rev 11)
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:780b] (rev 13)
00:14.1 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD] FCH IDE Controller [1022:780c] (rev 40)
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller [1022:780d] (rev 01)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:780e] (rev 11)
00:14.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge [1022:780f] (rev 40)
00:15.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0) [1022:43a0]
00:15.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 1) [1022:43a1]
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 0 [1022:1400]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 1 [1022:1401]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 2 [1022:1402]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 3 [1022:1403]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 4 [1022:1404]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 5 [1022:1405]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108 [GeForce GT 620] [10de:0f01] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0bea] (rev a1)
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 09)
lspci -nn | grep Audio
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller [1022:780d] (rev 01)
01:00.1 Audio device [0403]: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0bea] (rev a1)


Quite frankly, I did not have arch's sound working after the fresh install on my computer, you guys might think it a stupid way but I copied some(can't remember exactly what they were right now) alsa configurations from Manjaro over Arch's, and it worked until the recent system upgrade.
(But the Manjaro attempt got me into quite a lot of troubles lately in this forum(post deleted account banned) due to being thought of as a Manjaro troll.
In order to avoid that happen again, and I can't provide anything that can absolutely prove myself using arch right now and getting this problem from arch, all I can clarify is though I can't prove myself I got this problem on Arch, I just hope people can build some trust over this post and me. )

Thanks!

Last edited by LeoMingo (2017-05-13 14:17:42)

Offline

#2 2017-05-10 18:08:58

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [Solved] No sound after system upgrade

Have you taken a look at this article: https://wiki.archlinux.org/index.php/Ad … leshooting

Offline

#3 2017-05-10 18:41:19

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: [Solved] No sound after system upgrade

What is your system setup? Gnome, KDE or just a WM? and why are you running pulseaudio as root?

Offline

#4 2017-05-11 05:12:38

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

x33a wrote:

Have you taken a look at this article

I tried some related solutions and settings recommended there, but it's still working,
and I'm not sure if I have missed something, here are some test results and respective setting outputs after the changes:

#alsactl init 
alsactl: sysfs_init:48: sysfs path '/sys' is invalid

Found hardware: "HDA-Intel" "Realtek Generic" "HDA:10ec0887,10438445,00100302" "0x1043" "0x8445"
Hardware is initialized using a generic method
# speaker-test        :(

speaker-test 1.1.3

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_hw.c:1788:(_snd_pcm_hw_open) Unknown field slave
Playback open error: -22,Invalid argument

List devices:
# aplay -l    
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 0: Generic Analog [Generic Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

running amixer:

# amixer 
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 65536 [100%] [on]
  Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 65536 [100%] [on]
  Front Right: Capture 65536 [100%] [on]

amixer -c Generic
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 44 [69%] [-20.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 28 [61%] [12.00dB] [on]
  Front Right: Capture 28 [61%] [12.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [off]
  Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '4ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 2 [67%] [20.00dB]
  Front Right: 2 [67%] [20.00dB]

Initially under /etc/modprobe.d/ there are no files, I added a sound.conf file:

# ls /etc/modprobe.d 
sound.conf


# cat /etc/modprobe.d/sound.conf
options snd-hda-intel enable=1,0
options snd-hda-intel model=generic
lsmod | grep snd
snd_hda_codec_realtek    73728  0
snd_hda_codec_generic    69632  2 snd_hda_codec_realtek
snd_hda_intel          32768  3
snd_hda_codec         106496  3 snd_hda_intel,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           65536  4 snd_hda_intel,snd_hda_codec,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_pcm                90112  3 snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              28672  1 snd_pcm
snd                    65536  13 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
soundcore              16384  1 snd

This asound.conf settings, after appending 2 functions, the computer had been rebooted.

cat /etc/asound.conf 
# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:





pcm.!default {
    type hw
    slave.pcm "softvol"
}

pcm.softvol {
    type softvol
    slave {
        pcm "dmix"
    }
    control {
        name "Pre-Amp"
        card 0
    }
    min_dB -5.0
    max_dB 20.0
    resolution 6
}

alsamixer still has its channels(master & headphone) unmuted, but under HD-Audio Generic sound card option, loopback channel option is gone.

Last edited by LeoMingo (2017-05-11 10:05:50)

Offline

#5 2017-05-11 05:20:09

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

okubax wrote:

What is your system setup? Gnome, KDE or just a WM?

My desktop is Gnome

okubax wrote:

and why are you running pulseaudio as root?

I tried after logging into a non-root user, the sound still does not work.

Offline

#6 2017-05-11 15:27:21

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

Any ideas?

Offline

#7 2017-05-11 16:09:27

kevinae91
Member
From: NJ
Registered: 2012-09-26
Posts: 49

Re: [Solved] No sound after system upgrade

Try removing alsa and pulseaudio, reboot machine, reinstall packages, and run with as default of configs as you possibly can. Be sure to copy your current config files to a separate location before removing both packages, if you don't want them to be wiped.


Just keep it simple.

Offline

#8 2017-05-11 18:06:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [Solved] No sound after system upgrade

Your /etc/modprobe.d/sound.conf is bogus, why do you have it? The first line disables your normal audio output (if the intention was to disable the HDMI card it should read

options snd-hda-intel enable=0,1

HDMI outputs are always initialized first) the second one loads an incorrect card definition. Remove it.  After that reboot, then post while attempting to play something, if it still doesn't work

sudo fuser -v /dev/snd/*
pacmd list-cards
pacmd list-sinks
pacmd list-sink-inputs

Last edited by V1del (2017-05-11 18:13:39)

Offline

#9 2017-05-11 19:38:01

c00ter
Member
From: Alaskan in Washington State
Registered: 2014-08-28
Posts: 421

Re: [Solved] No sound after system upgrade

Is sound problem related to Manjaro updates & this link? https://bbs.archlinux.org/viewtopic.php … 6#p1709456


UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn

Offline

#10 2017-05-12 03:26:49

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

V1del wrote:

Your /etc/modprobe.d/sound.conf is bogus, why do you have it? The first line disables your normal audio output,
the second one loads an incorrect card definition. Remove it.  After that reboot, then post while attempting to play something, if it still doesn't work

I added that file myself, before that the /etc/modprobe.d is empty.
When the sound worked, I normally I adjusted my sound under alsamixer with generic sound card option(pressing F6), there was a headphone channel in it and I had to unmute in order to make the sound work. when the problem occured, I followed [url=https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture/Troubleshooting#Wrong_sound_card_model_type]this
link[/url], and then HDA Nvidia sound card option(which has 4 S/PDIF option channels) was gone.

I followed your advice, removed the second line and switched the values of the first line:

 # cat /etc/modprobe.d/sound.conf 
options snd-hda-intel enable=0,1

And after reboot, here are the requested results:

# fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  gdm         578 F.... pulseaudio
                     root       1370 F.... pulseaudio
# pacmd list-cards
1 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_01_00.1>
	driver: <module-alsa-card.c>
	owner module: 5
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xfe080000 irq 19"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "0bea"
		device.product.name = "GF108 High Definition Audio Controller"
		device.string = "0"
		device.description = "GF108 High Definition Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 100, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5200, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 100, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 100, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5200, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 100, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 100, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
# pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <auto_null>
	driver: <module-null-sink.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: 
	priority: 1000
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 45.82 ms
	max request: 15 KiB
	max rewind: 15 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 90.00 ms; range is 0.50 .. 2000.00 ms
	module: 14
	properties:
		device.description = "Dummy Output"
		device.class = "abstract"
		device.icon_name = "audio-card"
# pacmd list-sink-inputs
1 sink input(s) available.
    index: 3
	driver: <protocol-native.c>
	flags: START_CORKED 
	state: RUNNING
	sink: 0 <auto_null>
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	muted: no
	current latency: 104.49 ms
	requested latency: 90.00 ms
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	resample method: (null)
	module: 10
	client: 13 <Videos>
	properties:
		media.name = "Playback Stream"
		application.name = "Videos"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "32"
		media.role = "video"
		application.icon_name = "org.gnome.Totem"
		application.process.id = "1737"
		application.process.user = "root"
		application.process.host = "archiso"
		application.process.binary = "totem"
		application.language = "en_US.UTF-8"
		window.x11.display = ":0"
		application.process.machine_id = "f6303311ecd74377bd2b24ad7cc6db5e"
		application.process.session_id = "c3"
		module-stream-restore.id = "sink-input-by-media-role:video"

I checked pacmd list-cards before the file change you advised, the card_name was HD-Audio Generic, now it seems to be changed to HDA NVidia, and indeed, when I open alsamixer then pressing F6, Generic sound card is gone, HDA NVdia with 41 S/PDIF channels comes back.

And as a test, I played some soundtracks, the pavucontrol is still responsive, but unfortunately, I still have got no sound.

Offline

#11 2017-05-12 03:29:57

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

kevinae91 wrote:

Try removing alsa and pulseaudio, reboot machine, reinstall packages, and run with as default of configs as you possibly can. Be sure to copy your current config files to a separate location before removing both packages, if you don't want them to be wiped.

I will try that resort later.

# pacman -R pulseaudio
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: gnome-settings-daemon: removing pulseaudio breaks dependency 'pulseaudio'
:: pulseaudio-alsa: removing pulseaudio breaks dependency 'pulseaudio'
:: pulseaudio-bluetooth: removing pulseaudio breaks dependency 'pulseaudio=10.0-3'

Offline

#12 2017-05-12 03:47:56

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

c00ter wrote:

Is sound problem related to Manjaro updates & this link? https://bbs.archlinux.org/viewtopic.php … 6#p1709456

Just to be clear(Don't want to get banned again):

ALL results I post here were and will be directly copied and only copied from my Arch Linux Gnome terminal.

Like I had stated in the first post, I had sound issue 3 or 4 months ago after the fresh install of Arch Linux directly on hardware(I remember the Virtual Machine before had its sound working properly, but my memory kinda misty now so not quite sure). And as the last attempt I copied some Manjaro alsa or maybe pulseaudio settings over the ones of newly installed Arch's. Then my system had several updates and everything had worked fine until the recent system update 3 days ago, the sound has not been working any more since then.
I doubt I'm having this trouble due to the incompatibilities between alsa or pulseaudio and my computer after the former's recent changes, truth to be told I have 3 Linux distros installed on my computer(2 Kali2.0(debian family), 1 Arch), and the common build settings they have are gnome, pulseaudio, alsa-utils, and I did not mention but the other two after the recent update(apt-get upgrade) had no sound working now as well.

But it's just a doubt, and I would love all the focuses on solving this problem are just focused on how to solve it on Arch.

Last edited by LeoMingo (2017-05-12 03:53:19)

Offline

#13 2017-05-12 12:36:39

c00ter
Member
From: Alaskan in Washington State
Registered: 2014-08-28
Posts: 421

Re: [Solved] No sound after system upgrade

And it happened in all three distributions at the same time?
Have you also been booting Live ISOs and testing sound?
Did your audio output device get 'captured' by either of your other distros or a Live ISO and assigned a new device ID it doesn't want to let loose of?
Is your hardware b0rked--do you get sound in any situation--like when testing a Live ISO?

Regards


UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn

Offline

#14 2017-05-12 17:39:53

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

Thanks for the reply!

c00ter wrote:

And it happened in all three distributions at the same time?

No not at the same time:
the first Kali(newest distro iso image back then) was installed two months ago and the sound never has worked,
Arch's sound stopped working 4 days ago after pacman -Syu system upgrade,
the second Kali's sound worked fine until 2 days ago after a system upgrade.

c00ter wrote:

Have you also been booting Live ISOs and testing sound?

I have tested the system 3 months ago with Manjaro and Arch(I customized the Arch iso image with archiso so it has gnome desktop after the live boot), two months ago using the newest Kali2.0 live, the Manjaro had its sound working fine, the others did not(But for the forum's sake, let's just stick to Arch).

I also have tested the Arch live on some other computers in the nearby cyber cafe before,  maybe one out of five has its sound worked.

Last edited by LeoMingo (2017-05-12 17:43:14)

Offline

#15 2017-05-12 18:51:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,891

Re: [Solved] No sound after system upgrade

Do you have sound w/o pulseaudio (don't use gnome, ensure the service is stopped, try "mplayer  some.mp3" or something)?

Offline

#16 2017-05-12 20:50:13

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

seth wrote:

Do you have sound w/o pulseaudio (don't use gnome, ensure the service is stopped, try "mplayer  some.mp3" or something)?

systemctl disable gdm.service
#reboot

mplayer Mocca\ -\ Happy.mp3
mplayer: /usr/lib/libcdio_cdda.so.2: no version information available (required by mplayer)
mplayer: /usr/lib/libcdio_paranoia.so.2: no version information available (required by mplayer)
MPlayer SVN-r37916 (C) 2000-2017 MPlayer Team
225 audio & 460 video codecs
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Mocca - Happy.mp3.
libavformat version 57.71.100 (external)
Mismatching header version 57.56.101
Audio only file format detected.
Clip info:
 Title: Mocca-Happy
 Artist: Mocca
 Album: Untuk Rena
 Year: 
 Comment: Mu21985503SL21985503
 Genre: Blues
Load subtitles in ./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1788:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   0.0 (unknown) of 170.0 (02:50.0) ??,?% 
Audio device got stuck!
A:   0.0 (unknown) of 170.0 (02:50.0) ??,?% 
Position: 74 %
A: 127.7 (02:07.6) of 170.0 (02:50.0)  0.1% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1788:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
Position: 81 %
A: 138.2 (02:18.2) of 170.0 (02:50.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1788:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] 32000Hz 2ch s16le (2 bytes per sample)
A: 138.2 (02:18.2) of 170.0 (02:50.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1788:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
A: 138.3 (02:18.2) of 170.0 (02:50.0)  0.0% 
Audio device got stuck!
A: 138.3 (02:18.2) of 170.0 (02:50.0)  0.0% 
Position: 95 %
A: 163.0 (02:43.0) of 170.0 (02:50.0)  0.0% 
mpg123 failed to reopen stream: Error reading the stream. (code 18)
Position: 100 %
A: 163.4 (02:43.3) of 170.0 (02:50.0)  0.0% 


Exiting... (End of file)

Still no sound.
BTW right now I have an empty /etc/modprobe.d directory.

Offline

#17 2017-05-12 20:55:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,891

Re: [Solved] No sound after system upgrade

That severely looks as if pulseaudio is still running ...?
By "ensure the service is stopped" I meant pulseaudio.

Offline

#18 2017-05-13 03:04:10

alej
Member
Registered: 2017-05-13
Posts: 1

Re: [Solved] No sound after system upgrade

I'm having the same issue after full system upgrade. My sound system is ALSA only (no pulseaudio).
I guess linux-4.10.13-1 has a regression, did a downgrade to linux-4.10.11-1 and sound is back again.
Please downgrade too to compare results.

Edit: sound worked for like 5 minutes and then it stopped sad the problem is elsewhere.

Last edited by alej (2017-05-13 03:26:51)

Offline

#19 2017-05-13 04:35:13

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

seth wrote:

That severely looks as if pulseaudio is still running ...?
By "ensure the service is stopped" I meant pulseaudio.

I have not found pulseaudio.service, but I tried several other attempts to stop pulseaudio then run test with mplayer:
1st attempt:

# mv /usr/bin/pulse* /usr/bin/pulse-backup

#reboot

# mplayer Akon\ -\ Lonely.mp3

mplayer: /usr/lib/libcdio_cdda.so.2: no version information available (required by mplayer)
mplayer: /usr/lib/libcdio_paranoia.so.2: no version information available (required by mplayer)
MPlayer SVN-r37916 (C) 2000-2017 MPlayer Team
225 audio & 460 video codecs
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Akon - Lonely.mp3.
libavformat version 57.71.100 (external)
Mismatching header version 57.56.101
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] Init failed: Connection refused
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
[JACK] cannot open server
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Position: 49 %
A: 116.9 (01:56.9) of 236.0 (03:56.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] Init failed: Connection refused
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
[JACK] cannot open server
DVB card number must be between 1 and 4
Position: 53 %
A: 127.3 (02:07.2) of 236.0 (03:56.0)  0.0% 
Audio output truncated at end.
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] Init failed: Connection refused
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
[JACK] cannot open server
DVB card number must be between 1 and 4
AO: [null] 32000Hz 2ch s16le (2 bytes per sample)
A: 127.3 (02:07.3) of 236.0 (03:56.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] Init failed: Connection refused
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
[JACK] cannot open server
DVB card number must be between 1 and 4
Position: 98 %
A: 232.0 (03:51.9) of 236.0 (03:56.0)  0.0% 
mpg123 failed to reopen stream: Error reading the stream. (code 18)
Position: 100 %
A: 232.2 (03:52.1) of 236.0 (03:56.0)  0.0% 


Exiting... (End of file)

2nd attempt:

# move back-upped pulse* back to /usr/bin

# pulseaudio --kill
# pkill pulseaudio
# killall pulseaudio    #so paranoid I know ...

# mplayer Akon\ -\ Lonely.mp3

mplayer: /usr/lib/libcdio_cdda.so.2: no version information available (required by mplayer)
mplayer: /usr/lib/libcdio_paranoia.so.2: no version information available (required by mplayer)
MPlayer SVN-r37916 (C) 2000-2017 MPlayer Team
225 audio & 460 video codecs
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Akon - Lonely.mp3.
libavformat version 57.71.100 (external)
Mismatching header version 57.56.101
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Position: 64 %
A: 152.9 (02:32.8) of 236.0 (03:56.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
Position: 69 %
A: 163.4 (02:43.3) of 236.0 (03:56.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
A: 163.4 (02:43.3) of 236.0 (03:56.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] 32000Hz 2ch s16le (2 bytes per sample)
A: 163.4 (02:43.3) of 232.0 (03:52.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
Position: 73 %
A: 171.7 (02:51.6) of 232.0 (03:52.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
Position: 96 %
A: 225.1 (03:45.0) of 233.0 (03:53.0)  0.0% 
mpg123 failed to reopen stream: Error reading the stream. (code 18)
Position: 100 %
A: 225.3 (03:45.3) of 233.0 (03:53.0)  0.0% 


Exiting... (End of file)

3rd attempt:

#under the above conditions, add one more safety belt

# pasuspender bash

# mplayer Akon\ -\ Lonely.mp3 

mplayer: /usr/lib/libcdio_cdda.so.2: no version information available (required by mplayer)
mplayer: /usr/lib/libcdio_paranoia.so.2: no version information available (required by mplayer)
MPlayer SVN-r37916 (C) 2000-2017 MPlayer Team
225 audio & 460 video codecs
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Akon - Lonely.mp3.
libavformat version 57.71.100 (external)
Mismatching header version 57.56.101
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   0.1 (00.0) of 236.0 (03:56.0) ??,?% 
Audio device got stuck!
A:   0.1 (00.0) of 236.0 (03:56.0) ??,?% 
Audio device got stuck!
A:   0.1 (00.0) of 236.0 (03:56.0) ??,?% 
Audio device got stuck!
A:   0.1 (00.0) of 236.0 (03:56.0) ??,?% 
Audio device got stuck!
A:   0.1 (00.0) of 236.0 (03:56.0) ??,?% 
Audio device got stuck!
A:   0.1 (00.0) of 236.0 (03:56.0) ??,?% 
Audio device got stuck!
A:   0.1 (00.0) of 236.0 (03:56.0) ??,?% 
Audio device got stuck!
A:   0.1 (00.0) of 236.0 (03:56.0) ??,?% 
Audio device got stuck!
A:   0.1 (00.0) of 236.0 (03:56.0) ??,?% 
Audio device got stuck!
A:   0.1 (00.0) of 236.0 (03:56.0) ??,?% 
Position: 4 %
A:  10.3 (10.3) of 236.0 (03:56.0) ??,?% 
Position: 13 %
A:  30.9 (30.9) of 236.0 (03:56.0)  0.1% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
Position: 43 %
A: 102.6 (01:42.5) of 236.0 (03:56.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
Position: 47 %
A: 113.0 (01:52.9) of 241.0 (04:01.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
Position: 81 %
A: 196.3 (03:16.2) of 240.0 (04:00.0)  0.0% 
Position: 94 %
A: 226.4 (03:46.4) of 239.0 (03:59.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1789:(_snd_pcm_hw_open) Unknown field slave
[AO_ALSA] Playback open error: Invalid argument
Position: 99 %
A: 236.7 (03:56.6) of 239.0 (03:59.0)  0.0% 
mpg123 failed to reopen stream: Error reading the stream. (code 18)
Position: 100 %
A: 236.7 (03:56.6) of 239.0 (03:59.0)  0.0% 
mpg123 failed to reopen stream: Error reading the stream. (code 18)
mpg123 cannot reopen stream for resync.


Exiting... (End of file)

In the third attempt(under `pasuspender bash` evironment), the sound got stuck permanently, therefore I had to press the right key to speed it up to the end myself.

All of them have no sound worked.

Also worth noting /etc/pulse/client.conf and ~/.config/pulse/client.conf all have autospwan disabled

# cat /etc/pulse/client.conf 
autospawn = no


# cat ~/.config/pulse/client.conf 
autospawn = no

Hope these can be useful, thanks.

Offline

#20 2017-05-13 06:43:50

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

c00ter wrote:

And it happened in all three distributions at the same time?
Have you also been booting Live ISOs and testing sound?
Did your audio output device get 'captured' by either of your other distros or a Live ISO and assigned a new device ID it doesn't want to let loose of?
Is your hardware b0rked--do you get sound in any situation--like when testing a Live ISO?
Regards

I just solved the kalis' sound problems by removing pulseaudio sound card, guess their problems are not related to Arch's after all.

Update: I just tested with my customized live arch(on a USB stick), and removed the /usr/bin/pulseaudio then relogged into the desktop, and its(live arch's) sound worked !
Since I already tried the above attempt and Arch still got no sound, I guess there has been some incorrect configurations that exist in my Arch, and only in my Arch (problems are not the programs themselves).

Last edited by LeoMingo (2017-05-13 07:00:06)

Offline

#21 2017-05-13 07:08:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,891

Re: [Solved] No sound after system upgrade

The reason for the mplayer chain this is likely the asound.conf from comment #4. Please move that out of the way, restart alsa and try again.

Offline

#22 2017-05-13 08:05:09

LeoMingo
Member
Registered: 2017-05-07
Posts: 20

Re: [Solved] No sound after system upgrade

seth wrote:

The reason for the mplayer chain this is likely the asound.conf from comment #4. Please move that out of the way, restart alsa and try again.

You are right, the problem solved!

And now is the mplayer test with a working sound:

mplayer Akon\ -\ Lonely.mp3
MPlayer SVN-r37916 (C) 2000-2017 MPlayer Team
225 audio & 460 video codecs
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Akon - Lonely.mp3.
libavformat version 57.71.100 (external)
Mismatching header version 57.56.101
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1602:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-77): File descriptor in bad state
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Position: 18 %
A:  43.3 (43.3) of 236.0 (03:56.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Position: 22 %
A:  53.8 (53.7) of 236.0 (03:56.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Position: 27 %
A:  63.9 (01:03.8) of 236.0 (03:56.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Position: 53 %
A: 126.0 (02:06.0) of 236.0 (03:56.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Position: 75 %
A: 177.4 (02:57.4) of 234.0 (03:54.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Position: 80 %
A: 188.0 (03:08.0) of 234.0 (03:54.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
A: 188.2 (03:08.1) of 234.0 (03:54.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Position: 84 %
A: 198.7 (03:18.6) of 234.0 (03:54.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
A: 198.9 (03:18.8) of 234.0 (03:54.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Position: 89 %
A: 209.4 (03:29.3) of 229.0 (03:49.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
A: 209.4 (03:29.3) of 229.0 (03:49.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
A: 209.4 (03:29.4) of 229.0 (03:49.0)  0.0% 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Position: 98 %
A: 226.4 (03:46.3) of 229.0 (03:49.0)  0.0% 
mpg123 failed to reopen stream: Error reading the stream. (code 18)
Position: 100 %
A: 226.7 (03:46.7) of 229.0 (03:49.0)  0.0% 


Exiting... (End of file)

So the problem was at the end still just of pulseaudio, I would have solved it by simply removing pulseaudio in /usr/bin/, but along the way of solving it I accidentally appended two incorrect configuration functions to the /etc/asound.conf

pcm.!default {
    type hw
    slave.pcm "softvol"
}

pcm.softvol {
    type softvol
    slave {
        pcm "dmix"
    }
    control {
        name "Pre-Amp"
        card 0
    }
    min_dB -5.0
    max_dB 20.0
    resolution 6
}

I removed them from /etc/asound.conf, as a result the problem is solved as well. Thanks!

But before I mark this post as solved, I have one last question, I'm not so sure if this is worth starting a new topic, and I have not found available resources indicating the reasons for that, so if this question makes it a little off-topic, I'm sincerely sorry:

Why would pulseaudio cause so many troubles here? It seems to me gnome+alsa+pulse combo would only lead to an deadend, but why?

Offline

#23 2017-05-13 11:59:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,891

Re: [Solved] No sound after system upgrade

Why would pulseaudio cause so many troubles here?

Please don't trollbait ;-P

It's gonna be some setup issue. Ensure to get rid of any custom pulseaudio config, notably any stuff you apparently might have copied over from a manjaro installation. The start pulseaudio (the asound.conf likely stems from pulseaudio-alsa package. If not and you just copied it from another installation, there might btw. be your issue...) and see what happens.

Personally, I try to stay away from PA as far as possible. The answer to an overly complex sound stack is not yet another userspace sound daemon.

Offline

#24 2017-05-13 12:36:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [Solved] No sound after system upgrade

Looks like my assumption was incorrect and your initial enable line should have been the right one. Simply with that, or even no config in modprobe at all since you disable nvidia at pulse's side anyway, should work as well. There was likely some incorrect profile in pulse which would be easily switchable.
If you still want to try this with pulseaudio, remove the conf in modprobe, restore the /etc/asound.conf from pulseaudio-alsa reboot and repost the outputs I requested

Last edited by V1del (2017-05-13 12:38:27)

Offline

#25 2017-05-13 13:57:12

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: [Solved] No sound after system upgrade

As said in post #18, I've got the same issue without pulseaudio but with the 4.10.x kernel updates. I've worked around it by installing pavucontrol and (re-)choosing audio device or something and then the next kernel has broken it again (and again). Finally I've solved it by reverting to the lts kernel.

Last edited by fluxboxer (2017-05-13 13:58:26)

Offline

Board footer

Powered by FluxBB