LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-23-2006, 07:31 AM   #1
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Question Why do I need hotplug for usb soundcard to work?


Hey guys,

I finally got my usb soundcard to work on Slackware 10.2, but it seems like I have to run rc.hotplug. If I stop the hotplug while the music player is playing, it stops playing immediately.

I don't want to run hotplug for one device, but I can't figure out what I need to do. Does anybody know?

I looked at lsmod and there about 10 drivers that get loaded when hotplug starts. But even after it stops, those modules are still loaded. So why does the music player stop when hotplug stops?

In case anyone else is using a usb soundcard and is having trouble, I also had to disable the internal soundcard to get the usb soundcard to work. I blacklisted snd-intel8x0m and intel8x0.

Thanks,
Randux

Last edited by Randux; 04-23-2006 at 07:33 AM.
 
Old 04-24-2006, 12:30 AM   #2
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Rep: Reputation: 15
Well, this is just a guess from what I assumed from A+. I'm not really positive about how rc.hotplug works either, so don't take my word for this. Here goes. It's a possibility that the system has to know how to deal with a sudden loss of the soundcard, since it's a USB device. If you turn off the hotplug, it might not be able to determine whether the device is plugged in or not.

Also, as a general rule in A+, you disable any onboard sound cards if you decide to switch to a different one. Otherwise, the system will continue to use the onboard despite the addition of the new card / hotplug device.

It's an interesting question though, and I hope you get an answer.
 
Old 04-24-2006, 03:02 AM   #3
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
The apps like XMMS and Mplayer have pulldowns for sound card selection. That suggests to me that you should be able to have multiple soundcards enabled concurrently. I don't know any technical reason why you shouldn't be able to do this. In my case it's a minor annoyance, since I use this machine at home and I have the soundcard on my desk. If I had a laptop which I travelled with it would be a little more troublesome to have to play configuration games to choose between soundcards.

Even without rc.hotplug running USB storage works fine. I can't remember what I did to set this up, but I can plug and unplug USB drives and they work. This is why I can't understand what else about the soundcard drivers is missing that it needs rc.hotplug. Maybe it's just another driver which I can load another way.

What's "A+?"
 
Old 04-25-2006, 01:21 AM   #4
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Rep: Reputation: 15
CompTIA's A+ certification, it deals with computer upgrade / repair (Like adding soundcards, for example.)
 
Old 04-25-2006, 12:29 PM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
I still haven't figured this out. Does anyone have this working?
 
Old 05-08-2006, 12:43 PM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Posts that go BUMP
in the night!

B U M P !
 
Old 05-08-2006, 04:12 PM   #7
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,867

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Read this:

http://www.slackbasics.org/html/init...n-init-hotplug

It should explain better than I can.
 
Old 05-08-2006, 04:14 PM   #8
shotwellj
Member
 
Registered: Jul 2005
Location: Tempe, AZ
Distribution: Slackware
Posts: 66

Rep: Reputation: 15
By default, the rc.hotplug script will search /etc/hotplug/ for *.rc files and run $file.rc stop. In your case, it is probably running 'usb.rc stop' and thus screwing up your usb soundcard.

Either look at the scripts in /etc/hotplug, or look at the output of dmesg. Maybe try directing the output of lsmod with and without hotplugging to some files and then running diff.

Jacob

Last edited by shotwellj; 05-08-2006 at 04:21 PM.
 
Old 05-09-2006, 04:19 AM   #9
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by mlangdn
Read this:

http://www.slackbasics.org/html/init...n-init-hotplug

It should explain better than I can.
Thanks, man, I'll have a look.
 
Old 05-09-2006, 04:21 AM   #10
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by shotwellj
By default, the rc.hotplug script will search /etc/hotplug/ for *.rc files and run $file.rc stop. In your case, it is probably running 'usb.rc stop' and thus screwing up your usb soundcard.

Either look at the scripts in /etc/hotplug, or look at the output of dmesg. Maybe try directing the output of lsmod with and without hotplugging to some files and then running diff.

Jacob
Thanks, but I'm not sure I understand your suggestion. I said in the opening post:

"I looked at lsmod and there about 10 drivers that get loaded when hotplug starts. But even after it stops, those modules are still loaded. So why does the music player stop when hotplug stops?"

I've compared before and after pictures and the modules are still loaded. So I'm not sure why it doesn't work.

There's another new post I saw which was pretty vague but mentioned something about maybe a different kernel being better for soundcards. I'm looking in that thread now.
 
Old 05-09-2006, 03:17 PM   #11
shotwellj
Member
 
Registered: Jul 2005
Location: Tempe, AZ
Distribution: Slackware
Posts: 66

Rep: Reputation: 15
When you stop hotplugging, run dmesg to see what has happened. Anything that disabled your sound device will likely show up there.

When you run 'rc.hotplug stop', the script searches through /etc/hotplug and runs all of the script that have a .rc extension and passes them the stop argument. For example, it probably runs '/etc/hotplug/usb.rc stop' and this is probably the root of your problem.

Also, this issue probably doesn't have anything to do with kernel support for your sound device. It is just a matter of figuring out what hotplugging is doing and then doing that yourself.


Regards,
Jacob
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't get USB soundcard (Maya44) to work christian-s Linux - Hardware 4 03-29-2006 06:04 PM
Soundcard doesn't work until I run system-config-soundcard The_Nerd Linux - Software 2 02-11-2006 10:53 AM
hotplug blacklist doesn't quite work ? aherrys Slackware 5 01-13-2005 12:09 PM
Slackware 10 -2.6.8.1 - Hotplug does not work mel82 Slackware 3 09-04-2004 03:42 PM
stop hotplug from detecting things connected to usb (but still noticing usb itself) TheOneAndOnlySM Linux - Hardware 5 10-18-2003 11:35 AM

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

All times are GMT -5. The time now is 09:29 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