RBERRYPI----------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 73 из 100
 От   : Lawrence D?Oliveiro                 3:633/10          24 окт 25 12:30:01
 К    : All                                                   24 окт 25 04:46:01
 Тема : Re: aplay oddity
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <10dei3u$27uve$7@dont-email.me> 9f9c44b5
@REPLY: <JMqsfwL+8m+oFwKC@ku.gro.lloiff> 21d12af7
@PID: PyGate 1.5
@TID: PyGate/Linux 1.5
@CHRS: CP1252 2
@TZUTC: 1100
@REPLYADDR ldo@nz.invalid
@REPLYTO 3:633/10 UUCP
On Thu, 23 Oct 2025 19:09:02 +0100, Adrian wrote:

> If I do a cut and paste of the aplay command, it works fine. So the
> problem looks as though it is some thing to do with the python call.

I would try to confirm this by running the Python script (or at least
a copy of the part that does the aplay command) from a terminal
session. In other words, try to minimize all the differences between
the situation where you can successfully invoke the command, and the
one where you can?t.

> Both command line and python are running under the same user.

I suspect there is some issue with setup of environment variables
(e.g. $HOME) when running the script in the background versus
interactively.

> What I`m seeing logged by the python code is the following error :
>
> ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
> aplay: main:831 audio open error: Unknown error 524
>
> I`ve tried rebooting again, and an Internet search doesn`t come up
> with anything for my particular problem (they all seem to be
> "nothing working").

I did a search for ?alsa Unknown error 524? and found this
io-device-unknown-error-524-what-is-going>
where the error was fixed by putting something into the systemwide
ALSA config.

This would be consistent with my suspicion that the per-user setup
for your background versus interactive cases is not exactly the same.

--- PyGate Linux v1.5
 * Origin: Dragon`s Lair, PyGate NNTP<>Fido Gate (3:633/10)
SEEN-BY: 50/109 103/705 218/700 221/1 6 229/426
240/1120 301/1 113 812
SEEN-BY: 335/364 463/68 633/10 280 414 418 420
422 509 2744 712/848 770/1
SEEN-BY: 5019/40 5020/715 848 1042 4441 12000
5030/49 722 1081 1474 5053/55
SEEN-BY: 5061/133 5075/128
@PATH: 633/10 280 712/848 301/1 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх