Linux Lite Forums

Hardware - Support => Sound => Topic started by: oldwood on December 31, 2020, 10:52:41 AM

Title: Reboot needed to restore USB audio
Post by: oldwood on December 31, 2020, 10:52:41 AM
Hi everyone,

I am new to Linux Lite. I have it installed on a Asus laptop and I am using USB out to a Emotiva XDA-2 DAC for music. It works well but in the evening I turn off the DAC and  in the morning I need to reboot in order to get the OS to find the USB audio channel.

Is there a CMD I can use to re-scan for the USB audio output? I have tried re-plugging the USB cable but that does not work.

Any input is greatly appreciated.

Thanks
Title: Re: Reboot needed to restore USB audio
Post by: Jerry on December 31, 2020, 04:23:01 PM
Try 3rd post - https://ubuntuforums.org/archive/index.php/t-764576.html
Title: Re: Reboot needed to restore USB audio
Post by: oldwood on December 31, 2020, 06:32:14 PM
Thanks Jerry I stored the setting so I will try to restore in the morning and let you know how it works.

Happy New Year

Gerry
Title: Re: Reboot needed to restore USB audio
Post by: oldwood on January 02, 2021, 08:23:51 AM
I tried to restore the ALSA but it did not restore the USB DAC as a sound option.

I was able to replug the USB cable to the DAC and that did restore the option.

I would like to be able to restore without re-plugging just to prevent wear and tear on the cable and port.

I have attached the screenshot of the terminal. It is a png file so the ext needs changing.
Title: Re: Reboot needed to restore USB audio
Post by: TheDead on January 04, 2021, 07:40:21 AM
I have not checked if 5.x still uses pulseaudio and could be unrelated but just in case...

Before opening any apps, open a terminal and enter the command :

sudo pulseaudio --kill

Then check if the audio workz! ;)
Title: Re: Reboot needed to restore USB audio
Post by: oldwood on January 04, 2021, 09:31:42 AM
I will give that a try. It is odd because sometimes I can re-plug the USB to the DAC and it pops up while other times it needs a reboot. I have tried turning the DAC off and back on but that does not do anything.

Thanks,
Gerry
Title: Re: Reboot needed to restore USB audio
Post by: oldwood on January 05, 2021, 09:40:16 AM
I have not checked if 5.x still uses pulseaudio and could be unrelated but just in case...

Before opening any apps, open a terminal and enter the command :

sudo pulseaudio --kill

Then check if the audio workz! ;)

I gave this a try and get the response, failed to kill daemon: no such process.

In ALSAMIXER pulse audio is listed so maybe I am doing something wrong?
Title: Re: Reboot needed to restore USB audio
Post by: oldwood on January 07, 2021, 09:51:25 AM
So I am still trying to get the OS to see the Emotiva USB DAC on resume from sleep. Sometimes re-plugging works sometimes it does not, sometimes a re-boot works and sometimes it does not.

I tried alsactl restore and got a more informative output but it does not connect the DAC. I have attached the screenshot, it is a png file.

I have a Asus Xonar U7 mk2 DAC and it is found and is connected on resume from sleep but I would like to use the Emotiva DAC if possible. The Xonar USB is USB powered so maybe that is why it is seen and connected on resume?

I don't know what triggers the connection of the USB DAC or if I can force it to re-scan and connect.

Any and all suggestions are welcomed.

Thanks,
Gerry
Title: Re: Reboot needed to restore USB audio
Post by: TheDead on January 08, 2021, 09:01:30 AM
Hi,

Your problem seems "deeper" than just the sound engine.
Maybe a Linux guru (or a web search?) could tell you how reset a linux "device" and not just the sound engine.

Maybe activating the "Plug and play" function in the BIOS? but that seems like a shot in the dark.
Title: Re: Reboot needed to restore USB audio
Post by: oldwood on January 09, 2021, 08:33:58 AM
So I might have found a solution. I think the problem is related to USB auto suspend. I disabled auto suspend by following this guide.

https://ywjheart.wordpress.com/2018/07/17/disable-usb-auto-suspend-in-ubuntu-debian/

I will post back after a while when I know if it stays connected.

Thanks guys for your suggestions.

Gerry
Title: Re: Reboot needed to restore USB audio
Post by: oldwood on January 10, 2021, 09:24:44 AM
While that did not work! when I resume from suspend there is no connection to the USB DAC and it is hard to get it back, so no change.

I might need to give up and just use a different DAC.

Gerry

Title: Re: Reboot needed to restore USB audio
Post by: TheDead on January 11, 2021, 09:06:52 AM
Maybe unpluging the DAC before going in suspend?
Not really a solution but... it's better than buyng a horseshoe and a four-leaf clover. ;)
Title: Re: Reboot needed to restore USB audio
Post by: Jacob Pertou on January 11, 2021, 04:28:21 PM
I might need to give up and just use a different DAC.

I use the ifi Audio nano iOne DAC. It performs really well in Linux Lite, but I do not recommend it for Windows.
Title: Re: Reboot needed to restore USB audio
Post by: oldwood on January 12, 2021, 12:57:22 PM
Maybe unpluging the DAC before going in suspend?
Not really a solution but... it's better than buyng a horseshoe and a four-leaf clover. ;)

We stream a radio station and like to listen at night while drifting off to sleep. The amp and the laptop are set to sleep but the Amp/DAC goes to sleep before the laptop. The amp triggers the DAC to shutdown so the OS sees it drop out and this is probably why I need to reboot to get it back.

Tonight I am going to unplug the trigger so the DAC will not shut off when the amp shuts off. Not a great solution but I think the power usage is pretty low.

If this works I could set it up so the Amp/DAC go down after the laptop and that should work?

Thanks for the help.

Title: Re: Reboot needed to restore USB audio
Post by: oldwood on January 12, 2021, 04:47:39 PM
I might need to give up and just use a different DAC.

I use the ifi Audio nano iOne DAC. It performs really well in Linux Lite, but I do not recommend it for Windows.

Hi Jacob,

I will give it a look. No worries about windows I switched all my systems to Linux and have no intention of ever going back ;)

Thanks,
Gerry
Title: Re: Reboot needed to restore USB audio
Post by: TheDead on January 13, 2021, 09:22:03 AM
No worries about windows I switched all my systems to Linux and have no intention of ever going back ;)

Lucky, unfortunately, in this sheep world I have to keep some Big M machines since my job requires it  ;) . One day...

(https://pics.me.me/picture-unrelated-but-its-a-gigantic-panda-blasting-a-hole-22744639.png)
Title: Re: Reboot needed to restore USB audio
Post by: oldwood on January 14, 2021, 10:03:19 PM
Just wanted to confirm that if the computer goes into suspend before the DAC goes offline then the DAC is connected on resume. I can make that work for my situation.

So would that be solved or side stepped ;)

Thanks for the input, it is greatly appreciated.

Gerry