Page 3 of 3

Re: Peppy player

Posted: Sun Mar 10, 2019 4:35 am
by peppy.player
New version (Durer Edition) of the Peppy Player was released.

New features:

* Implemented support for Podcasts. ... sts-Player ... ts-Browser




* Added PWM output to VU Meter. ... M-VU-Meter

* Added support for user-defined startup and shutdown scripts. ... wn-Scripts

* Fixed the issue with Weather Screensaver.

* Updated the Gallery with new images of the NixiePeppy project created by Tobias (Germany, Hamburg): ... ki/Gallery

Here is the project's introduction video on YouTube:




Re: Peppy player

Posted: Sun Mar 10, 2019 10:15 am
by pancakeroll
I'm attempting to build my own head unit for my car and this seems ideal to be the back end.

However, although I've tested several images on two PI 3's, I'm hitting the same block - I can't seem to get USB access to music files. I've tried two USB drives (8GB, 16GB) - I've tried exFAT and FAT32 and FAT but nothing is recognised. I've also tried a USB CD drive but this seems not to be recognised either with the icon greyed out.

I also don't seem to have mouse support (if I plug the mouse in before or after boot - no pointer, from reading the guide it seems I should be able to get this? - I do get keyboard support.

I'd love to get this working and provide, if you are interested, suggestions for the future and some feedback on the manual.

The software seems well thought out and capable but without being able to play anything, I can't go any further.

Re: Peppy player

Posted: Sun Mar 10, 2019 4:13 pm
by peppy.player
Hi pancakeroll,

Sorry for inconveniences caused by the player. Let's try to resolve your issues.

The player was mostly designed to be used with touchscreens. In this case there is no need
in mouse cursor on screen. But you can enable it by changing the line #723 in the file
/home/pi/Peppy/util/ ...
I should probably make it as a configurable parameter.

Regarding mounting disks and CD player, Peppy player disk images are based on the regular Raspbian Stretch Lite OS.
The player doesn't change anything in OS. So if you face any issues with player disk images you will face
the same issues with regular OS.

You can try to mount your disk manually if it was not mounted automatically.

1. Run command 'blkid' to find the ID of your disk, for example you have the following output:
/dev/sdb: LABEL="MUSIC" UUID="CAE0-1FC6" TYPE="vfat"

2. Edit the file /etc/fstab and add the following line (change CAE0-1FC6 by your UUID which you get in the previous step):
UUID = CAE0-1FC6 /home/pi/music vfat defaults, users, nofail 0 0
here I mounted disk to folder /home/pi/music. This folder is easily accessible in Peppy player by clicking on 'User' icon.

Please make sure that you connect CD player through the powered USB hub not directly to the Pi USB connector.
I had issues when it was connected directly.

I'm open for any feedback and recommendations for improvements. Please let me know if you have any. You can contact me
either here or using e-mail address

Good luck!

Re: Peppy player

Posted: Wed Apr 17, 2019 5:27 am
by mazellan

I was just trying to upgrade Peppy Waveshare 5" HDMI from Rubens to Durer.

The touch screen wouldn't work. I tried El Greco same problem.

Unfortunately I overwrote Rubens so couldn't go back.

I confirmed the touch hardware with the Waveshare Raspbian image.

Could you make the old Rubens image available, and if it works I can try to work out the problem with the later images.

I'm keen to try out the new podcast functionality.


Re: Peppy player

Posted: Thu Apr 18, 2019 5:36 am
by peppy.player
Hi mazellan,

I've just tested Durer image for 5" Waveshare screen. It works fine including
touchscreen functionality. I tested it with this display:
Do you have the same display?

Re: Peppy player

Posted: Thu Apr 18, 2019 9:46 pm
by mazellan
I'm using a Chinese clone, but it worked perfectly with Rubens, as it does with the Waveshare Raspbian image. I wish I hadn't overwritten my working Rubens, I could have compared it to the later image to see what might be different. I don't recall having to change anything to make touch work.

Re: Peppy player

Posted: Fri Apr 19, 2019 4:44 am
by peppy.player
I don't think that Peppy code caused the issue. Are you sure that you had the Rubens edition before?
According to the Release notes:
the disk image for 5" display was added in Velázquez edition which was released after the Rubens edition.
So if you had Rubens edition then more likely you installed/configured display driver yourself (?)

I don't have old binaries but source files are available here:
Check the date in the Release notes and download required file, expand it into /home/pi/Peppy folder
(rename the old one) and set the following configuration for 5" display in the /hope/pi/Peppy/config.txt:
width = 800
height = 480
hdmi = True

Here is the cheatsheet which I use for creating disk image for the 5" Waveshare display. Maybe it can help
to configure your display.

1. Install Headless image: ... isk-Images
2. Configure display in Peppy configuration file:
nano /home/pi/Peppy/config.txt:
width = 800
height = 480
hdmi = True

use.web = False
use.headless = False

nano /home/pi/Peppy/screensaver/peppymeter/config.txt:
screen.size = large
3. Configure display in boot config file:
sudo nano /boot/config.txt
hdmi_cvt 800 480 60 6 0 0 0
4. Install display driver:
wget ... 331.tar.gz
tar xzf LCD-show-180331.tar.gz
cd LCD-show/
chmod +x LCD5-show
5. Create file which makes touchscreen device without X-Windows
sudo nano /etc/udev/rules.d/95-ads7846.rules
add content:
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{name}=="ADS7846 Touchscreen", SYMLINK+="input/touchscreen"
sudo reboot
6. Install touchscreen calibration software and run it (assuming that previous step created device /dev/input/touchscreen):
sudo apt-get install libts-bin
sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate
7. Disable boot messages in the console:
sudo nano /boot/cmdline.txt
8. Add splash screen
sudo apt-get install fbi
wget ... sh.service
nano splash.service
change in splash.service /dev/fb1 to /dev/fb0
change splash.png -> splash-800.png
sudo mv splash.service /etc/systemd/system
sudo systemctl enable splash
sudo systemctl start splash
9. Add player autostart:
sudo nano /etc/rc.local
add (before 'exit' command):
su pi -c 'cd /home/pi/Peppy; openvt -s -- python3'

