Invalid volume level and M.A.L.P. cannot connect
armbian 6.1.14 Debian 11 - DietPi v8.14.2

Can you give some more details about what you are trying, what M.A.L.P. is (the MPD client?), and fill the bug report issue template please.
https://f-droid.org/en/packages/org.gateshipone.malp/

fill the bug report issue template please.
Also check MPD service logs:
journalctl -u mpd
Can you reach the O!MPD web interface from the phone and play music from there?
Creating a bug report/issue
Required Information
-
DietPi version |
cat /boot/dietpi/.version -
root@DietPi:~# cat /boot/dietpi/.version G_DIETPI_VERSION_CORE=8 G_DIETPI_VERSION_SUB=14 G_DIETPI_VERSION_RC=2 G_GITBRANCH='master' G_GITOWNER='MichaIng' G_LIVE_PATCH_STATUS[0]='not applicable' G_LIVE_PATCH_STATUS[1]='applied' G_LIVE_PATCH_STATUS[2]='applied'
-
Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN -
bullseye
-
Kernel version |
uname -a -
Linux DietPi 6.1.13-flippy-82+ #44 SMP Thu Feb 23 21:01:06 CST 2023 aarch64 GNU/Linux -
SBC model |
echo $G_HW_MODEL_NAMEor (EG: RPi3) -
Generic Allwinner H6 (aarch64)
-
Power supply used | (EG: 5V 1A RAVpower)
-
SD card used | (EG: SanDisk ultra)
-
SanDisk usb disk
Additional Information (if applicable)
- Software title | (EG: Nextcloud)
- Was the software title installed freshly or updated/migrated?
- Can this issue be replicated on a fresh installation of DietPi?
- Bug report ID |
echo $G_HW_UUID
Steps to reproduce
- ...
- ...
Expected behaviour
- ...
Actual behaviour
- ...
Extra details
- ...
root@DietPi:~# journalctl -u mpd
-- Journal begins at Mon 2023-02-27 13:17:11 GMT, ends at Mon 2023-02-27 14:43:41 GMT. --
Feb 27 13:17:16 DietPi systemd[1]: Starting Music Player Daemon...
Feb 27 13:17:18 DietPi systemd[1]: Started Music Player Daemon.
Feb 27 13:17:19 DietPi mpd[843]: avahi: Service 'Music Player @ DietPi' successfully established.
Feb 27 14:06:27 DietPi mpd[843]: alsa_output: Decoder is too slow; playing silence to avoid xrun
Feb 27 14:06:32 DietPi mpd[843]: alsa_output: Decoder is too slow; playing silence to avoid xrun
Feb 27 14:06:37 DietPi mpd[843]: alsa_output: Decoder is too slow; playing silence to avoid xrun
Feb 27 14:06:42 DietPi mpd[843]: alsa_output: Decoder is too slow; playing silence to avoid xrun
Feb 27 14:06:47 DietPi mpd[843]: alsa_output: Decoder is too slow; playing silence to avoid xrun
Feb 27 14:06:52 DietPi mpd[843]: alsa_output: Decoder is too slow; playing silence to avoid xrun
Feb 27 14:06:57 DietPi mpd[843]: alsa_output: Decoder is too slow; playing silence to avoid xrun
Feb 27 14:07:03 DietPi mpd[843]: alsa_output: Decoder is too slow; playing silence to avoid xrun
Feb 27 14:19:39 DietPi systemd[1]: Stopping Music Player Daemon...
Feb 27 14:19:39 DietPi mpd[843]: player: played "http://asiafm.hk:8000/asiahd"
Feb 27 14:19:39 DietPi systemd[1]: mpd.service: Succeeded.
Feb 27 14:19:39 DietPi systemd[1]: Stopped Music Player Daemon.
Feb 27 14:19:39 DietPi systemd[1]: mpd.service: Consumed 1min 28.293s CPU time.
Feb 27 14:19:39 DietPi systemd[1]: Starting Music Player Daemon...
Feb 27 14:19:40 DietPi systemd[1]: Started Music Player Daemon.
Feb 27 14:19:41 DietPi mpd[2512]: avahi: Service 'Music Player @ DietPi' successfully established.
Feb 27 14:19:57 DietPi systemd[1]: Stopping Music Player Daemon...
Feb 27 14:19:57 DietPi mpd[2512]: player: played "http://asiafm.hk:8000/asiahd"
Feb 27 14:19:57 DietPi systemd[1]: mpd.service: Succeeded.
Feb 27 14:19:57 DietPi systemd[1]: Stopped Music Player Daemon.
Feb 27 14:19:57 DietPi systemd[1]: mpd.service: Consumed 4.203s CPU time.
Feb 27 14:19:57 DietPi systemd[1]: Starting Music Player Daemon...
Feb 27 14:19:58 DietPi systemd[1]: Started Music Player Daemon.
Feb 27 14:19:59 DietPi mpd[2645]: avahi: Service 'Music Player @ DietPi' successfully established.
Feb 27 14:20:10 DietPi systemd[1]: Stopping Music Player Daemon...
Feb 27 14:20:10 DietPi mpd[2645]: player: played "http://asiafm.hk:8000/asiahd"
Feb 27 14:20:10 DietPi systemd[1]: mpd.service: Succeeded.
Feb 27 14:20:10 DietPi systemd[1]: Stopped Music Player Daemon.
Feb 27 14:20:10 DietPi systemd[1]: mpd.service: Consumed 3.158s CPU time.
Feb 27 14:20:10 DietPi systemd[1]: Starting Music Player Daemon...
Feb 27 14:20:11 DietPi systemd[1]: Started Music Player Daemon.
Feb 27 14:20:11 DietPi mpd[2790]: avahi: Service 'Music Player @ DietPi' successfully established.
Feb 27 14:20:52 DietPi systemd[1]: Stopping Music Player Daemon...
Feb 27 14:20:52 DietPi mpd[2790]: player: played "http://asiafm.hk:8000/asiahd"
Feb 27 14:20:52 DietPi systemd[1]: mpd.service: Succeeded.
Feb 27 14:20:52 DietPi systemd[1]: Stopped Music Player Daemon.
Feb 27 14:20:52 DietPi systemd[1]: mpd.service: Consumed 6.131s CPU time.
Feb 27 14:20:52 DietPi systemd[1]: Starting Music Player Daemon...
Feb 27 14:20:53 DietPi systemd[1]: Started Music Player Daemon.
Feb 27 14:20:54 DietPi mpd[3070]: avahi: Service 'Music Player @ DietPi' successfully established.
Feb 27 14:20:54 DietPi mpd[3070]: exception: Failed to decode http://asiafm.hk:8000/asiahd; Not an AAC stream
Feb 27 14:20:54 DietPi mpd[3070]: player: played "http://asiafm.hk:8000/asiahd"
Feb 27 14:21:13 DietPi systemd[1]: Stopping Music Player Daemon...
Feb 27 14:21:13 DietPi mpd[3070]: player: played "http://asiafm.hk:8000/asiahd"
Feb 27 14:21:13 DietPi systemd[1]: mpd.service: Succeeded.
Feb 27 14:21:13 DietPi systemd[1]: Stopped Music Player Daemon.
Feb 27 14:21:13 DietPi systemd[1]: mpd.service: Consumed 2.406s CPU time.
Feb 27 14:21:13 DietPi systemd[1]: Starting Music Player Daemon...
Feb 27 14:21:14 DietPi systemd[1]: Started Music Player Daemon.
Feb 27 14:21:15 DietPi mpd[3204]: avahi: Service 'Music Player @ DietPi' successfully established.
Feb 27 14:22:17 DietPi systemd[1]: Stopping Music Player Daemon...
Feb 27 14:22:17 DietPi mpd[3204]: player: played "http://asiafm.hk:8000/asiahd"
Feb 27 14:22:17 DietPi systemd[1]: mpd.service: Succeeded.
Feb 27 14:22:17 DietPi systemd[1]: Stopped Music Player Daemon.
Feb 27 14:22:17 DietPi systemd[1]: mpd.service: Consumed 6.974s CPU time.
Feb 27 14:22:17 DietPi systemd[1]: Starting Music Player Daemon...
Feb 27 14:22:18 DietPi systemd[1]: Started Music Player Daemon.
Feb 27 14:22:19 DietPi mpd[3549]: avahi: Service 'Music Player @ DietPi' successfully established.
Feb 27 14:22:49 DietPi systemd[1]: Stopping Music Player Daemon...
Feb 27 14:22:49 DietPi mpd[3549]: player: played "http://asiafm.com.cn:8000/myradio"
Feb 27 14:22:49 DietPi systemd[1]: mpd.service: Succeeded.
Feb 27 14:22:49 DietPi systemd[1]: Stopped Music Player Daemon.
Feb 27 14:22:49 DietPi systemd[1]: mpd.service: Consumed 4.262s CPU time.
Feb 27 14:22:49 DietPi systemd[1]: Starting Music Player Daemon...
Feb 27 14:22:50 DietPi systemd[1]: Started Music Player Daemon.
Feb 27 14:22:51 DietPi mpd[3689]: avahi: Service 'Music Player @ DietPi' successfully established.
root@DietPi:~#
Can you reach the O!MPD web interface from the phone and play music from there?
The webpage can be remote controlled, but the M.A.L.P. apk cannot

