M-Audio audiophile usb sometimes not recognized

Hi,

I have a m-audio audiophile usb as sound card and even though It works properly there’s a thing I don’t like.
Sometimes when I turn off the sound card and I want to turn it on again it’s not properly recognized, well, to tell the truth It’s not recognized, kmix only shows “Dummy sound” if I want it to work again I have to unload snd_usb_audio module and put it back again.

So, is there any way to avoid this behavior?

Thanks in advance.

So the simple solution is to not turn off your sound. It is not normal for most people to disable the hardware, but rather just mute the audio. Since you have found the solution, we could write a script that does what you do now manually and if you forget, you can just run the script instead, but I would just leave the sound on all of the time and mute the audio or turn the volumn control all the way to zero. when you do not want sound. Also, post that set of manual commands if you wish and I will build a script around them. Make sure to say if you need to be root to run them as I can add that to the script, do not leave out any detail of your manual control as I will be unable to test it on my end.

Thank You,

Thank you jdmcdaniel3 but don’t worry for the script, I’ve put the following in a file:

#!/bin/bash

rrmod snd_usb_audio & modprobe snd_usb_audio


I execute it with sudo.

I’d like to know if other people have the same problem with usb soundcard or It’s only me.

Thanks again.

#!/bin/bash

#: Title       : sndrset
#: Date Created: Sat Mar 3 07:41:05 CST 2012
#: Last Edit   : Sat Mar 3 07:41:05 CST 2012
#: Author      : Bezoutsidentity
#: Version     : 1.00
#: Description : Reset Sound Kernel Module
#: Options     : none

#
# Check to see if sndrset was started as Root ******************************
#
function check_uid {
  if  $UID != 0 ] ; then
    clear
    echo -n "SNDRSET Requires Root User Authority.  Please Enter "
    sudo $0
    Exit_Command=$?
    exit $Exit_Command
  fi
  return 0
}

check_uid
rrmod snd_usb_audio && modprobe snd_usb_audio

exit 0

# End Of Script

Copy above code into your favorite text editor and save it as the file sndrset in your local folder ~/bin/sndrset (/home/yourname/bin/sndrset) and then run the command chmod +x ~/bin/sndrset to mark it executable. When run, the script will request the root password if you did not supply it first. You must include two && and not just one. You could run the command as:

1. rrmod snd_usb_audio && modprobe snd_usb_audio
2. rrmod snd_usb_audio ; modprobe snd_usb_audio
3. rrmod snd_usb_audio 
   modprobe snd_usb_audio

but not: rrmod snd_usb_audio & modprobe snd_usb_audio

Normally, using a single & sends that command into the background, while using two && is a logical AND function that says if the first command works, then run the second command.

Thank You,

Thanks for your corrections. I really appreciate it.

Have a nice day.

I was happy to help and sorry for not having a good answer to your first question, but good advice I feel. Please let us know if we can help you in any other way.

Thank You,

I made a mistake, the command to remove modules is rmmod not rrmod, I’m sorry.

Thank you, I’ll do it.

Have a nice day.