aplay -l = command not found
|
13th Jun, 2015, 12:26 AM
Post: #1
|
|||
|
|||
aplay -l = command not found
As above, after adding the hifiberry overlay to config.txt and rebooting I get the above message.
I tried aplay -l and sudo aplay -l, both with the same results. I re-downloaded the image and flashed again, fully updated and upgraded to the latest image, still have this problem. I was following the thread here to try and get it working again..... http://www.hifiberry.com/guides/configuring-linux-3-18-x/ Any help out there please? S. |
|||
13th Jun, 2015, 01:48 AM
(This post was last modified: 13th Jun, 2015 10:29 PM by deHakkelaar.)
Post: #2
|
|||
|
|||
RE: aplay -l = command not found
Terminal $ apt-cache search aplay alsa-utils - Utilities for configuring and using ALSA $ apt-cache show alsa-utils Version: 1.0.25-4 Architecture: armhf Included tools: - aplay, arecord: command line playback and recording $ sudo apt-get install alsa-utils There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
13th Jun, 2015, 03:26 AM
Post: #3
|
|||
|
|||
RE: aplay -l = command not found
Thank you for the helpful reply.
The first 2 commands gave expected results, but the third one failed. I tried sudo apt-get install alsa-base && sudo apt-get install alsa-utils, but it does not work. Then I tried this with the following result. Code: sudo apt-get -f install Thanks skywatch. |
|||
13th Jun, 2015, 10:20 PM
(This post was last modified: 13th Jun, 2015 10:48 PM by deHakkelaar.)
Post: #4
|
|||
|
|||
RE: aplay -l = command not found
I just now tried myself without errors:
Terminal # Install alsa-utils: $ sudo apt-get install alsa-utils The following NEW packages will be installed: alsa-utils Setting up alsa-utils (1.0.25-4) ... # Test aplay: $ aplay -l aplay: device_list:252: no soundcards found... # List loaded kernel modules and grep for sound: $ lsmod | grep snd_bcm2835 # Load the sound kernel module: $ sudo modprobe snd_bcm2835 # List loaded kernel modules and grep for sound: $ lsmod | grep snd_bcm2835 snd_bcm2835 15307 0 snd_pcm 60644 4 snd_bcm2835,snd_soc_wm8804,snd_soc_core,snd_pcm_dmaengine snd 38008 5 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_compress # Test aplay: $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] I had to do a modprobe to get the sound card driver loaded (see above). To have the soundcard driver loaded at every boot (persistent) : Terminal sudo echo "snd_bcm2835" >> /etc/modules Try to run below one first before trying to install anything: Terminal sudo apt-get update And if still not working, drop the output for "sudo apt-get install alsa-utils" on pastebin and post link here please ? http://pastebin.com/ There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
13th Jun, 2015, 10:46 PM
Post: #5
|
|||
|
|||
RE: aplay -l = command not found
Thanks for the help.
Here's the result from what you suggested.... Code: xbian@xbian ~ $ sudo modprobe snd_bcm2835 I also note the comment about /etc/modules and was under the impression that this was no longer needed as you only have to add the device tree layer to /boot/config.txt, which I have done (with no success)...... And the output from install alsa-utils is as follows...... Code: xbian@xbian ~ $ sudo apt-get install alsa-utils Thanks again. skywatch. |
|||
13th Jun, 2015, 11:09 PM
Post: #6
|
|||
|
|||
RE: aplay -l = command not found
Yeah your right, device tree layer is the way to go.
But you still have not run "sudo apt-get update" ? And it looks like you installed "xbian-package-xbmc-alsa" yourself while not needed. I dont have it installed on my Pi's: Terminal $ sudo dpkg -l xbian-package-xbmc-alsa dpkg-query: no packages found matching xbian-package-xbmc-alsa To remove: Terminal sudo apt-get remove xbian-package-xbmc-alsa Fix install afterwards: Terminal sudo apt-get -f install And try again: Terminal sudo apt-get install alsa-utils There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
13th Jun, 2015, 11:24 PM
Post: #7
|
|||
|
|||
RE: aplay -l = command not found
Thank you.
I discovered something while doing this, and that is that..... sudo apt-get install alsa-base && sudo apt-get install alsa-utils is not the same as...... sudo apt-get install alsa-base alsa-utils The first one didn't work at all, the second one did! I also see that you are using snd_bcm2835 whereas I have always used snd_bcm2708. Is that an issue for an original pi model b? I am out of time for this for now, but this evening or tomorrow morning I will make a fresh intstall and see how I get on. If possible can you post the steps needed to make this work on a fresh install using DT? Then we both know where we are! ;-) Thanks once more, skywatch |
|||
14th Jun, 2015, 12:00 AM
Post: #8
|
|||
|
|||
RE: aplay -l = command not found
(13th Jun, 2015 11:24 PM)Skywatch Wrote: I also see that you are using snd_bcm2835 whereas I have always used snd_bcm2708. Is that an issue for an original pi model b?Whatever works for you. (13th Jun, 2015 11:24 PM)Skywatch Wrote: I am out of time for this for now, but this evening or tomorrow morning I will make a fresh intstall and see how I get on. If possible can you post the steps needed to make this work on a fresh install using DT? Then we both know where we are! ;-) Dont know what you mean with "DT" but all steps I needed to do to get aplay to work, I posted before already: Terminal sudo apt-get install alsa-utils sudo modprobe snd_bcm2835 aplay -l There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
14th Jun, 2015, 02:33 AM
Post: #9
|
|||
|
|||
RE: aplay -l = command not found
It has occured to me that you might be using a USB DAC whereas I am (would be) using a I2S DAC.
Maybe that's the difference? Anyway after yet another clean install I finally got alsa-utils to install and the sound card recognised. I tested it and got sound. But there are issues...... The sound stutters badly every time the mouse is moved. The sound stutters even worse when a music folder is scanning into the library. It wasn't like this before, so a new problem I guess. I have posted it on github for the 'brainy people' to have a look into! Thank you very much for the help, it is very much appreciated. Skywatch. |
|||
14th Jun, 2015, 03:24 AM
Post: #10
|
|||
|
|||
RE: aplay -l = command not found
A USB DAC?
Only DAC that I use is in me connected AV receiver via HDMI. There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
14th Jun, 2015, 04:17 AM
Post: #11
|
|||
|
|||
RE: aplay -l = command not found
Aha! - That could be the reason as I use a DAC connected to the I2C pins on the pi.
Thanks anyway, at least I can listen to some music again now. Skywatch |
|||
14th Aug, 2015, 11:45 PM
Post: #12
|
|||
|
|||
RE: aplay -l = command not found
(14th Jun, 2015 12:00 AM)deHakkelaar Wrote:(13th Jun, 2015 11:24 PM)Skywatch Wrote: I also see that you are using snd_bcm2835 whereas I have always used snd_bcm2708. Is that an issue for an original pi model b?Whatever works for you. xbian@xbian ~ $ sudo apt-get install alsa-utils Reading package lists... Done Building dependency tree Reading state information... Done Package alsa-utils is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'alsa-utils' has no installation candidate xbian@xbian ~ $ sudo modprobe snd_bcm2835 xbian@xbian ~ $ aplay -l -bash: aplay: command not found xbian@xbian ~ $ |
|||
14th Aug, 2015, 11:49 PM
Post: #13
|
|||
|
|||
RE: aplay -l = command not found
Can you all use code tags (also edit previous posts incoorporating them).
pilight - modular domotica solution
|
|||
20th Aug, 2015, 02:03 AM
Post: #14
|
|||
|
|||
RE: aplay -l = command not found
done!
|
|||
20th Aug, 2015, 03:17 AM
Post: #15
|
|||
|
|||
RE: aplay -l = command not found
(14th Aug, 2015 11:45 PM)bonestaak Wrote: xbian@xbian ~ $ sudo apt-get install alsa-utils Sorry, missed your reply. That is very strange. I have that "alsa-utils" package available on all my Pi's: Terminal xbian@pi ~ $ sudo apt-cache show alsa-utils [sudo] password for xbian: Package: alsa-utils Version: 1.0.25-4 Architecture: armhf Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org> Installed-Size: 1941 Depends: lsb-base (>= 3.0-9), kmod, whiptail | dialog, libasound2 (>= 1.0.25), libc6 (>= 2.13-28), libgcc1 (>= 1:4.4.0), libncursesw5 (>= 5.6+20080119), libsamplerate0 (>= 0.1.7), libtinfo5 Recommends: alsa-base (>= 1.0.15), pciutils Provides: audio-mixer Homepage: http://www.alsa-project.org/ Priority: optional Section: sound Filename: pool/main/a/alsa-utils/alsa-utils_1.0.25-4_armhf.deb Size: 1165258 SHA256: 063a64953df0a278fc10a0ebc552d36d423fa97d77574f220a198c3f054e96cb SHA1: 7ecffacaef00b474964e625f5bc9653427193188 MD5sum: c613fff68710426173ec2b19a4e2e3ca Description: Utilities for configuring and using ALSA Included tools: - amixer: command line mixer - alsamixer: curses mixer - amidi: read from and write to ALSA RawMIDI ports - aplay, arecord: command line playback and recording - aplaymidi, arecordmidi: command line MIDI playback and recording - aconnect, aseqnet, aseqdump: command line MIDI sequencer control . ALSA is the Advanced Linux Sound Architecture. Whats the output from below one: Terminal cat /etc/apt/sources.list and: Terminal cat /etc/apt/sources.list.d/xbian.list and: Terminal apt-cache search "alsa-" There are only 10 types of people in the world: those who understand binary, and those who don't |
|||
« Next Oldest | Next Newest »
|