MPD by default listens on localhost only. Change /etc/mpd.conf.
- If you want to access it from LAN only, change
bind_to_address "localhost"tobind_to_address "192.168.30.245", assuming that this is a static IP address. - If you need to access it remotely from outside your LAN as well, change it to
bind_to_address "0.0.0.0". Also set thepasswordsetting so that not the whole world can control your MPD. But I guess there is rarely a use case for remote MPD control.
succeed your way,Thanks!
Also the volume adjustment is invalid
You mean that volume handles to not work? MPD uses a set of default ALSA mixer controls. It seems based on your hardware and kernel, there is no standard volume control. You can check this with:
alsamixer
or
amixer scontrols
Volume adjustment does not change。
Dietpi 7.93 volume adjustment is normal
Dietpi 7.93 volume adjustment is normal
But not with Armbian's Linux 6.1. The Linux version is relevant here, not the DietPi or even the Debian version.
Today I re-installed the old armbian of dietpiV7.9.3, and installed the latest DietPi v8.14.2, but the volume adjustment did not change.
What do you mean "did not change"? Did the DietPi update not change something, i.e. it still works, or did the kernel downgrade not change something, i.e. it does not work?
Note that a DietPi update always updates all packages, including the kernel package. Check via uname -r. If you want to keep the old kernel, apt-mark hold the related packages. Also you should be able to downgrade the kernel by switching from current to legacy kernel package names. Usually it is e.g. linux-image-meson64-current (same for dtb) and you can install linux-image-meson64-current.
The best verification that the kernel is the issue probably is to not update DietPi on the old image, but apt update; apt install linux-{image,dtb}-meson64-current, to upgrade only the two kernel packages.
Google Translate may be inaccurate, and I don’t understand Linux very well. I just found a bug in the volume adjustment of the newly installed dietpi, mpd, and ompd. Thank you for your work, it is very useful, I like it very much!
I just found a bug in the volume adjustment of the newly installed dietpi, mpd, and ompd
As said, this is not a bug in DietPi (the distro/userland part), MPD or O!MPD, but a bug in the kernel package, which is maintained by Armbian. There has been a major Linux upgrade recently, and Armbian kernel's are sadly known to break features. Exactly with recent meson64 board kernel (the one you use), audio is known to be often broken unless you do manual ALSA mixer adjustments. See the issue/requests about Odroid C4 here: #6178
Interestingly also on Odroid C4 there is no volume control available. Can be checked with:
amixer scontents
Got it, thanks a lot! Then wait for Linux to fix it!
It is likely not on Linux (Foundation) to fix it, but on Armbian. I guess it is a faulty patch while it works on mainline kernel. Which SBC do you actually use?
MPD can be actually configured to use a specific control for the volume: https://stackoverflow.com/questions/22283154/configuring-volume-control-for-usb-dac-to-be-used-via-mpd
So the outputs of the amixer scontents might help to achieve this, if there is a volume control, just with an uncommon name.