Re: Running a music player via cron
- To: debian-user@lists.debian.org
- Subject: Re: Running a music player via cron
- From: Alexandre Rossi <niol@zincube.net>
- Date: Wed, 2 Oct 2019 12:12:08 +0200
- Message-id: <[🔎] 20191002101208.GB21778@zincube.net>
- In-reply-to: <a0b3f0f1-7b5c-c6d1-f079-50efb2d9a2d5@debian.org>
- References: <d8a1b62d-bd0e-1de1-e472-f0eb2a82b4e2@debian.org> <20190925202156.GA8712@singvogel.net> <a0b3f0f1-7b5c-c6d1-f079-50efb2d9a2d5@debian.org>
Hi,
> >> Playing: http://direct.franceinfo.fr/live/franceinfo-midfi.mp3
> >> (+) Audio --aid=1 (mp3 1ch 44100Hz)
> >> ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
> >> [ao/alsa] Playback open error: Device or resource busy
> >> [ao/oss] Can't open audio device /dev/dsp: Device or resource busy
> >
> > Either another process is still acessing your speakers or may you're
> > not logged in.
>
> I am logged in. I suspect a pulseauio issue.
Me too. What does it say with -ao pulse ?
I suspect $PULSE_SERVER is not set and mpv cannot find the server started
in your graphical session. I would find its contents in my graphical session,
put it in the crontab and if it works, come up with a script to guess it.
Thanks,
Alex
Reply to: