HP Chromebook - snd_pcm_open failed: Device or resource busy <SOLVED>

a very small Live CD shaped to look and act like Puppy Linux.


Moderator: fredx181

Post Reply
dcung
Posts: 522
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 69 times
Been thanked: 70 times

HP Chromebook - snd_pcm_open failed: Device or resource busy <SOLVED>

Post by dcung »

On my HP Chromebook (with Mr.Chromebox BIOS) and @rcrsn51 script (myalsaucm.sh), I noticed that I can only get sound while using one app at a time.

Say if I am watching a youtube video on a browser tab - paused it, then opening another tab to watch another video, will not have sound without closing the previous tab.

Or if (without closing other paused app with sound) I use a video/music player then you get
ALSA error: snd_pcm_open failed: Device or resource busy

I found this, probably similar to what's described here (?).
https://comp.os.linux.hardware.narkive. ... ource-busy
which mentioned that you need to install a mixer.
But in this build (Boookworm LXQT), I have both AlsaMixer (works) and AlsaMixerGui (not working).

It's not a big deal now that I know the behaviour.
Just curious if there's some trick to 'improve' it.
i..e. no need to close paused app.

Last edited by dcung on Mon Apr 07, 2025 10:41 pm, edited 1 time in total.
User avatar
rcrsn51
Posts: 1492
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 432 times

Re: HP Chromebook - snd_pcm_open failed: Device or resource busy

Post by rcrsn51 »

Please post your current .asoundrc file.

dcung
Posts: 522
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 69 times
Been thanked: 70 times

Re: HP Chromebook - snd_pcm_open failed: Device or resource busy

Post by dcung »

rcrsn51 wrote: Mon Apr 07, 2025 5:01 pm

Please post your current .asoundrc file.

Code: Select all

defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1
User avatar
rcrsn51
Posts: 1492
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 432 times

Re: HP Chromebook - snd_pcm_open failed: Device or resource busy

Post by rcrsn51 »

Comment out those three lines and add:

Code: Select all

pcm.!default pcm.dmixer
ctl.!default ctl.dmixer

pcm.dmixer {
  type plug
  slave.pcm {
    type dmix
    ipc_key 1024
    slave.pcm "hw:1,0"
  }
}

ctl.dmixer {
  type hw
  card 1
}
dcung
Posts: 522
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 69 times
Been thanked: 70 times

Re: HP Chromebook - snd_pcm_open failed: Device or resource busy <SOLVED>

Post by dcung »

rcrsn51 wrote: Mon Apr 07, 2025 10:33 pm

Comment out those three lines and add:

Code: Select all

pcm.!default pcm.dmixer
ctl.!default ctl.dmixer
.
.
}

I did that.... and... problem solved.

I can run more than one app that use sound now...

Thanks @rcrsn51

Post Reply

Return to “DebianDogs”