Where can I find this template, it is not present in the zip.file 800x480.
Thanks
39 T+A - @Rue
Can you please disable any mixer to try and use DSD native as alsa setting in peppy screensaver
I have a problem with Spotify and PeppyMeter
When I play Spotify music ( 320K ) with PeppyMeter, there is random cackle/pop sound, it’s very low volume, you may need to use earphone to hear it.
The noise only happened on Spotify. It’s normal on playing local music file ( INTERNAL Storage on micro-SD ), Web-Radio, Youtube music…etc.
I use RPi4, RPi5, InnoMaker HiFi DAC Hat and set DAC Model to Allo BOSS. Volumio 3.631 and 3.661 beta. PeppyMeter 2.0.0 beta.
Spotify plugin 4.0.4
Playback option : Audio Buffer size : 12MB.
Touch Display GPU memory : 128Mb ( RPi4 ).
( I can not set GPU memory on Rpi5, why ? )
If I turn off PeppyMeter or set Spotify Integration to Off, the noise disappear and play normal. But if I turn on PeppyMeter, the noise appear again.
I tried to set Alsa configuration to modular alsa or DSD native, the same result.
I tried to set the output to HDMI 0 out ( I use Waveshare 5.5 amoled touch screen, there is 3.5mm audio out jack on the board so that I can use earphone to monitor the sound output on RPi5 ), mixer type to soft on RPi5, and set the screen as install_amoled.sh by @2aCD, the Spotify crack sound seems become a silent period
interrupt.
I think it’s maybe due to Spotify stream cache/buffer problem ? or It’s my DAC ? but HDMI seems had the same problem.
Any help will be appreciated, thank you !
Hi @dewen,
It’s definitively a timing problem in this combination.
Spotify-peppyalsa-DAC
@Roberto_Grieco have the same problem with an smsl usb dac. We have try many alsa configurations to fix the issue and haven’t found a variant that works with Spotify and peppyalsa without this clicks.
At first please disable all mixers, multiroom, AirPlay and set alsa configuration to dsd-native with enabled Spotify support.
yes tried. Still the same.
please try to disable mouse support in PeppyMeter plugin
Try: Project with PeppyMeter Screensaver Plugin for VOLUMIO v2.9xx and 3.0xx buster - #741 by Gelo5
there are settings at the bottom
Disabled the mouse supoort on peppymeter plugin and reboot the system but still having the issue.
Sometimes it also shows error after boot up like “Faile to open ALSA device” and sometimes no such error alert. It need luck.
volumio@volumio5:~$ tail -f /var/log/mpd.log
May 03 17:04 : zeroconf: No global port, disabling zeroconf
May 03 17:04 : exception: No such directory
May 03 17:04 : mixer: Failed to read mixer for ‘alsa’: no such mixer control: PCM
May 03 17:04 : output: Failed to open mixer for ‘alsa’: no such mixer control: PCM
May 03 17:18 : output: Failed to play on “alsa” (alsa): snd_pcm_writei() failed: Broken pipe
May 03 17:18 : exception: Failed to open audio output
When the log throw the exception “Failed to open audio output” then the there is no audio out but the peppymeter still running.
log in details:
http://logs.volumio.org/volumio/DhFmE5j.html
I struggled with this problem for couple days, anyone can help? thanks!
BTW, Failed to open audio ouput will happen every about15 minutes.
Please switch the Alda configuration to dsd-native.
And please restart. If the problem still exist please post you /etc/asound.conf
Thanks for the reply!
It is already DSD-native. Below is the content of /etc/asound.conf
volumio@volumio5:~$ cat /etc/asound.conf
pcm.!default {
type empty
slave.pcm “volumio”
}
pcm.volumio {
type empty
slave.pcm “Peppyalsa”
}
#------ PeppyMeter section -------
pcm.peppy2_off {
type empty
slave.pcm “postpeppyalsa”
}
pcm.Peppyalsa {
type plug
route_policy “duplicate”
slave.channels 4
slave.pcm {
type multi
slaves.a.pcm "postpeppyalsa"
slaves.a.channels 2
slaves.b.pcm "mpd_peppyalsa"
slaves.b.channels 2
bindings.0 { slave a; channel 0; }
bindings.1 { slave a; channel 1; }
bindings.2 { slave b; channel 0; }
bindings.3 { slave b; channel 1; }
}
}
pcm.mpd_peppyalsa{
type meter
slave.pcm “dummy”
scopes.0 peppyalsa
}
pcm.airplay {
type meter
slave.pcm “copy_output”
scopes.0 peppyalsa
}
pcm.spotify {
type plug
slave {
pcm “spd_peppyalsa”
format “S16_LE”
}
}
pcm.spd_peppyalsa{
type meter
slave.pcm “copy_output”
scopes.0 peppyalsa_spd
}
pcm_scope.peppyalsa_spd {
type peppyalsa
decay_ms 400
meter “/tmp/myfifo”
meter_max 150
meter_show 0
}
pcm_scope.peppyalsa {
type peppyalsa
decay_ms 400
meter “/tmp/myfifo”
meter_max 100
meter_show 0
}
pcm_scope_type.peppyalsa {
lib /usr/local/lib/libpeppyalsa.so
}
pcm.dummy {
type hw
card Dummy
device 0
}
pcm.copy_output {
type copy
slave.pcm “postpeppyalsa”
}
pcm.postpeppyalsa {
type empty
slave.pcm “postPeppyalsa”
}
#------ End of PeppyMeter section ------
pcm.postPeppyalsa {
type empty
slave.pcm “volumioOutput”
}
pcm.volumioOutput {
type plug
slave.pcm “volumioHw”
}
pcm.volumioHw {
type hw
card “sndrpirpidac”
}
Below is more info, please help to check if the asound.conf is correct? thanks.
volumio@volumio5:~$ amixer
Simple mixer control ‘Master’,0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 65536 [100%] [on]
Front Right: Playback 65536 [100%] [on]
Simple mixer control ‘Capture’,0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 65536 [100%] [on]
Front Right: Capture 65536 [100%] [on]
volumio@volumio5:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpirpidac [snd_rpi_rpi_dac], device 0: RPi-DAC HiFi pcm1794a-hifi-0 [RPi-DAC HiFi pcm1794a-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 7: Dummy [Dummy], device 0: Dummy PCM [Dummy PCM]
Subdevices: 1/1
Subdevice #0: subdevice #0
volumio@volumio5:~$
Hi @samkuang,
in your screenshot is enabled modular alsa and not DSD native. Also in your asound.conf is not enabled DSD native. The best way is. Make a factory reset of Volumio. Then install the touch screen plugin and then the peppy meter plugin (v2.0.0)
Important:
If you have installed the v2.0.0 on your system you can’t revert back to an older version without factory reset or a new clean install, otherwise you have new styles installed, which not working with an older version.
Set the alsa configuration in peppy meter plugin to ‘DSD native’ and set your screen resolution.
Then restart!
And try again.
Please check in your etc/asound.conf the section dsd-native. At time I see it is set off and modular alsa is on.
The DSD-native setting route the audio pass throught to your sound card. PeppyMeter use then a separate Output for meters. It is the best option to prevent any influence of audio with peppy meters.
Hi @2aCD ,
Thanks for your instructions. I do the factory reset resintall the touch screen and 2.0 peppymter. Also enabled the DSD native on peppymeter plugin as below.
And I cannot see any dsd-native config in /etc/asound.conf.
volumio@volumio5:~$ cat /etc/asound.conf
pcm.!default {
type empty
slave.pcm “volumio”
}
pcm.volumio {
type empty
slave.pcm “Peppyalsa”
}
#------ PeppyMeter section -------
pcm.Peppyalsa {
type empty
slave.pcm “postpeppyalsa”
}
pcm.peppy1_off {
type plug
route_policy “duplicate”
slave.channels 4
slave.pcm {
type multi
slaves.a.pcm "postpeppyalsa"
slaves.a.channels 2
slaves.b.pcm "mpd_peppyalsa"
slaves.b.channels 2
bindings.0 { slave a; channel 0; }
bindings.1 { slave a; channel 1; }
bindings.2 { slave b; channel 0; }
bindings.3 { slave b; channel 1; }
}
}
pcm.mpd_peppyalsa{
type meter
slave.pcm “dummy”
scopes.0 peppyalsa
}
pcm.airplay {
type meter
slave.pcm “copy_output”
scopes.0 peppyalsa
}
pcm.spotify {
type plug
slave {
pcm “spd_peppyalsa”
format “S16_LE”
}
}
pcm.spd_peppyalsa{
type meter
slave.pcm “copy_output”
scopes.0 peppyalsa
}
pcm_scope.peppyalsa {
type peppyalsa
decay_ms 500
meter “/tmp/myfifo”
meter_max 100
meter_show 0
spectrum “/tmp/myfifosa”
spectrum_max 100
spectrum_size 20
logarithmic_frequency 1
logarithmic_amplitude 1
smoothing_factor 60
}
pcm_scope_type.peppyalsa {
lib /usr/local/lib/libpeppyalsa.so
}
pcm.dummy {
type hw
card Dummy
device 0
}
pcm.copy_output {
type copy
slave.pcm “postpeppyalsa”
}
pcm.postpeppyalsa {
type empty
slave.pcm “postPeppyalsa”
}
#------ End of PeppyMeter section ------
pcm.postPeppyalsa {
type empty
slave.pcm “volumioOutput”
}
pcm.volumioOutput {
type plug
slave.pcm “volumioHw”
}
pcm.volumioHw {
type hw
card “DAC”
}
Would you mind telling me how to enable the DSD-native in /etc/asound.conf ?
Thanks!
This asound.conf is now correct. It is v2.0.0 and dsd pass throught is enabled.
Do you have now continuous sound?
Hello ,
I just installed v2.0.0 and I have a few question pls , regarding skins .
Thanks
Hi @2aCD
I check the suggestion you made for @Roberto_Grieco
and edit the file
/data/plugins/user_interface/peppy_screensaver/Peppyalsa.postPeppyalsa.5.conf.tmpl
change
to
i.e. replace the “copy_output” with “postpeppyalsa”
then change the Alsa Configuration ( in PeppyMeter plugin config menu ) to “modular alsa”, save ( apply ), and change back to “DSD-native” then save ( apply ) again.
then shutdown volumio and power off ( remove the type-C power plug ) and power on to restart volumio.
P.S. If I don’t remove the type-c power cord but just reboot, sometimes it will become no sound after boot, don’t know why ? maybe due to incomplete reset of the DAC Hat.
Then the spotify crackle/pop sound disappear, I have no “skip track” problem as @Roberto_Grieco met. I use Volumio 3.661 and PeppyMeter Screensaver 2.0.0.
For test reason, I change back to original
( “postpeppyalsa” to “copy_output )
and the crackle/pop sound appear again.
Although I don’t know how it done ? but it fixed ! Thank you @2aCD !
Maybe @Roberto_Grieco you can try again.