Peppy Player config screen reboot not working

Hmm, this time I used Pi 3 + Official 7" touchscreen. The result of testing was the same - I couldn't reproduce the issue.
Installed the Klimt Edition and switched between Radio, Audiobooks and Podcasts then double clicked on the Shutdown button (on touchscreen and from Web UI). The player always switched off and never came back (waited about 20 seconds). Tried many times. So, I'm not sure what's the root cause in your case. The usual recommendations - try different SD card and power supply.
 
I suspect there is something outside of the player which causes the issue.
Could you login to Pi and run the following command right after the player startup, after shutdown (in that 5 seconds interval) and when it comes back after shutdown:
ps -elf | grep python

I'm not sure if it makes sense to use your whole Peppy folder. You can just share config.txt and current.txt files.
Please confirm that your environment is Pi 3, Official 7" touchscreen (DSI), wired connection (not Wi-Fi) and you didn't make any OS changes (e.g. /boot/config.txt). Any USB disk or NAS connected?
 
I set logging to append and added some logging to peppy.py.
if not reboot and self.config[DSI_DISPLAY_BACKLIGHT][USE_DSI_DISPLAY] and self.config[BACKLIGHTER]:
self.config[BACKLIGHTER].power = False
logging.info("backlight power turned off")
Never executes or, at least, never logs the message during shutdown.
I added a few logging messages just for a sanity check.
Here's the entire shutdown log:

[2023-06-29 17:20:06,142] {peppy.py:2856} INFO - Entered shutdown
[2023-06-29 17:20:06,143] {peppy.py:2759} INFO - Entered pre_shutdown
[2023-06-29 17:20:06,218] {selector_events.py:53} DEBUG - Using selector: EpollSelector
[2023-06-29 17:20:06,621] {peppy.py:2783} INFO - title_screen_name: stations
[2023-06-29 17:20:06,973] {diskmanager.py:195} DEBUG - Unmount failed with error: umount: /home/pi/music/musicDrive: target is busy.

Notice that "backlight power turned off" is not there
 
I removed the USB drive and it shut down properly, Backlight off, audible click.

[2023-06-29 18:10:46,659] {peppy.py:2856} INFO - Entered shutdown
[2023-06-29 18:10:46,660] {peppy.py:2759} INFO - Entered pre_shutdown
[2023-06-29 18:10:46,702] {selector_events.py:53} DEBUG - Using selector: EpollSelector
[2023-06-29 18:10:47,104] {peppy.py:2783} INFO - title_screen_name: stations
[2023-06-29 18:10:47,466] {peppy.py:2863} INFO - called sudo poweroff
 
  • Like
Reactions: rpi
Peppy now shuts down with USB attached and does not reboot when switching to Collection and back to Radio. Good work, thanks. Here's the log:

***** made change to diskmanager.py to fix turn off problem *****
[2023-06-30 09:04:27,643] {timeslider.py:111} DEBUG - stop timer
[2023-06-30 09:04:27,944] {timeslider.py:103} DEBUG - start timer
[2023-06-30 09:04:36,673] {timeslider.py:111} DEBUG - stop timer
[2023-06-30 09:04:39,279] {peppy.py:2856} INFO - Entered shutdown
[2023-06-30 09:04:39,279] {peppy.py:2759} INFO - Entered pre_shutdown
[2023-06-30 09:04:39,316] {selector_events.py:53} DEBUG - Using selector: EpollSelector
[2023-06-30 09:04:39,718] {peppy.py:2783} INFO - title_screen_name: stations
[2023-06-30 09:04:40,057] {diskmanager.py:195} DEBUG - Unmount failed with error: umount: /home/pi/music/musicDrive: target is busy.
[2023-06-30 09:04:40,107] {diskmanager.py:195} DEBUG - Unmount failed with error: umount: /home/pi/music/musicDrive: target is busy.
[2023-06-30 09:04:40,645] {diskmanager.py:221} DEBUG - Poweroff failed with error: Error powering off drive: The drive in use: Device /dev/sda1 is mounted (udisks-error-quark, 14)