You are not logged in.

#1 2014-12-26 13:56:15

rsupremo
Member
Registered: 2014-11-30
Posts: 13

No sound with ALSA sound

I have an installation on USB flash drive with KDE. After installing I was not able to play sound in Amarok & Chrome (didn't try other apps) but speaker-test worked ok. I booted this Arch installation[ from other laptop out of curiosity where the sound worked without problems. After returning back to original laptop where the installation was done, now alsospeaker-test and aplay produce no sound.

Here is output of alsa-info.sh https://www.scribd.com/doc/251043152/al … 3IYvAeZWVw

lspci shows for audio:  00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)

Can you please help me troubleshoot this?

Offline

#2 2014-12-26 15:10:58

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: No sound with ALSA sound

To have a USB installation, your setup should be mostly generic. So, no autodetect in mkinicpio.conf and non special module setting in /etc/modprobe.d/
You should try to boot the initramfs-fallback.img at first. Give short detailed outputs and already tried some fixes.
On the originting PC what is

aplay -l

do it good first, it will be faster than do it twice the saint wink

Offline

#3 2014-12-26 16:03:31

rsupremo
Member
Registered: 2014-11-30
Posts: 13

Re: No sound with ALSA sound

I am not aware of any special settings. I created RAM disk using  default way by mkinitcpio -p linux.

The result of aplay -l is

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD1984A Analog [AD1984A Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: AD1984A Alt Analog [AD1984A Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

and for aplay -L

null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=Intel
    HDA Intel, AD1984A Analog
    Default Audio Device
sysdefault:CARD=Intel
    HDA Intel, AD1984A Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, AD1984A Analog
    Front speakers
surround21:CARD=Intel,DEV=0
    HDA Intel, AD1984A Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, AD1984A Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, AD1984A Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, AD1984A Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, AD1984A Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, AD1984A Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Intel,DEV=0
    HDA Intel, HDMI 0
    HDMI Audio Output

The aplay -D command worked only on first two PCMs and reported no error. But I was not able to hear any sound neither from speakers no from headphones.

Can you please give mo more details how to boot with initramfs-fallback.img? As this is an unknown topic for me. EDIT: From Grub menu I chose to boot with fallback image and tried the sound: still not change.

Last edited by rsupremo (2014-12-26 17:53:05)

Offline

#4 2014-12-26 18:59:16

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: No sound with ALSA sound

Device: name="AD1984A Analog", type="Audio", device=0
Device: name="AD1984A Alt Analog", type="Audio", device=2

Choose the right sub-device wink

The aplay -D command worked only

Show the *full* command that you used - if you write so vaguely, we don't know what trivial mistakes you're making.

Offline

#5 2014-12-26 19:59:19

rsupremo
Member
Registered: 2014-11-30
Posts: 13

Re: No sound with ALSA sound

I tried

aplay -vv -D default

and

aplay -vv -D sysdefault

. What do you mean by choosing the right subdevices? I am not sure if I understand what you are implying. Can you show me an example of what neeeds to be done in my case?

Last edited by rsupremo (2014-12-26 20:02:03)

Offline

#6 2014-12-26 20:05:23

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: No sound with ALSA sound

See ALSA wiki for subdevices.

Try e.g. "hw:0,2", just so that you can find the correct subdevice.

Offline

#7 2014-12-26 20:15:18

rsupremo
Member
Registered: 2014-11-30
Posts: 13

Re: No sound with ALSA sound

Here is the output of various attempts:

aplay -D "hw:0,0" test.wav 
Playing WAVE 'test.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono
aplay: set_params:1233: Sample format non available
Available formats:
- S16_LE
- S32_LE


aplay -D "hw:0,2" test.wav 
aplay: main:722: audio open error: Device or resource busy


aplay -D "hw:0,3" test.wav 
Playing WAVE 'test.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono
aplay: set_params:1233: Sample format non available
Available formats:
- S16_LE
- S32_LE
- IEC958_SUBFRAME_LE

I dont' understand why on devices default and sysdefault this works. Are they different devices than hw 0,0 and hw 0,2?

Offline

#8 2014-12-26 20:45:47

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: No sound with ALSA sound

rsupremo wrote:

aplay: main:722: audio open error: Device or resource busy

Argh, you probably have pulseaudio and KDE's nuttiness, opening the audio and preventing this little test from working.

Take a look:

fuser -fv /dev/snd/*

Offline

#9 2014-12-26 20:54:21

rsupremo
Member
Registered: 2014-11-30
Posts: 13

Re: No sound with ALSA sound

I had pulse audio installed but then uninstalled it.
Here is output of fuser:

fuser  -fv /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  dbf        2811 F.... kded4
                     dbf        2909 F.... kmix

EDIT: After shutting down xserver & KDE I ran the same user command and there was no result.

Last edited by rsupremo (2014-12-26 20:57:29)

Offline

#10 2014-12-27 03:30:00

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: No sound with ALSA sound

brebs wrote:

Try e.g. "hw:0,2", just so that you can find the correct subdevice.

To continuously change device is troublesome with a portable installation. Mine is not, I don't bother for any audio device big_smile


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB