Slackware This 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.
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.
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.
|
 |
05-23-2006, 10:15 AM
|
#1
|
LQ Newbie
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17
Rep:
|
Sound on IBM R50e thinkpad
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.
Any help will be appreciated.
Code:
user01@slack-cur:~$ groups user01
user01 : user01 audio users
user01@slack-cur:~$ ls -l /dev/dsp*
lrwxrwxrwx 1 root root 4 2006-04-18 01:44 /dev/dsp -> dsp0
crw-rw--w- 1 root audio 14, 3 2003-08-29 08:47 /dev/dsp0
crw-rw--w- 1 root audio 14, 19 2003-08-29 08:47 /dev/dsp1
crw-rw--w- 1 root audio 14, 35 2003-08-29 08:47 /dev/dsp2
crw-rw--w- 1 root audio 14, 51 2003-08-29 08:47 /dev/dsp3
user01@slack-cur:~$ ls -l /dev/mixer*
lrwxrwxrwx 1 root root 6 2006-04-18 01:44 /dev/mixer -> mixer0
crw-rw-rw- 1 root audio 14, 0 2003-08-29 08:47 /dev/mixer0
crw-rw-rw- 1 root audio 14, 16 2003-08-29 08:47 /dev/mixer1
crw-rw-rw- 1 root audio 14, 32 2003-08-29 08:47 /dev/mixer2
crw-rw-rw- 1 root audio 14, 48 2003-08-29 08:47 /dev/mixer3
user01@slack-cur:~$ ls /var/log/packages/alsa-
alsa-driver-1.0.11_2.4.32-i486-2 alsa-oss-1.0.11-i486-1
alsa-lib-1.0.11-i486-1 alsa-utils-1.0.11-i486-1
user01@slack-cur:~$ mpg123 Choote_Si_Zindagani.mp3
Creating link /home/user01/.kde/socket-slack-cur.
can't create mcop directory
user01@slack-cur:~$ rm -rf .kde
user01@slack-cur:~$ mpg123 Choote_Si_Zindagani___Aah_Mukesh.mp3
Creating link /home/user01/.kde/socket-slack-cur.
user01@slack-cur:~$ lsmod
Module Size Used by Tainted: PF
ip_queue 5352 0
ip_tables 12064 0
snd-seq-oss 23104 0
snd-seq-midi-event 3208 0 [snd-seq-oss]
snd-seq 33552 2 [snd-seq-oss snd-seq-midi-event]
snd-seq-device 3716 0 [snd-seq-oss snd-seq]
snd-pcm-oss 28928 0
snd-mixer-oss 11928 2 [snd-pcm-oss]
uhci 23804 0 (unused)
ehci-hcd 17612 0 (unused)
usbcore 56812 1 [uhci ehci-hcd]
snd-intel8x0 19188 2
snd-intel8x0m 8480 0
snd-ac97-codec 68160 0 [snd-intel8x0 snd-intel8x0m]
snd-pcm 52804 0 [snd-pcm-oss snd-intel8x0 snd-intel8x0m snd-ac97-codec]
snd-timer 13168 0 [snd-seq snd-pcm]
snd 34304 0 [snd-seq-oss snd-seq-midi-event snd-seq snd-seq-device snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-intel8x0m snd-ac97-codec snd-pcm snd-timer]
snd-page-alloc 5076 0 [snd-seq-oss snd-seq snd-seq-device snd-mixer-oss snd-intel8x0 snd-intel8x0m snd-pcm snd-timer snd]
soundcore 3300 9 [snd]
eepro100 18164 1
mii 2304 0 [eepro100]
ds 6612 1
yenta_socket 10532 1
pcmcia_core 39492 0 [ds yenta_socket]
ide-scsi 9392 0
agpgart 45284 7
|
|
|
05-23-2006, 11:00 AM
|
#2
|
Member
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770
Rep:
|
This might be the swapped sound card and modem problem, which snd-intel8x0m seems to trigger sometimes.
|
|
|
05-24-2006, 07:15 AM
|
#3
|
LQ Newbie
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17
Original Poster
Rep:
|
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.
|
|
|
05-24-2006, 08:21 AM
|
#4
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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 /):
Code:
drwxrwxrwt 151 root root 12288 2006-05-23 23:06 tmp/
and you can correct messed up permissions by running
Eric
|
|
|
05-24-2006, 09:22 AM
|
#5
|
LQ Newbie
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17
Original Poster
Rep:
|
The perms on the /tmp is ok
Code:
$ ls -ld /tmp
drwxrwxrwt 11 root root 640 2006-05-23 22:44 /tmp
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)
|
|
|
05-24-2006, 09:56 AM
|
#6
|
LQ Newbie
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17
Original Poster
Rep:
|
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.
And here is the link which helped me:
https://launchpad.net/distros/ubuntu...ils/+bug/31699
|
|
|
05-24-2006, 10:07 AM
|
#7
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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 ---
Eric
|
|
|
05-24-2006, 11:02 AM
|
#8
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:16 PM.
|
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
|
|