Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: /etc/mpd.conf file
#1
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
Reply
#2
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...conf.5.rst
https://github.com/MusicPlayerDaemon/MPD...nf.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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(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...conf.5.rst
https://github.com/MusicPlayerDaemon/MPD...nf.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.
Reply


Forum Jump: