LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-23-2006, 10:15 AM   #1
ajitabhpandey
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17

Rep: Reputation: 0
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
 
Old 05-23-2006, 11:00 AM   #2
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
This might be the swapped sound card and modem problem, which snd-intel8x0m seems to trigger sometimes.
 
Old 05-24-2006, 07:15 AM   #3
ajitabhpandey
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 05-24-2006, 08:21 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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
Code:
chmod 1777 /tmp
Eric
 
Old 05-24-2006, 09:22 AM   #5
ajitabhpandey
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
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)
 
Old 05-24-2006, 09:56 AM   #6
ajitabhpandey
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 05-24-2006, 10:07 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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
 
Old 05-24-2006, 11:02 AM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
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.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
FedoraCore 4 on IBM R50e acting crazy acdc Linux - Laptop and Netbook 1 12-24-2005 12:30 PM
Thinkpad r50e wireless problems penguin-stew Linux - Wireless Networking 4 10-22-2005 06:15 PM
ibm R50e + xmodmap hipikll Linux - Laptop and Netbook 4 02-21-2005 03:15 AM
mdk 10.1 + suspend + IBM r50e hipikll Linux - Laptop and Netbook 0 02-14-2005 06:02 AM
dual monitor on IBM R50e thingPad hipikll Linux - Laptop and Netbook 3 01-06-2005 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration