Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 12-17-2012, 03:55 PM   #1
LQ Newbie
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
Mpg123 not working - no audio output

Hi, I just installed Mpg123-1.14.4 in my LFS 7.2.

I run the command:

mpg123 Gerudo Valley.mp3

The output was:

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.14.4; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes

Playing MPEG stream 1 of 1: Gerudo Valley.mp3 ...

MPEG 1.0 layer III, VBR, 44100 Hz joint-stereo
Title: Gerudo Valley Artist: Koji Kondo
Comment: PCCG-00475
Album: The Legend of Zelda Ocarina of Time Original Sound Track
Year: 1998 Genre: Game

There's no output sound. After that I booted into Ubuntu and chrooted to LFS 7.2, I run the same comands and it worked.

There's any package to output sound in LFS that I'm missing?

Thanks in advance.
Old 12-17-2012, 04:18 PM   #2
Senior Member
Registered: Jan 2011
Distribution: /LFS/Centos6.3/Debian
Posts: 2,221
Blog Entries: 1

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336

Have you tried running it as root from lfs

And is the user a member of the audio group

Dont know if this helps
Old 12-17-2012, 07:46 PM   #3
LQ Newbie
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Yep! I'm currently running as root and I've configured correctly the group file adding the proper privileges.

I tried to troubleshoot that with aplay tool, alsamixer and sound-test, no one worked. I think I'm lacking some drivers to detect my soundcard because in alsamixer I only have:

0 Dummy
2 pcsp
3 HDA Intel PCH

Just works the card0, others ones display errors.

I also recompiled the kernel and added some features to menuconfig, none worked.

Please help.
Old 02-06-2013, 11:35 AM   #4
LQ Newbie
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
I am having the same problem. LFS 7.2, mpg123 works in chroot but not independently. The kernel is configured with my laptop Intel HD audio drivers. Have you found a solution?
Old 02-08-2013, 02:31 PM   #5
Keith Hedger
Senior Member
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,479

Rep: Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620
Have you tried initing alsa? I had to do this:
alsactl init
alsactl store
as root before I had sound ( but I do use the proprietary nvidia driver )
Old 02-08-2013, 05:37 PM   #6
LQ Newbie
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
Actually, I had only installed alsa-lib prior to mpg123. I noticed that alsa-lib did NOT put any default *.conf files anywhere so I:

cat > /etc/skel/.asoundrc <<"EOF"
# Begin .asoundrc
pcm.!default {
type hw
card 0

ctl.!default {
type hw           
card 0
# end

cp /etc/skel/.asoundrc /root/
Which may not have necessary. Then I continued on to build alsa-plugins & alsa-utils according to LFS 7.2 instructions and mpg123 just started working. Now I have sound on my LFS machine, its on to X11 ...


not working, output, sound

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multimedia audio output not working in Suse 11.2? brianpbarnes Linux - Software 2 11-25-2009 08:51 PM
Audio not output while playing vambhan Linux - Newbie 7 03-09-2009 07:37 AM
Listen to Audio CD From Command Line with mpg123 anamericanjoe Linux - Software 2 07-07-2007 02:33 PM
mpg123 no audio rate supported PowerZ24 Linux - Software 1 12-20-2006 05:42 AM
mixer or audio output not working hellfire73 Linux - Software 1 03-22-2006 01:11 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration