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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-09-2006, 09:13 AM
|
#1
|
|
Member
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153
Rep:
|
No sound after installing ALSA
I've got the same problem as logicalfuzz in his/her thread.
I am in the mid-way of having ALSA in place on my (B)LFS 6.1. I installed ALSA-lib, ALSA-plugins, ALSA-utils. When I tried to configure the utils with alsaconf it says something like
Quote:
#alsaconf
modinfo : could not find module snd
...
which : dialog not found
which : whiptail not found
Error, dialog or whiptail not found.
|
"which" seems to be in place, but I can't understand what dialog and whiptail are (neither LFS nor BLFS indexes contain anything alike). BTW, lspci lists my AC97 on-board sound "card"
Quote:
#lspci
...
... Multimedia audio controller: VIA VT82C686A (rev 10)...
|
no unknown things listed, so LFS found my soundcard.
I tried to recompile the kernel without any modules - no changes.
Last edited by Vitalie Ciubotaru; 03-11-2006 at 04:03 AM.
|
|
|
|
03-09-2006, 10:14 AM
|
#2
|
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 3,923
|
In Fedora, and, I suspect, any system using ALSA, you need to define the sound driver in /etc/modprobe.conf
Code:
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-<your driver name>
# OSS/Free portion
alias char-major-14 soundcore
# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
Also (again, on Fedora, but I suspect others) ALSA initially defaults to all sound muted. Check /etc/asound.state for the ALSA device states and levels. (Those are usually set by amixer, but, without the dialog tools, I think amixer won't work very well.)
|
|
|
|
03-09-2006, 08:56 PM
|
#3
|
|
Member
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153
Original Poster
Rep:
|
PTrenholme, thank you for the information above (and below - I edited this after you posted the quote on whiptail).
I consulted the modprobe.conf on my Fedora Core 3, which produces sound with no problem, and think that the problem is not in this file. My FC3 finds the soundcard and creates devices (pcmC0D0c, PCMC0D0p, timer and smth else) in /dev/snd directory, while LFS creates similar devices in /dev directory.
Can this be the reason why my ALSA doesn't find them?
Last edited by Vitalie Ciubotaru; 03-11-2006 at 04:14 AM.
|
|
|
|
03-10-2006, 08:39 AM
|
#4
|
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 3,923
|
From a quick Google for whiptail: At RPMFind
Quote:
|
Dialog compliant utility that allows you to build user interfaces in a TTY (text mode only). You can call dialog from within a shell script to ask the user questions or present with choices in a more user friendly manner.
|
Dialog (and gdialog) are similar "window on terminal" display programs.
|
|
|
|
03-11-2006, 04:23 AM
|
#5
|
|
Member
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153
Original Poster
Rep:
|
Thank you once again.
I found dialog on my Fedora Core 3 and read the manual to it (now I see that whiptail is the same thing). I simply copied the executable (don't know how wise it is) from /usr/bin of FC3 to /usr/bin of LFS. Now alsaconf doesn't complain about dialog/whiptail, but still produces error (it can't find my card/device). The same is true, for example, for alsamixer - it says it can't find the default card/device, but I do not know their names. Are they different from other distros?
|
|
|
|
03-11-2006, 07:30 AM
|
#6
|
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 3,923
|
Assumption here -- I may be wrong -- but if you're doing LFS, don't you have to build your own sound driver? If so, it's wherever you put it, and called whatever you called it. I also suspect that you need to compile sound support into your kernel, and the source code -- or the LFS documentation -- should go into some detail about where the drivers are located and how to build them. (I also suspect that it tells you how to change those locations to suit yourself.)
|
|
|
|
03-12-2006, 10:17 AM
|
#7
|
|
Member
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153
Original Poster
Rep:
|
I am completely confused.
PTrenholme said I presumably "have to build [my] own sound driver". Stupid question, but still: what does the word "own" mean/imply?
I followed BLFS instructions and built ALSA Libraries, ALSA Plugins and ALSA Utilities (alsaconf, alsamixer and the like). I know that there is an ALSA Drivers package, but there's nothing about it in the BLFS documentation, so I did not build it.
PTrenholme suspects I "need to compile sound support into [my] kernel".
I still need additional comments on that.
I enabled sound support in my kernel, tried to enable/disable/modularize support for my sound card (which is specified above), I even tried to build it all as modules - no changes. I definitely didn't (re)assign any names and didn't move anything for the mere reason that the instructions do not say that.
Help!
|
|
|
|
03-15-2006, 10:28 AM
|
#8
|
|
Member
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153
Original Poster
Rep:
|
Thank you for your participation. However, I am stuck with this problem.
In order to get any further, I need structured answers to the following questions (if I'm mixing up things, please correct me):
1. The kernel. In order to get my soundcard (on-board, VIA686A chip based, AC97) working, shall I (re)build the kernel:
a) with sound support enabled or modularized?
b) with my type of soundcard enabled or modularized (or maybe disabled as the ALSA website suggests)?
c) other things enabled or modularized (and which namely)?
2. The ALSA package.
a) How can I find out that my operating system recognized (found) the soundcard, and its just ALSA that can't interact with it? In this case, it just has to be configured properly, right?
b) How is it configured?
If anyone encountered the same or similar problems, and solved them successfully, or just knows the answer to a particular question I posed please let me know.
Vitalie CIUBOTARU
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:06 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|