After spending a few evenings researching and experimenting, I managed to integrate the fantastic PeppyMeter plugin onto my Orange Pi Zero 2W, which runs Kodi for video and Lyrion Music Server for audio. The plugin activates on my HDMI-connected screen whenever I hit “play” in the LMS web interface; pressing “pause” turns the screen black, and pressing “play” reactivates the VU meters. When I turn off the player using the power button in the web interface, it reactivates Kodi, and when I turn the player back on, it shuts down Kodi cleanly by killing the Kodi graphical session. I also replaced the random VU meter setting with my own custom VU meter, using three component files managed by the plugin.
I’ve finished setting up PeppyMeter on my Orange Pi Zero 2W with the Waveshare 7.9" touchscreen, and it’s working perfectly.
Pressing “Play” on the screen—or via the web interface on my PC or smartphone—triggers the VU meters to appear; tapping the screen returns the display to Squeezelite, as does pressing “Pause” on the web interface.
Pressing “Play” again on either the screen or the web interface restarts PeppyMeter.
A quick update: while using my VU meters, I noticed a minor operational flaw—at times, the needles would get stuck, remaining pinned at the minimum position even while music was playing.
I concluded that there was an issue with the PeppyALSA buffer, so I accessed the console and ran the following command:
./peppyalsa-client /var/tmp/peppyfifo
Sure enough, the two horizontal bars would occasionally get stuck at either the minimum or maximum positions, causing the movement of the VU meters to appear jerky and unsmooth.
I simply corrected my /etc/asound.conf file as shown below; everything is now perfect and moves as smoothly as a real analog unit.
pcm.softvol_master {
type softvol
slave.pcm "peppyalsa_output"
control {
name "Master"
card 0
}
}
pcm.peppyalsa_output {
type meter
slave.pcm "dmix_buffer"
scopes.0 peppyalsa
}
# Nouveau bloc de tamponnage (Buffer) pour éviter les gels
pcm.dmix_buffer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_size 2048
buffer_size 8192
}
}
pcm.!default {
type plug
slave.pcm "softvol_master"
}
ctl.!default {
type hw
card 0
}
pcm_scope.peppyalsa {
type peppyalsa
decay_ms 250
meter "/var/tmp/peppyfifo"
meter_max 100
meter_show 0 # CORRECTION 1 : Désactive l'affichage texte interne pour libérer le CPU
}
pcm_scope_type.peppyalsa {
lib /usr/local/lib/libpeppyalsa.so
}