SlackwareThis Forum is for the discussion of Slackware 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 am running slackware-current on an IBMR50e thinkpad. Surprisingly there is no sound. Following are some outputs, file perms etc. When I run mpg123 I get "can't create mcop directory" error (even as root). When I run xmms, I dont get any error but I dont hear anything either. On xmms (or real player) the file looks to be playing normally, but no sound.
So what needs to be done in order to fix it. Tried live CDs of Ubuntu, Knoppix and even installed Debian on a small partition and all gave sound, except Slackware. Any ideas. Will an upgrade to 2.6 can fix it. Dont want to upgrade to 2.6 unless absolutely essential.
If it is the modem that is in the way, add a line containing "snd-intel8x0m" to the file
Code:
/etc/hotplug/blacklist
Slackware 10.2 should have that line already btw.
The "can't create mcop directory" error looks like the permissions to the /tmp directory are messed up, and/or there are existing subdirectories there where the permissions are messed up. Permissions on /tmp should look like this (run ls -l /):
As for snd-intel8x0m, although my thinkpad does not have a modem so dont know why this module is there is its required by a modem, but I have put that in the blacklist file.
However for now I have manually removed it using rmmod command. Still the same result. (or do I need to reboot the laptop..., will do it anyway when go home)
Figured out finally. A possible bug and since I was using current, I was the unlucky one to hit it.
I did the following
Code:
$ mkdir -p $HOME/.kde/socket-`hostname`
and then
Code:
$ mpg123 Choote_Si_Zindagani.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Playing MPEG stream from Choote_Si_Zindagani.mp3 ...
MPEG 1.0 layer III, 16 kbit/s, 11025 Hz mono
[0:12] Decoding of Choote_Si_Zindagani.mp3 finished.
and also just to check whether the module which I unloaded has any effect on this I did:
Code:
$ sudo /sbin/insmod snd-intel8x0m
Using /lib/modules/2.4.32/kernel/sound/pci/snd-intel8x0m.o.gz
$ lsmod |grep snd-intel8x0m
snd-intel8x0m 8480 0 (unused)
snd-ac97-codec 68160 0 [snd-intel8x0m snd-intel8x0]
snd-pcm 52804 0 [snd-intel8x0m snd-pcm-oss snd-intel8x0 snd-ac97-codec]
snd 34304 0 [snd-intel8x0m snd-seq-oss snd-seq-midi-event snd-seq snd-seq-device snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer]
snd-page-alloc 5076 0 [snd-intel8x0m snd-seq-oss snd-seq snd-seq-device snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd]
$ mpg123 Choote_Si_Zindagani.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Playing MPEG stream from Choote_Si_Zindagani.mp3 ...
MPEG 1.0 layer III, 16 kbit/s, 11025 Hz mono
[0:12] Decoding of Choote_Si_Zindagani.mp3 finished.
Yes, the modem driver takes the 1st slot in the audio drivers and is therefore the default soundcard until you reboot (or restart ALSA I guess).
But, if you do need the modem driver and are not able to blacklist it, there is a way to force the modemdriver to second place so that the "real" sound driver will be the default for your sound output. For that to happen, you should re-arrange your ALSA configuration in /etc/modules.conf or /etc/modprobe.conf or /etc/modprobe.d/alsa so that it looks like this (the index is what does the trick here):
Code:
# --- ALSA configuration ---
alias char-major-116 snd
alias char-major-14 soundcore
alias snd-card-0 snd-intel8x0
alias snd-card-1 snd-intel8x0m
# --- OSS Compatibility
alias sound-slot-0 snd-intel8x0
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
#
alias sound-slot-1 snd-intel8x0m
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-12 snd-pcm-oss
# --- Options
options snd major=116 cards_limit=2
options snd-intel8x0 index=0
options snd-intel8x0m index=1
# --- End of ALSA configuration ---
I'm putting this thread in my bookmarks, because once in awhile, my modem does the same thing (takes over alsa after a reinstall). Thanks for that stuff, Eric.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.