Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Internal sound card not found [NEVERMIND!]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Mon May 07, 2018 10:04 pm    Post subject: Internal sound card not found [NEVERMIND!] Reply with quote

I have a Focusrite Scarlett 2i2 that I use on a Gentoo laptop. (It works very well with Ardour and JACK.) But sometimes I just want to put sound out of the laptop's own speakers.

If I simply unplug the 2i2, alsamixer then complains
Code:

cannot open mixer: No such file or directory


If I plug the 2i2 back in, alsamixer can see the internal sound card, but its not the default and so no sound comes out the laptop's speakers. If I restart the computer without plugging the 2i2 back in, it defaults back to the internal intel-hda sound card. But I'd like to not have to reboot just to use the internal sound card.

So how should I handle that?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN


Last edited by audiodef on Tue May 08, 2018 12:07 am; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon May 07, 2018 11:36 pm    Post subject: Reply with quote

Never tried that myself, but you could try alter your user ~/.asoundrc switching default output in there (like having 2 copy of .asound one making card1 default, and second making card2 default) ; and an sh script run on usb unplug could copy the needed one.
Of course it would then only change default card for that user, still it should cover most of your needs (if this work).
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue May 08, 2018 12:07 am    Post subject: Reply with quote

Thanks, krinn. I always appreciate your input, but this time, I was being a huge idiot.

All I had to do was start JACK with the internal sound card selected as the ALSA driver instead of the external USB device.

Herpa-de-derp. :roll:
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum