Volumio PRIMO: Touch Display issue & Pepper Screensaver Plugin help (please...) :)

and that part I don’t get, as this is already part of:
run_peppymeter.sh

#!/bin/bash
cd /data/plugins/miscellanea/peppy_screensaver/peppymeter

if ! pgrep -x "python3" > /dev/null
then
	export DISPLAY=:0
	python3 volumio_peppymeter.py
fi

Indeed it is, this command is taken from run_peppymeter.sh, but I think the plugin maybe doesn’t start this shell script.

No, the shell runs, the problem is elsewhere.

and my 2cts…
Maybe the solution to the problem will be a modification of the userconfig.txt file?
It should be modified and rulers added
IN boot/userconfig.txt:

hdmi_group=2
hdmi_mode=87
hdmi_cvt 1920 1080 60 3 0 0 0
hdmi_drive=2

Unfortunately there is not a config.txt or userconfig.txt file in Volumio 3.0, anyway I created a userconfig.txt file in / boot but no luck.

1 Like

But that was for @pjorgenunes :stuck_out_tongue_winking_eye:
In your photo the vumeter is full

@Gelo5: sorry but I thought you were referring to the plugin which only shows a dark screen.

@pjorgenunes: I have solved my problem and maybe yours too, in the file

/etc/pam.d/sudo

after the first line:

#%PAM-1.0

add this line of text:

auth       sufficient   pam_permit.so

Then in the file:

/data/plugins/miscellanea/peppy_screensaver/peppymeter/run_peppymeter.sh

change the line:

python3 volumio_peppymeter.py

into:

sudo -k python3 volumio_peppymeter.py

with my TinkerBoard this solves the problem.

1 Like

WIth the manual execution of the plugin, I was able yesterday to get the right screen (with the right resolution choosed):

Didn’t have time (yet), to test your solution. I’ll try it today :pray: and I’ll give feedback.

Many thanks for the help. I’m starting to believe I might make it on Primo :slight_smile:

Awesome!!!

Many thans @pdo59 and all that helped on this.

Outstanding!

Glad it works on your Primo too, @pjorgenunes.
But I must tell you that I am not very experienced in PAM, and therefore I do not know if this change affects other aspects of the system, particularly in terms of security. I am investigating.

If you find out just let me (us) know. For now, I just use it with my external HDD to listen to music. :slight_smile:

Hi @pdo59,

I am trying to setup my TBS with PeppyMeter plugin but without type in command manually as:

cd /data/plugins/miscellanea/peppy_screensaver/peppy-meter

then type:

export DISPLAY=:0
sudo python3 volumio_peppymeter.py

The PeppyMeter won’t start even I changed the /etc/pam.d/sudo and run_peppymeter.sh files.

With the first command via ssh, everything is working fine. The PeppyMeter looks as good as on my RPi4. Any hint?

Hi @naimnatnod, I didn’t understand your problem. Can you be more specific?

Hi @pdo59, the PeppyMeter works on my TBS when I manually type in the following on Terminal (Mac):

cd /data/plugins/miscellanea/peppy_screensaver/peppy-meter

then type:

export DISPLAY=:0
sudo python3 volumio_peppymeter.py

I didn’t understand your point of modifying those two files:
/etc/pam.d/sudo
and
/data/plugins/miscellanea/peppy_screensaver/peppymeter/run_peppymeter.sh

I thought these changes would make the TBS starts the PeppyMeter automatically without typing the manual command on step 1.

Hi @naimnatnod, are you able to use a text editor in Linux? I use vim, but nano is also a good editor. You can use the editor of your choice to modify the two files indicated (/etc/pam.d/sudo and /data/plugins/…/run_peppymeter.sh) to make the changes I indicated in the previous post.

I did use Text Editor on my Mac to modify those 2 files but I still have to do the manual commands.

Thanks for your reply.

Strange, are you sure that the files you edited are saved in the TBS? Try to type these commands via shell on the TBS and post their output.

sudo cat /etc/pam.d/sudo
sudo cat /data/plugins/miscellanea/peppy_screensaver/peppymeter/run_peppymeter.sh

Hi pdo59, got it to work now. :slight_smile:

The problem was the sudo file never got changed due to the permission issue. So I changed it with command sudo nano on the terminal.

Thank you so much. When I have time, I will make a video clip on how to install PeppyMeter plugin and make it to work on TBS.

:grinning: I’m glad you solved it!