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.
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 followed your suggestions above and used the directions at https://github.com/project-owner/PeppyPlayers.doc/wiki/Official-7.0
to configure the 7" display. So yes, I set "use.display.backlight to True.
Would it help if i send you my Peppy folder?
to configure the 7" display. So yes, I set "use.display.backlight to True.
Would it help if i send you my Peppy folder?
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?
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
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
It is a pi 3B+ with RPi Official 7" screen. I have a USB thumb drive attached for the Collection and the pi is connected by wifi to my WAP.
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
[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
To fix the issue just remove or comment out this line:
https://github.com/project-owner/Pe...2ca4953353a47556b26b/util/diskmanager.py#L215
https://github.com/project-owner/Pe...2ca4953353a47556b26b/util/diskmanager.py#L215
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)
***** 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)
- Home
- Source & Line
- PC Based
- Peppy Player config screen reboot not working