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.
|
 |
04-23-2006, 07:31 AM
|
#1
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
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.
|
|
|
04-24-2006, 12:30 AM
|
#2
|
Member
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81
Rep:
|
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. 
|
|
|
04-24-2006, 03:02 AM
|
#3
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Original Poster
Rep:
|
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+?"
|
|
|
04-25-2006, 01:21 AM
|
#4
|
Member
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81
Rep:
|
CompTIA's A+ certification, it deals with computer upgrade / repair (Like adding soundcards, for example.)
|
|
|
04-25-2006, 12:29 PM
|
#5
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Original Poster
Rep:
|
I still haven't figured this out. Does anyone have this working?
|
|
|
05-08-2006, 12:43 PM
|
#6
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Original Poster
Rep:
|
Posts that go BUMP
in the night!
B U M P !
|
|
|
05-08-2006, 04:12 PM
|
#7
|
Senior Member
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,867
|
|
|
|
05-08-2006, 04:14 PM
|
#8
|
Member
Registered: Jul 2005
Location: Tempe, AZ
Distribution: Slackware
Posts: 66
Rep:
|
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.
|
|
|
05-09-2006, 04:19 AM
|
#9
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Original Poster
Rep:
|
Quote:
Originally Posted by mlangdn
|
Thanks, man, I'll have a look.
|
|
|
05-09-2006, 04:21 AM
|
#10
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Original Poster
Rep:
|
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.
|
|
|
05-09-2006, 03:17 PM
|
#11
|
Member
Registered: Jul 2005
Location: Tempe, AZ
Distribution: Slackware
Posts: 66
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 09:29 AM.
|
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
|
|