12-11-2018, 07:19 AM
(12-11-2018, 05:28 AM)mactolinux Wrote: Simple and look obvious: when you run it manually AFTER mpd has started it’s okay.
But you set up this script into startup sequence. It doesn’t run these strings from there - because mpd has not started yet. you may try and will see that mpd still has initial attributes.
That’s why those setting were mentioned in mpd config file before, this apply settings on every launch of mpd. instead of bash.
Easy fix, just tell it to sleep for a bit
sleep 25 ; sudo chrt -f -p 81 $(pidof mpd)
sleep 35 ; taskset -c -p 1 $(pidof mpd)