You are not logged in.

#1 2010-07-25 09:38:50

2beers
Member
From: 127.0.0.1
Registered: 2009-05-27
Posts: 24

MPD randomly starts playback at boot

Hey guys,

I use mpd (0.15.12-1) for playing music on my machine. It is configured to start mpd as a daemon at boot (via DAEMONS in rc.conf). Usually I have some tracks in the current playlist and mpd's status at shutdown is paused.

Now, sometimes it happens that when I boot the mpd daemon gets started and apparently changes it's status from "paused" to "playing". This starts the music playback even though I am not logged in and therefore can't stop the playback.

Since this may lead to rather embarrassing situations I wondered if anyone of you experienced the same problem. As far as I can see there are no corresponding forum threads or bugs in the bugtracker.

Thanks

2beers

Offline

#2 2010-08-20 23:23:51

xvello
Member
Registered: 2010-05-15
Posts: 81
Website

Re: MPD randomly starts playback at boot

Hello

I have a similar issue : I often halt my computer with mpd playing, and it restarts playback on startup. I modified /etc/rc.d/mpd to forcibly pause playback before stopping the daemon (so that it won't start on next boot) :
> ...
>  stop)
>    stat_busy "Stopping Music Player Daemon"
>    /usr/bin/mpc pause
>    /usr/bin/mpd --kill /etc/mpd.conf &> /dev/null
> ...

If it doesn't work for you (if you are sure you paused mpd when it happened), you can try stopping playback altogether with a `/usr/bin/mpc stop` invocation.

You need mpc from extra installed for it to work.


Cheers

Offline

#3 2010-08-21 01:19:10

splittercode
Member
From: WI, USA
Registered: 2010-03-16
Posts: 203

Re: MPD randomly starts playback at boot

The state_file option in .mpdconf tells mpd where to store your current mpd information (play/pause status, current playlist, etc).  You can remove that setting from your mpdconf, delete the file, and it shouldn't resume anymore upon restart.  You will however lose your playlist and whatever other information would normally be stored there each time you restart mpd.

Offline

Board footer

Powered by FluxBB