You are not logged in.

#1 2014-04-11 01:35:20

straemer
Member
Registered: 2014-04-11
Posts: 6

[SOLVED]No Sound Output to Laptop Speakers

Hi, I installed Arch on my laptop, and am having some issues getting sound to work. From what I've seen, this post seems to have been slightly helpful, in that I was able to get sound with the command

peaker-test -c 2 -D plughw:0

Although I'm not sure what to do to get it working for actual applications. Would anyone be able to help me with this?

Some (hopefully) useful info about my setup:

[stephen@laptop ~]$ ls -la /dev/snd
total 0
drwxr-xr-x   3 root root      300 Apr 10 20:41 .
drwxr-xr-x  20 root root     3280 Apr 10 20:41 ..
drwxr-xr-x   2 root root       80 Apr 10 20:41 by-path
crw-rw----+  1 root audio 116,  7 Apr 10 20:41 controlC0
crw-rw----+  1 root audio 116, 11 Apr 10 20:41 controlC1
crw-rw----+  1 root audio 116,  6 Apr 10 20:41 hwC0D0
crw-rw----+  1 root audio 116, 10 Apr 10 20:41 hwC1D0
crw-rw----+  1 root audio 116,  5 Apr 10 20:42 pcmC0D0c
crw-rw----+  1 root audio 116,  4 Apr 10 20:42 pcmC0D0p
crw-rw----+  1 root audio 116,  3 Apr 10 20:42 pcmC0D1p
crw-rw----+  1 root audio 116,  2 Apr 10 20:41 pcmC0D2c
crw-rw----+  1 root audio 116,  9 Apr 10 20:43 pcmC1D3p
crw-rw----+  1 root audio 116,  8 Apr 10 20:42 pcmC1D7p
crw-rw----+  1 root audio 116,  1 Apr 10 20:41 seq
crw-rw----+  1 root audio 116, 33 Apr 10 20:41 timer
[stephen@laptop ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/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
[stephen@laptop ~]$ cat /etc/modprobe.d/alsa-base.conf
options snd_hda_intel
options snd_hda_intel index=0

pcm.!default {
    type hw
    card 0
}

ctl.!default {
    type hw
    card 0
}

http://www.alsa-project.org/db/?f=7c585 … ce6622283c

I'm running KDE with kdemultimedia-kmix if that's at all relevant.

Last edited by straemer (2014-04-11 17:13:15)

Offline

#2 2014-04-11 06:28:07

henz
Member
From: Gothenburg, Sweden
Registered: 2014-04-09
Posts: 2

Re: [SOLVED]No Sound Output to Laptop Speakers

open up amixer(alsa utils) and check if you have unmuted everything that needs to be unmuted.


Do you want beef or chicken? Yes.

Offline

#3 2014-04-11 10:58:49

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED]No Sound Output to Laptop Speakers

Your ~/.asoundrc should read:

defaults.pcm.!card "PCH"; 
defaults.ctl.!card "PCH";

After that you can delete alsa-base.conf, which only reorders cards and therefore sets default soundcard as 0.

pcm.!default {
    type hw
    card 0
}

ctl.!default {
    type hw
    card 0
}

That part must not be inside alsa-base.conf anyway, it sits usually in ~/.asoundrc, but because you use type hw, it would block any other application from using that soundcard.

Offline

#4 2014-04-11 15:15:33

straemer
Member
Registered: 2014-04-11
Posts: 6

Re: [SOLVED]No Sound Output to Laptop Speakers

Hi, thanks for the reply. Nothing important seems to be muted on amixer:

[stephen@laptop ~]$ amixer -c 0
Simple mixer control 'Master',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 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 0 [0%] [-64.00dB] [off]
  Front Right: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'Speaker',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 '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',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
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: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 46 [100%] [30.00dB] [on]
  Front Right: Capture 46 [100%] [30.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' 'Speaker Only' 'Line Out+Speaker'
  Item0: 'Line Out+Speaker'
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '4ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Internal Mic' 'Mic' 'Line'
  Item0: 'Internal Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Internal Mic' 'Mic' 'Line'
  Item0: 'Internal Mic'
Simple mixer control 'Internal Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Internal 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]

The headphone and speaker section mute/unmute when headphones are plugged in, so it seems normal to me.
I setup my ~/.asoundrc as emeres suggested, and deleted my /etc/modprobe.d/alsa-base.conf, rebooted, but still didn't notice a change.

Offline

#5 2014-04-11 16:22:00

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED]No Sound Output to Laptop Speakers

Sorry, I have overlooked that you are using pulseaudio, which means that PA is set as default output in /etc/asound.conf. It should work after killing PA, which probably uses your PCH card.

fuser -v /dev/snd/*

But since you probably want to continue to use it, my ~/.asoundrc suggestion is redundant and disabling jack sense should help. Either get back alsa-base.conf but this time use vid and pid to determine your cards and reconfigure PA or disable jack sense using hdajackretask (activate adv conf).
There is one other possibility however, depending on your hardware, both speakers and headphone jack might be in the same signal path, where jack socket has a circuit breaker, so when plugged in, there is no physical connection to the speakers and therefore it is not possible to get speakers running at the same time with an occupied jack. If before loading OS (stilll in bios/uefi boot sequence) you can hear static with maximal volume from the speakers and then plug headphones in, if the static is in headphones only, your speakers very likely use the same signal path, if not hdajackretask should help.
For that first suggestion something like this should work:

options snd-hda-intel index=0 model=auto vid=1002 pid=4383

You can determine vid and pid with:

lspci -nn | grep -i audio

and check last numbers in square brackets for your card (for the above example [1002:4383])

Last edited by emeres (2014-04-11 16:24:58)

Offline

#6 2014-04-11 17:12:23

straemer
Member
Registered: 2014-04-11
Posts: 6

Re: [SOLVED]No Sound Output to Laptop Speakers

Alright, it looks like I got this working after changing my alsa-base.conf, and tinkering around with pulse audio settings. It looks like PA was setting HDMI to be my default output device for some reason. The info on the wiki seemed to help though. Thanks for the help!

Offline

Board footer

Powered by FluxBB