Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Dell Inspiron 600m and am trying to get Gentoo working on it. I compiled everything from source and so far everything is working except for sound. In KDE, the Control Center and media applications don't see any sound devices. My USE flags did not include "alsa". I hope that's not a problem?
I tried using a Ubuntu LiveCD, and sound works fine with their autodetection. I compiled snd_intel8x0 as a module and loaded it, and below are the relevant console outputs. I've also tried emerging alsa-headers, alsa-lib, and alsa-utils and ran alsaconf, but that didn't do anything either.
What's the best way to recompile everything affected? I'm not sure what the relevant packages are. I only emerged kde-meta and some small applications. I don't mind having to recompile kde-meta again even though it's going to take a long time.
I updated /etc/make.conf to include alsa in the USE and then tried "emerge -pvuN kde-meta" and it says "Total size of downloads: 0 kB" What should I do?
About 40 packages were re-emerged with the alsa USE flag set, but the sound still doesn't work.
I did notice that snd_intel8x0 module says used by 2 now when I'm in KDE. I don't remember if I was in KDE earlier when I got the lsmod output in the first post.
What application are you using, can you get kmplayer to play? You may need to configure your apps to use alsa. I'm not a KDE expert and I've never used aRts myself. I believe there are lots of tutorials how to get sound in the KDE. Google/Linux is your friend.
And bookmark this page now.
Also Gentoo wiki is useful.
I tried kmplayer, and what I noticed is that if I drag the KMix volume bar up, I can hear the songs I play in kmplayer, but the volume automatically drops down to 0% within a second. So perhaps this is actually a software configuration issue? KDE Control Center error is "Unable to start the sound server to retrieve possible sound I/O methods."
I've tried setting the volume in alsamixer and then saving the settings with "/etc/init.d/alsasound save" before logging into KDE, but once I get into KDE the volume resets to 0% again. I've also tried alsamixer from a Konsole when in KDE and it behaves just like KMix, with the volume dropping itself down to 0%.
In the screenshot, the big gray Volume box in the center of the screen stays on top of other windows and never goes away.
Are you tring to use aRts or you decided to stay ALSA-only? There are ways not to use aRts in the KDE, some people do not like it, some even say it's evilware.
KDE control center is useless then. As I said I'm not a KDE user myself. I believe there is a tutorial in Gentoo forums how to set up KDE without aRts.
OTOH, you compiled everything without arts support, if arts itself is still running it may be the source of problems.
On alsa-project.org for snd-intel8x0, it says that "You must turn on the sound support soundcore module." However, I couldn't find this in the kernel options and so it's not compiled as a module. Could this be the problem? In the first post, you can see that the working Ubuntu LiveCD sound had a "soundcore" module loaded that was used by snd.
I do not think this is your problem. I think ALSA is working. Unfortunately I'm unable to help you from memory and I have no Linux box here to experiment with.
In Gentoo, make sure you emerged alsa-lib, alsa-utils, and alsa-headers. After that, type alsamixer and adjust the settings. If you want every program include ALSA, backup your installation (just in case). Second run emerge --sync. After that add USE="alsa" to /etc/make.conf. Then type emerge -uavDN world. Depending on your computer specs, it will take a day to a week to finish. You can try to emerge genlop and then type emerge -upvDN world | genlop -p to get an estimate how long it will take.
When you first install or setup ALSA, every mixer setting for your sound card is set to mute and loudness is set at 0%. After you got sound working, as root type alsactl store to save the settings. Do not use root log into GUI or you could damage your installation. Use a virtual terminal like konsole, xterm, gterm, rxvt, and many others. The use su to substitute yourself as root. The utility su is ok to use for now, but you may want to use sudo for the future because it is more secure than su.
It does help to have sound support set as a module in the kernel.
I started over with a stage3 install and installed Gnome and the sound worked, so using the exact same configuration files and steps installed KDE again from a stage3 and it has the same problem, which leads me to believe it has something to do with KDE? The only differences between the two installs were the USE flags, and they were only minor. Gnome differences were "-kde -qt3 -qt4 gnome gstramer firefox" and KDE differences were "kde qt3". alsa was included in the USE flags.
After emerging each desktop environment, I emerged alsa-headers, alsa-lib and alsa-utils, ran alsaconf, ran alsamixer, ran alsactl store to save the volumes, rc-update add alsasound boot, rebooted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.