Please let know this info was helpful for you.
Good luck!

Re: Peppy player

Posted: Fri Apr 19, 2019 9:20 pm
by mazellan
Thanks for that, I'll give it a try when I get time. You are right, it was Velázquez. Old age, memory failing!

Re: Peppy player

Posted: Sat Apr 20, 2019 5:47 am
by mazellan
With your excellent checklist, that took 5 minutes to fix.
95-ads7846.rules doesn't exist in the image.

Now to try out podcasts! Thanks

Re: Peppy player

Posted: Sat Apr 20, 2019 4:13 pm
by peppy.player
Please let me know if you will face any issues with podcasts which were
implemented after your request :)

Re: Peppy player

Posted: Mon May 06, 2019 2:54 am
by peppy.player
New project was added to the Gallery:
Player with the official 7" Raspberry Pi Touch Display by Koepisch (Germany) ... ki/Gallery

Koepisch made several code modification in order to make Peppy software working with the official 7" touchscreen. I hope to integrate those changes into one of the next Peppy software releases and prepare new disk image for the display.

Here is the author's description of the project:

The project took several months and became the music player for my daughter. I had to make some software adjustments. The standard Pygame event processing had to be switched to the MultiTouch driver. The colors were changed too.


In terms of hardware, I installed the display without rotation. A HifiBerry DAC+ Card didn't have onboard connectors and used an extra audio output socket instead. A 2-pin power switch has the LED which switches between red (off) and green (on). The power supply was wired via an extra connector.


Re: Peppy player

Posted: Tue May 28, 2019 3:36 pm
by Frankys

I struggle trying to make a touchscreen work on peppy.
I use a 7inch Kuman display 800*480 with a raspberry pi 3. I try with the headless an waveshare 5 inch version modified with the information in the comments.
I got the gui working except for the touch part, it seems my action doesn't register or that it does register the wrong button.

I add the official drivers for the screen:

Does have any ideas what would be wrong ?


Re: Peppy player

Posted: Wed May 29, 2019 4:04 pm
by peppy.player
Hi, I have never used this display. Does it work with Raspbian Desktop?
If coordinates are flipped you can try to set parameter flip.touch.xy to True in file: /home/pi/Peppy/config.txt
flip.touch.xy = True

Did you try to run calibration utility:
sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate
Did it work?

Re: Peppy player

Posted: Thu May 30, 2019 3:44 pm
by Frankys
It finally works :p
The launch script was not working properly, I do each action one by one except the installation of xserver...
I spot one thing about the pause button, the music pause but the loading and the timer still continue like it's playing. It's just a nitpick :p .

Can the player show the music artalbum that is in the folder and not try to found it on the internet ?

It's a nice little player !

Re: Peppy player

Posted: Thu May 30, 2019 6:51 pm
by peppy.player
This is great that you found the solution!
Could you clarify the issue with pause? In which mode that happens - radio, file playback or any other?
The player shows album art from the Internet only for Radio and CD player modes. For the file playback
mode it shows images from disk. Which mode do you mean?
Thank you!

Re: Peppy player

Posted: Fri May 31, 2019 10:47 am
by Frankys
I'm talking only about the audio module, when I try to play local music.

Re: Peppy player

Posted: Fri May 31, 2019 3:34 pm
by peppy.player
the player will display images defined in property folder.images in file /home/pi/Peppy/config.txt:
folder.images = folder.jpg, folder.png, cover.jpg, cover.png, front.jpg, front.png

If you have such images in your folders they will be displayed when you browse through the folders:

and during playback:

The Slideshow screensaver will display all images from the album art folder. The name of that folder
you can define in another property: = covers, artwork, scans, art

Could you provide the sequence of steps which lead to the pause issue?

Thank you!

Re: Peppy player

Posted: Wed Jun 05, 2019 10:48 am
by Frankys
I cannot reproduce the error :roll:

But I have a problem with the loading image:

Code: Select all

ioctl Vt_Getstate:Ioctl()  inappropriate linux device
it cannot launch the python script after that, if I disable splash it works again.

I'm using the headless peppy player image.

Re: Peppy player

Posted: Wed Jun 05, 2019 3:30 pm
by peppy.player
OK, if you will face that pause issue again please let me know.

I had some issues with splash screen for some displays. It starts service which in turn
starts 'fbi' utility which should display images using framebuffer. For some displays it
doesn't work. You can try to change the device name in the command which starts the
splash screen from fb1 to fb0 (assuming that fb0 exists under /dev). The script is
in the folder /etc/systemd/system. The line which starts fbi looks like this:
ExecStart=/usr/bin/fbi -d /dev/fb1 --noverbose -a /home/pi/Peppy/splash.png

Please let me know if you will be able to make it working. Thank you!

Re: Peppy player

Posted: Tue Jun 11, 2019 11:47 am
by Frankys
The script is
in the folder /etc/systemd/system. The line which starts fbi looks like this:
ExecStart=/usr/bin/fbi -d /dev/fb1 --noverbose -a /home/pi/Peppy/splash.png
Unfortunately it doesn't work :(

Re: Peppy player

Posted: Tue Jun 11, 2019 4:32 pm
by peppy.player
Yeah, that's the problem with some displays. Some of them work with 'fbi' some not.
If you will find a way to make it working please let me know. Thanks!