LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 03-01-2013, 05:11 AM   #1
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 301

Rep: Reputation: 59
Need help with alsa (no sound)


I've been struggling for several days now to get sound working, but still no luck. I have installed alsa-lib, alsa-plugins and alsa-utils. I have also installed flashplugin (I can see youtube videos, but no sound), and all the gst-plugins and most of the optional dependencies (and of course all required.)
lspci -k (the relevant part):
Code:
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
	Subsystem: ASRock Incorporation Device 2718
	Kernel driver in use: snd_hda_intel

Code:
$ lsmod
Module                  Size  Used by
snd_hda_codec_hdmi     22850  1 
snd_hda_codec_via      36503  1 
snd_hda_intel          22468  0 
snd_hda_codec          75385  3 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
snd_hwdep               6053  1 snd_hda_codec
snd_pcm                72206  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          6874  2 snd_pcm,snd_hda_intel
snd_timer              17759  1 snd_pcm
snd                    54307  7 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_via,snd_pcm,snd_hda_codec,snd_hda_intel
Code:
# alsactl init
Found hardware: "HDA-Intel" "Intel IbexPeak HDMI" "HDA:11064428,18492718,00100100 HDA:80862804,80860101,00100000" "0x1849" "0x2718"
Hardware is initialized using a generic method
Code:
$ speaker-test

speaker-test 1.0.26

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
Time per period = 2.836130
 0 - Front Left
Time per period = 2.986532
 0 - Front Left
Time per period = 2.986553
 0 - Front Left
Time per period = 2.986557
 0 - Front Left
^C
Nothing heard in the speaker.

I have run alsamixer, and no channel is muted.

Code:
$ mpg123 Data/Musik/Motörhead/Ace\ Of\ Spades/Ace_of_Spades.mp3 
[module.c:142] error: Failed to open module alsa: file not found
[module.c:142] error: Failed to open module oss: file not found
[audio.c:180] error: Unable to find a working output module in this list: alsa,oss
[audio.c:532] error: Failed to open audio output module
[mpg123.c:897] error: Failed to initialize output, goodbye.
I got the same error when I tried as root. I'm a member of group audio.

Edit: Sound works in Arch and Slackware on the same machine.

Last edited by Lennie; 03-01-2013 at 05:15 AM.
 
Old 03-01-2013, 07:30 AM   #2
elucches
Member
 
Registered: Jan 2011
Posts: 82

Rep: Reputation: 7
Did you try aplay -L to then run speaker-test on other devices than the default one?
 
Old 03-01-2013, 08:15 AM   #3
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 301

Original Poster
Rep: Reputation: 59
Code:
$ speaker-test  -Dfront:Intel -c 6

speaker-test 1.0.26

Playback device is front:Intel
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 22 to 5461
Period size range from 11 to 2730
Using max buffer size 5460
Periods = 4
was set period_size = 1365
was set buffer_size = 5460
 0 - Front Left
 4 - Center
 1 - Front Right
 3 - Rear Right
 2 - Rear Left
 5 - LFE
Time per period = 17.800754
I hear noice when it says Front Left and Front Right.

How do I continue from here?
 
Old 03-01-2013, 08:38 AM   #4
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 301

Original Poster
Rep: Reputation: 59
Strange, now suddenly it works, also with the default channel. (I haven't done any changes, not even rebooted...) Youtube works, but I still get the same error from mpg123. I want to be able to listen to mp3 also. I tried googling the error, but I only found it was about permission. I get the same error as root.

Edit: After a second thought, I haven't planned to use mpg123 now. I only installed it to try the sound, in case the problem was with flash. I mark this thread as solved now, and if I can't get Spotify working, I'll start a new thread about it then.

Edit2: Spotify works!

Last edited by Lennie; 03-01-2013 at 01:39 PM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 12 + ALC268 + Alsa-driver 1.0.18 = ALSA Error =No Sound (Tried erverything) morphynoman Slackware 9 12-04-2008 07:29 AM
Slackware 12 + ALC268 + Alsa-driver 1.0.18 = ALSA Error =No Sound (Tried erverything) morphynoman Linux - Hardware 2 11-12-2008 12:48 PM
problem with ALSA, no sound through alsa, oss works SB Live! 5.1 Michalxo Linux - Hardware 2 01-21-2007 05:24 AM
Alsa sound *jumpy*: alsa-space: xrun of at least 11.449 msecs. resetting stream qwijibow Linux - General 6 04-22-2006 07:35 PM


All times are GMT -5. The time now is 12:57 PM.

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