Moode Forum
[IDEA] /etc/mpd.conf file - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Feature requests (https://moodeaudio.org/forum/forumdisplay.php?fid=8)
+--- Thread: [IDEA] /etc/mpd.conf file (/showthread.php?tid=5706)



/etc/mpd.conf file - dmonds - 07-18-2023

Hiya,

Please excuse me if I'm way off base here, I only have a beginners understanding of Linux...all self taught.

I have noticed that extensive tweaks can be made via the web UI to MPD and other services.

Once edited, the /etc/mpd.conf file is overwritten.

As far as I can tell the encoder section is NOT one of the tweaks you can make via the web ui.
This causes any tweaks made directly to the encoder section by the user to be overwritten.

My suggestion would be to only over write the sections relating to the tweaks available in the WebUI.
Or, make use of the user level config available to MPD via /usr/local/share/config.

Cheers
Dennis


RE: /etc/mpd.conf file - Tim Curtis - 07-18-2023

If you want to hack around and experiment with mpd.conf there is a developer tweaks feature (below) that can be used but you should first become familiar with the MPD documentation that explains what the various blocks and options in mpd.conf actually do. You should also print the MPD configuration via the command mpd -V so you can see whats been included in the MPD compile we use.

MPD documentation
https://mpd.readthedocs.io/en/latest/
https://github.com/MusicPlayerDaemon/MPD/blob/master/doc/mpd.conf.5.rst
https://github.com/MusicPlayerDaemon/MPD/blob/master/doc/mpdconf.example

Dev tweaks
Code:
# List feature availability
moodeutl -a

# Enable dev tweaks feature
moodeutl -A add 32768
sudo reboot

# Create custom mpd.conf
sudo cp /etc/mpd.conf /etc/mpd.custom.conf

# Make changes to custom mpd.conf
sudo nano /etc/mpd.custom.conf

# Changes are automatically merged when config is saved
Menu, Configure, MPD
SAVE

# View changes and #change_comments
cat /etc/mpd.conf

# Disable dev tweaks and revert to normal config
moodeutl -A rm 32768
sudo rm /etc/mpd.custom.conf
sudo reboot
Menu, Configure, MPD
SAVE



RE: /etc/mpd.conf file - dmonds - 07-19-2023

(07-18-2023, 02:58 PM)Tim Curtis Wrote: If you want to hack around and experiment with mpd.conf there is a developer tweaks feature (below) that can be used but you should first become familiar with the MPD documentation that explains what the various blocks and options in mpd.conf actually do. You should also print the MPD configuration via the command mpd -V so you can see whats been included in the MPD compile we use.

MPD documentation
https://mpd.readthedocs.io/en/latest/
https://github.com/MusicPlayerDaemon/MPD/blob/master/doc/mpd.conf.5.rst
https://github.com/MusicPlayerDaemon/MPD/blob/master/doc/mpdconf.example

Dev tweaks
Code:
# List feature availability
moodeutl -a

# Enable dev tweaks feature
moodeutl -A add 32768
sudo reboot

# Create custom mpd.conf
sudo cp /etc/mpd.conf /etc/mpd.custom.conf

# Make changes to custom mpd.conf
sudo nano /etc/mpd.custom.conf

# Changes are automatically merged when config is saved
Menu, Configure, MPD
SAVE

# View changes and #change_comments
cat /etc/mpd.conf

# Disable dev tweaks and revert to normal config
moodeutl -A rm 32768
sudo rm /etc/mpd.custom.conf
sudo reboot
Menu, Configure, MPD
SAVE

Thanks for the reply Tim, much appreciated.