You are not logged in.

#1 2019-11-16 02:17:47

bigmac_nopickles
Member
Registered: 2019-11-16
Posts: 25

[SOLVED] No audio? Fresh install

Hi, I just installed arch. I'm having a bit of trouble getting my audio to work. At the moment I hear absolutely nothing
First of all, after looking at a few posts i've done a few things... including:

I've uploaded my alsa info here http://alsa-project.org/db/?f=14741587b … b03f23eb49
I've unmuted everything in with the command alsamixer(pressing m on everything)
I've set my default in ~/.asoundrc (to be honest i can't find the post where i got the command to find the card number):

pcm.!default {
    type hw
    card 0 
}

ctl.!default {
    type hw
    card 0
}

I'm sure i've missed something important here? If there is any other information you might need to help, please let me know. Thanks

Last edited by bigmac_nopickles (2019-11-17 20:32:34)

Offline

#2 2019-11-16 11:59:57

xerxes_
Member
Registered: 2018-04-29
Posts: 665

Re: [SOLVED] No audio? Fresh install

I see in your log that you have Pulse audio installed and running. Check if it is not muted and sound level with pulsemixer or pavucontrol.

Offline

#3 2019-11-16 18:06:35

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: [SOLVED] No audio? Fresh install

Have a look at this.

Temporarily remove (or copy somewhere else) your asoundrc then run speaker-test -c 2. What is the output?
Also aplay -L | grep :CARD.

Last edited by d_fajardo (2019-11-16 18:11:02)

Offline

#4 2019-11-16 19:15:05

bigmac_nopickles
Member
Registered: 2019-11-16
Posts: 25

Re: [SOLVED] No audio? Fresh install

I believe that pulse is not muted. I ran pulsemixer, and it was at 100%
It shows "Firefox: Audio edition" so it seems to reckognize that a youtube video was playing. But i still didnt hear anything

Offline

#5 2019-11-16 19:17:40

bigmac_nopickles
Member
Registered: 2019-11-16
Posts: 25

Re: [SOLVED] No audio? Fresh install

After moving .asoundrc - running:

speaker-test -c 2

speaker-test 1.1.9

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Playback open error: -16,Device or resource busy

aplay -L | grep :CARD :

sysdefault:CARD=PCH
front:CARD=PCH,DEV=0
surround21:CARD=PCH,DEV=0
surround40:CARD=PCH,DEV=0
surround41:CARD=PCH,DEV=0
surround50:CARD=PCH,DEV=0
surround51:CARD=PCH,DEV=0
surround71:CARD=PCH,DEV=0
usbstream:CARD=PCH
hdmi:CARD=NVidia,DEV=0
hdmi:CARD=NVidia,DEV=1
hdmi:CARD=NVidia,DEV=2
hdmi:CARD=NVidia,DEV=3
usbstream:CARD=NVidia

Last edited by bigmac_nopickles (2019-11-17 00:53:41)

Offline

#6 2019-11-16 22:58:05

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: [SOLVED] No audio? Fresh install

What is the output of aplay -l, cat /proc/asound/modules, lsmod | grep snd?
Have you tried speaker-test -D sysdefault:PCH -c 2?

Offline

#7 2019-11-16 23:17:58

bigmac_nopickles
Member
Registered: 2019-11-16
Posts: 25

Re: [SOLVED] No audio? Fresh install

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

cat /proc/asound/modules

0 snd_hda_intel
 1 snd_hda_intel

lsmod | grep snd

snd_hda_codec_hdmi     65536  1
snd_hda_codec_realtek   126976  1
snd_hda_codec_generic    94208  1 snd_hda_codec_realtek
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_intel          53248  8
snd_hda_codec         159744  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          102400  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              20480  1 snd_hda_codec
snd_pcm               135168  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              40960  1 snd_pcm
snd                   110592  23 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
soundcore              16384  1 snd

speaker-test -D sysdefault:PCH -c 2

speaker-test 1.1.9

Playback device is sysdefault:PCH
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Playback open error: -16,Device or resource busy

Last edited by bigmac_nopickles (2019-11-17 00:53:06)

Offline

#8 2019-11-16 23:43:39

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] No audio? Fresh install

Please edit your post and use [ code ] tags when posting output. This makes the output much easier to read.

https://wiki.archlinux.org/index.php/Co … s_and_code
https://bbs.archlinux.org/help.php#bbcode


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#9 2019-11-17 00:54:33

bigmac_nopickles
Member
Registered: 2019-11-16
Posts: 25

Re: [SOLVED] No audio? Fresh install

Ok i've edited them. sorry about that

Offline

#10 2019-11-17 03:22:56

bigmac_nopickles
Member
Registered: 2019-11-16
Posts: 25

Re: [SOLVED] No audio? Fresh install

After a reboot,

speaker-test -D sysdefault:PCH -c 2

speaker-test 1.1.9

Playback device is sysdefault:PCH
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
Time per period = 5.653479
 0 - Front Left
 1 - Front Right
Time per period = 5.973836
 0 - Front Left
 1 - Front Right

indefinitely. But i hear nothing

Offline

#11 2019-11-17 08:24:07

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: [SOLVED] No audio? Fresh install

Stop pulseaudio and ensure to make audio work w/o it first.
There's an auto-mute feature that might misfire. Assuming your're hoping for sound from the speakers, try to plug in headphones (but nb. that HP volume was 0% in your info dump, so ensure to raise that as well)

Online

#12 2019-11-17 14:23:30

bigmac_nopickles
Member
Registered: 2019-11-16
Posts: 25

Re: [SOLVED] No audio? Fresh install

Ok, after stopping pulse audio, I've unmuted Headphones in alsamixer and I plugged them in and ran speaker-test again and it works. However when I dont have headphones plugged in, the speaker test does not work

Offline

#13 2019-11-17 14:29:43

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: [SOLVED] No audio? Fresh install

Try to disable the auto-mute feature.

Online

#14 2019-11-17 17:58:13

bigmac_nopickles
Member
Registered: 2019-11-16
Posts: 25

Re: [SOLVED] No audio? Fresh install

That did it. Thanks so much.
For anyone wondering i found a script that disables auto mute here: https://bbs.archlinux.org/viewtopic.php?id=195489

#!/bin/sh

# card name
CARD=`sed -n 's/\s\([0-9]*\).*:\s.*Intel PCH/\1/p' /proc/asound/cards`

# check auto-mute state
amixer -c $CARD sget "Auto-Mute Mode" | grep "Item0: 'Disabled'"
# $? is 0 if auto-mute is disabled
# $? is 1 if auto-mute is enabled
if [ "$?" -eq "0" ]; then
    amixer -c $CARD sset "Auto-Mute Mode" Enabled
    notify-send 'auto-mute enabled' -u low -a ALSA -t 4000 -i audio-volume-muted
else
    amixer -c $CARD sset "Auto-Mute Mode" Disabled
    notify-send 'auto-mute disabled' -u low -a ALSA -t 4000 -i audio-volume-high
fi

Offline

#15 2019-11-17 19:47:19

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: [SOLVED] No audio? Fresh install

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB