You are not logged in.

#1 2020-05-26 22:13:44

cerealfordinner
Member
Registered: 2020-05-26
Posts: 8

Fresh Install of Arch Linux No Audio

So i have a decent amount of experience working in Debian based distros, but today is the first time i installed Arch from scratch and i was able to get everything set up and even get a WM set up (openbox). The one thing i can't seem to get working is audio, ive browser other posts to try their solution, but they haven't worked for me. I can get audio through my headphone jack, but nothing through the computer speakers. I have already checked through alsamixer that nothing is muted and when i play a video in Firefox i can see the audio showing when i open something like pavucontrol. I realize i am most likely missing something basic and for that i apologize.

speaker-test -c 2

speaker-test 1.2.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory

aplay -l

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

cat /proc/asound/modules

 0 snd_hda_intel
 1 snd_hda_inte

lsmod | grep snd

snd_hda_codec_hdmi     73728  1
snd_hda_codec_realtek   135168  1
snd_hda_codec_generic    94208  1 snd_hda_codec_realtek
ledtrig_audio          16384  3 snd_hda_codec_generic,snd_hda_codec_realtek,dell_laptop
snd_hda_intel          53248  4
snd_intel_nhlt         20480  1 snd_hda_intel
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              16384  1 snd_hda_codec
snd_pcm               143360  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              40960  1 snd_pcm
snd                   110592  16 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

If there is anything else i can provide that can make assisting easier please let me know and i appreciate any and all help.

Offline

#2 2020-05-26 22:18:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: Fresh Install of Arch Linux No Audio

HDMI is your default card.  Change it to card 1 PCH

https://wiki.archlinux.org/index.php/Ad … sound_card

E.g., in an asoundrc:

pcm.!default {
    type hw
    card 1
}

ctl.!default {
    type hw
    card 1
}

Last edited by Trilby (2020-05-26 22:19:52)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-05-26 22:27:33

cerealfordinner
Member
Registered: 2020-05-26
Posts: 8

Re: Fresh Install of Arch Linux No Audio

Should i create that file in the home directory or directly in root?


Trilby wrote:

HDMI is your default card.  Change it to card 1 PCH

https://wiki.archlinux.org/index.php/Ad … sound_card

E.g., in an asoundrc:

pcm.!default {
    type hw
    card 1
}

ctl.!default {
    type hw
    card 1
}

Offline

#4 2020-05-26 22:29:18

cerealfordinner
Member
Registered: 2020-05-26
Posts: 8

Re: Fresh Install of Arch Linux No Audio

nvm i see it should be /etc/asound.conf

So i made that change and I am now able to get audio from the laptop speakers but it is registering as headphone in alsamixer.

Last edited by cerealfordinner (2020-05-26 22:38:42)

Offline

#5 2020-05-26 22:38:05

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

Re: Fresh Install of Arch Linux No Audio

cerealfordinner wrote:

Should i create that file in the home directory or directly in root?

arch wiki wrote:

The system configuration file is /etc/asound.conf, and the per-user configuration file is ~/.asoundrc.

https://wiki.archlinux.org/index.php/Ad … figuration


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

Offline

#6 2020-05-27 00:13:14

cerealfordinner
Member
Registered: 2020-05-26
Posts: 8

Re: Fresh Install of Arch Linux No Audio

So the audio works, but upon each login the audio is muted by default and i have to raise the volume of the headphones in order for the speakers to work and then after that i can mute headphones and my speakers still work. Really strange.

Offline

#7 2020-05-27 05:22:16

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

Re: Fresh Install of Arch Linux No Audio

Did you try using either of those services?
https://wiki.archlinux.org/index.php/Ad … nd_Systemd

Online

#8 2020-05-27 12:53:15

cerealfordinner
Member
Registered: 2020-05-26
Posts: 8

Re: Fresh Install of Arch Linux No Audio

I haven't tried adding those services to startup just yet because i'm trying to  fix the mixed up audio interfaces. I think i have narrowed down the issue though, that being that being that my headphone volume controls my speakers and switching outputs will by default mute the other channel, which is fine because that's how it's intended to work i suppose. So i guess i need some way to remap or route my speakers so they are controlled by the speaker volume and not the headphones. It's strange because my mixer shows audio coming out of my speakers, which it is, even though it's still controlled with the headphone volume control.

Audio-Issues.png

seth wrote:

Did you try using either of those services?
https://wiki.archlinux.org/index.php/Ad … nd_Systemd

Offline

#9 2020-05-27 13:40:32

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

Re: Fresh Install of Arch Linux No Audio

Please shrink the thumbnail (200x200 max) or just use a link.

Sure the volume systematically controls the wrong output?

after that i can mute headphones and my speakers still work

The idea was to restore the state with the boot, getting you into a defined one and from there hopefully in sane behavior.

What device (lspci) is this specifically?
https://wiki.archlinux.org/index.php/Ad … sound_card

Also cut out the GUI, check the behavior in "alsamixer".

Online

#10 2020-05-27 14:37:12

cerealfordinner
Member
Registered: 2020-05-26
Posts: 8

Re: Fresh Install of Arch Linux No Audio

[cerealfordinner@honeydew ~]$ lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.5 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 6 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
01:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)

I'm sorry for the confusion, i ended up doing a fresh install to make sure nothing i added originally was conflicting, but i have the same issue now. I think i have narrowed the issue down to the muting of the channels. When i mute audio using the keyboard or the applet it mutes both the Master and the Speaker, but unmuting only unmutes the Master and not the other channels.

From a fresh boot though in Alsamixer both the Master and Speaker will be maxed out, but with no audio. The only thing that will get speaker audio to work is unmuting a raising the Headphone level and then i can mute the Headphone and the Speaker controls work after that.

Last edited by cerealfordinner (2020-05-27 14:40:57)

Offline

#11 2020-05-27 17:21:14

cerealfordinner
Member
Registered: 2020-05-26
Posts: 8

Re: Fresh Install of Arch Linux No Audio

In an effort to accurately explain what's going on I did a quick screen recording that shows the issue.

https://vimeo.com/423274305

Last edited by cerealfordinner (2020-05-27 18:25:36)

Offline

#12 2020-05-27 20:12:47

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

Re: Fresh Install of Arch Linux No Audio

Cut out pulseaudio. Stop the daemon, check the behavior.
You can use https://wiki.archlinux.org/index.php/Ad … cture#Dmix if you need a mixer. Eg. mpv, vlc and mplayer will all work fine w/o pulseaudio.

Online

#13 2020-05-27 21:19:13

cerealfordinner
Member
Registered: 2020-05-26
Posts: 8

Re: Fresh Install of Arch Linux No Audio

How can this be done, i tried running a systemctl stop and systemctl disable, but it is saying pulseaudio.service is not loaded. I don't necessarily need a mixer i just want to not have to unmute and use the headphone volume channel to control my speakers. I don't know if you were able to view the video i posted.

seth wrote:

Cut out pulseaudio. Stop the daemon, check the behavior.
You can use https://wiki.archlinux.org/index.php/Ad … cture#Dmix if you need a mixer. Eg. mpv, vlc and mplayer will all work fine w/o pulseaudio.

Offline

#14 2020-05-28 06:09:10

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

Re: Fresh Install of Arch Linux No Audio

The most reliable way will be "sudo pacman -Rs pulseaudio" (ie. just remove it from the system.

Otherwise it's also socket activated (and a "--user" service) and has an xdg autostart entry: https://wiki.archlinux.org/index.php/PulseAudio#Running

Online

Board footer

Powered by FluxBB