Volumio x86 + PeppyMeter

Hallo!

I thought I should test out new version Peppy screensaver 2.1.0, as it is new (and not beta any more). Looks promessing, I got segmenty fault on the beta, no more. I got 1.5 running before.

For the record, I am on a PC, Core 2 duo processor.

I done some upgrade on al Python modules, downloded and installed by pip3. I even upgraded pygame to latest that way. Then I tested al this command, as recommended, no errors: I did this as user, i.e. command python3, in console (ssh):

import pygame
from socketIO_client import SocketIO
import cairosvg
from PIL import Image

It’s starts and show up, but the meters is not moving. Guess it is only a alsa configuration problem.

I got in

/etc/asound.conf

defaults.pcm.card 5
defaults.ctl.card 5

Then I got /in /home/volumio) the following in

~/.asoundrc

pcm.!default {
	type plug
	slave.pcm "peppyalsa"
}
ctl.!default {
   	type hw
   	card 5
   	device 0
}

# input from Spotify / airplay
pcm.peppyalsa {	
	type plug
	slave.channels 4
  
	slave.pcm {
		type multi
	
		slaves.a.pcm "mpd_alsa"
		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; }
	}
    
	ttable.0.0 1
	ttable.1.1 1
	ttable.0.2 1
	ttable.1.3 1
}

# input from MPD for sound card (direct DSD only working with type hw)
pcm.mpd_alsa {
   	type hw
   	card 5
   	device 0
}

# input from MPD for peppyalsa	
pcm.mpd_peppyalsa{
	type meter
	slave.pcm "dummy"
	scopes.0 peppyalsa
}
	
pcm_scope.peppyalsa {
	type peppyalsa
	decay_ms 400
	meter "/tmp/myfifo"
	meter_max 100
	meter_show 1
}
	
pcm_scope_type.peppyalsa {
   	lib /usr/local/lib/libpeppyalsa.so
}

pcm.dsp0 peppyalsa

pcm.mpd_alsa_deakt {
   	type softvol
   	slave.pcm "snd_card"
   	control {
        name "SoftMaster"
        card 5
        device 0
   	}
   	max_dB 0.0
   	min_dB -50.0
   	resolution 100
}

# sound card output
pcm.snd_card {
   	type hw
   	card 5
   	device 0
}

# null output
pcm.dummy {
   	type hw
	card Dummy
	device 0
}

# Control device for program compatibility.
ctl.snd_card {
   	type hw
   	card 5
   	device 0
}

I have tested the card by speaker-test command.

Default:

speaker-test -t wav -c 2

speaker-test -D default -t wav -c 2

Peppyalsa:

speaker-test -D peppyalsa -t wav -c 2

Mpd alsa:

speaker-test -D mpd_alsa -t wav -c 2

snd_card:

speaker-test -D snd_card -t wav -c 2

Dummy:

speaker-test -D dummy -t wav -c 2

All have sound out, except the dummy, suppose it should not have sound either?!

I got the separate configuration in /etc/asound.conf to get alsamixer to pic up my USB sound card as main and so I could use alsamixer command directly (before I had to do alsamixer -c5). But after installing Peppymeter, alsamixer command does not function, had to do alsamixer -c5 again. I do not have default card now when I do alsamixer -c5, evan as speaker-test on default card functions?!

Well, I do not now if it’s related to alsamixer problem, but I write it out here, for full information.

I havet tested the main Pepptmeter command in console:

cd /data/plugins/user_interface/peppy_screensaver
sh run_peppymeter.sh

The only error I get out is:

libpng warning: iCCP: known incorrect sRGB profile

Surpose it is not related to meters not moving?

I think I missed some configuration for Peppymeter in alsa config file. I am a bit newbee on Volumio, but I worked a lot on Debian distros (also run one machine with Debian 12, and Kodi there).

Glad for any help!