[SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
Every few weeks my pCP 6.0 + Pi touchscreen device freezes. Is it possible to use the Pi's hardware watchdog to force quick, automatic recovery? FWIW I'm using a 3B+. Thanks! owner of the stuff at https://tuxreborn.netlify.app/ (which used to reside at www.tux.org/~peterw/) Note: The best way to reach me is email or PM, as I don't spend much time on the forums. *Free plugins:* AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
We have a reboot function, but theres not a way to detect jivelite not being responsive. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
Thanks. I may give this a try -- the diagnostics shows the bcm2835_wdt kernel module is being loaded, so it seems it should just be a matter of making sure startup kicks off a script that repeatedly touches /dev/watchdog. owner of the stuff at https://tuxreborn.netlify.app/ (which used to reside at www.tux.org/~peterw/) Note: The best way to reach me is email or PM, as I don't spend much time on the forums. *Free plugins:* AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
Jivelite locking up is a long time known issue, It's random, and has never been able to be tracked down. It normally only affects Jivelite. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
paul- wrote: > Jivelite locking up is a long time known issue, It's random, and has > never been able to be tracked down. It normally only affects Jivelite. Thanks. Huh, so the watchdog timer wouldn't help there. Nor, I guess, would daily restarts of Squeezelite. But how would you recommend restarting jivelite? Just 'sudo killall jivelite' and let /opt/jivelite/bin/jivelite.sh respawn it? How stuck does jivelite get? ISTM it should be pretty easy to modify it to do something like "touch" a RAMfs file periodically, and then the jivelite.sh shell script could notice if that file was too old, indicating a hung jivelite process? owner of the stuff at https://tuxreborn.netlify.app/ (which used to reside at www.tux.org/~peterw/) Note: The best way to reach me is email or PM, as I don't spend much time on the forums. *Free plugins:* AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
Jivelite lockup is related to timer variables overflowing in the jive code that occurs every 24 days +20:31 . Affects the radio, touch and controller as well. See 'this thread' (https://forums.slimdevices.com/showthread.php?111650-Spontaneous-turning-on&p=966705&viewfull=1#post966705) for a discussion. To avoid it I use this custom cron command in pcp to restart jivelite twice a month. Code: 30 2 5,21 * * pkill -x /opt/jivelite/bin/jivelite We would need implement a watchdog semaphore in jivelite similiar to 'that in squeezeplay on the hardware players' (https://github.com/Logitech/squeezeplay/blob/public/7.8/src/squeezeplay/src/ui/platform_linux.c#L145) and then run a watchdog daemon at boot in pcp to monitor jivelite and restart as needed. Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
ralphy wrote: > Jivelite lockup is related to timer variables overflowing in the jive > code that occurs every 24 days +20:31 . Affects the radio, touch and > controller as well. > > See 'this thread' > (https://forums.slimdevices.com/showthread.php?111650-Spontaneous-turning-on&p=966705&viewfull=1#post966705) > for a discussion. > > To avoid it I use this custom cron command in the pcp web admin tweaks > tab to restart jivelite twice a month. > > > Code: > > 30 2 5,21 * * pkill -x /opt/jivelite/bin/jivelite > > > Thanks! I'm going to try a combination of that (to address the known bug) and a little shell script to write a byte to /dev/watchdog every 7 seconds (to address problems that the OS can't handle). owner of the stuff at https://tuxreborn.netlify.app/ (which used to reside at www.tux.org/~peterw/) Note: The best way to reach me is email or PM, as I don't spend much time on the forums. *Free plugins:* AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
After 26d of working fine, my time display has just locked up. Cron has this: 30 2 5,21 * * pkill -x /opt/jivelite/bin/jivelite Any suggestions for diagnosis/remedy before I reboot it? mr-b's Profile: http://forums.slimdevices.com/member.php?userid=10044 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
mr-b wrote: > After 26d of working fine, my time display has just locked up. > > Cron has this: > > 30 2 5,21 * * pkill -x /opt/jivelite/bin/jivelite > > Any suggestions for diagnosis/remedy before I reboot it? FWIW, the cron job restarting jivelite has also proved insufficient for me -- several days ago my screen froze so I enabled the scheduled reboot tweak, set to do so once a week. IIRC, when my screen froze most recently the PcP was still responsive enough that I could use the web interface to reboot it. I haven't tried setting up anything like remote syslog so I don't know if the watchdog timer has ever kicked in for real; as far as I know, it's just the Jive UI that's getting messed up, and it has not been frequent enough to motivate me to investigate further. I do kinda wish I'd SSHed in the other day and at least looked around some before rebooting. Oh, well. owner of the stuff at https://tuxreborn.netlify.app/ (which used to reside at www.tux.org/~peterw/) Note: The best way to reach me is email or PM, as I don't spend much time on the forums. *Free plugins:* AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
Tx - I've enabled the weekly PCP reboot option now too. Yes the UI works fine, just the display is frozen. I'd no idea what to look for though when it did happen, but I might enable syslog for S&G if I get the time. mr-b's Profile: http://forums.slimdevices.com/member.php?userid=10044 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
peterw wrote: > FWIW, the cron job restarting jivelite has also proved insufficient for > me -- several days ago my screen froze so I enabled the scheduled reboot > tweak, set to do so once a week. IIRC, when my screen froze most > recently the PcP was still responsive enough that I could use the web > interface to reboot it. I haven't tried setting up anything like remote > syslog so I don't know if the watchdog timer has ever kicked in for > real; as far as I know, it's just the Jive UI that's getting messed up, > and it has not been frequent enough to motivate me to investigate > further. I do kinda wish I'd SSHed in the other day and at least looked > around some before rebooting. Oh, well. mr-b wrote: > Tx - I've enabled the weekly PCP reboot option now too. Yes the UI works > fine, just the display is frozen. > I'd no idea what to look for though when it did happen, but I might > enable syslog for S&G if I get the time. If jivelite is frozen and the pcp web interface still works, any logging you enable won't likely help. I've been chasing this issue for years and the only helpful log messages are only written to the console when you run /opt/jivelite/bin/jivelite from an ssh session. I run the screen utility with a 1 line buffer to keep the jivelite ssh session running without needing to keep the terminal window open for weeks at a time. I've narrowed down the crash to the SDL 1.2.15 library and have been testing a pcp7 64bit jivelite build using the yet to be released 1.2.16 for several months without a crash. Not counting the 24 day timer wrap around bug that also affects the radio, touch and controller. Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
Tx Ralphy for keeping this in mind for all this time! Your news sounds very promising. :) mr-b's Profile: http://forums.slimdevices.com/member.php?userid=10044 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
ralphy wrote: > If jivelite is frozen and the pcp web interface still works, any logging > you enable won't likely help. I've been chasing this issue for years > and the only helpful log messages are only written to the console when > you run /opt/jivelite/bin/jivelite from an ssh session. I run the > screen utility with a 1 line buffer to keep the jivelite ssh session > running without needing to keep the terminal window open for weeks at a > time. > > I've narrowed down the crash to the SDL 1.2.15 library and have been > testing a pcp7 64bit jivelite build using the yet to be released 1.2.16 > for several months without a crash. Not counting the 24 day timer wrap > around bug that also affects the radio, touch and controller. I've just seen the frozen clock display on another pCP running piCorePlayer v8.1.0 | www v00017 | linux 5.10.77-pcpCore-v7l (32) | piCore v13.1 | Squeezelite v1.9.9-1391-pCP. Did the newer jivelite/SDL lib make it into this release? I couldn't spot this info on the Diags page. mr-b's Profile: http://forums.slimdevices.com/member.php?userid=10044 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
mr-b wrote: > I've just seen the frozen clock display on another pCP running > piCorePlayer v8.1.0 | www v00017 | linux 5.10.77-pcpCore-v7l (32) | > piCore v13.1 | Squeezelite v1.9.9-1391-pCP. > Did the newer jivelite/SDL lib make it into this release? I couldn't > spot this info on the Diags page. Yes, it's in the repository. However, if you did an institue upgrade of pcp then jivelite does not get updated as part of the process. You need to manually upgrade jivelite from the tweaks tab in the webgui. Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
ralphy wrote: > Yes, it's in the repository. > > However, if you did an institue upgrade of pcp then jivelite does not > get updated as part of the process. You need to manually upgrade > jivelite from the tweaks tab in the webgui. Yes I normally do in situ upgrades. The update page says "Additional extensions (ie. Jivelite, Shairport) may need to be reloaded." and I'd guessed that extensions would be reloaded anyway after a reboot after a pcp upgrade. Are you saying that some/all extensions need to be manually *updated* after an in situ upgrade (via the "Patch Update" button)? Is this a commonly known "feature" ? I checked the Installed extensions and saw pcp-jivelite but couldn't spot any version info to check. mr-b's Profile: http://forums.slimdevices.com/member.php?userid=10044 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
mr-b wrote: > Yes I normally do in situ upgrades. > > The update page says "Additional extensions (ie. Jivelite, Shairport) > may need to be reloaded." and I'd guessed that extensions would be > reloaded anyway after a reboot after a pcp upgrade. > Are you saying that some/all extensions need to be manually *updated* > after an in situ upgrade (via the "Patch Update" button)? Is this a > commonly known "feature" ? > > I checked the Installed extensions and saw pcp-jivelite but couldn't > spot any version info to check. Yes, both jivelite and shairport are not upgraded automatically. Tinycore doesn't support version info directly, only the extension checksum is used to determine if an update is needed. There is version info available in the repo for extensions, however, it's not downloaded. You can compare the local md5sum files for jivelite with the repository, but it's much easier... to in the jivelite section of the tweaks page there's an update button which will update all jivelite components that are "out of date". Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
ralphy wrote: > Yes, both jivelite and shairport are not upgraded automatically. > > Tinycore doesn't support version info directly, only the extension > checksum is used to determine if an update is needed. There is version > info available in the repo for extensions, however, it's not downloaded. > You can compare the local md5sum files for jivelite with the > repository, but it's much easier... to in the jivelite section of the > tweaks page there's an update button which will update all jivelite > components that are "out of date". OK I tried the Update button as comparing checksums didn't appeal too greatly. Code: [ INFO ] Checking for Updates from: https://repo.picoreplayer.org/repo [ INFO ] Checking: pcp-jivelite.tcz Extension version Matches [ INFO ] Gathering Dependancies: touchscreen-5.10.77-pcpCore-v7l.tcz graphics-5.10.77-pcpCore-v7l.tcz alsa-modules-5.10.77-pcpCore-v7l.tcz libts.tcz pcp-lua.tcz pcp-lirc.tcz media-rc-5.10.77-pcpCore-v7l.tcz libasound.tcz pcp-jivelite_hdskins.tcz [ INFO ] Checking: alsa-modules-5.10.77-pcpCore-v7l.tcz Extension version Matches [ INFO ] Checking: graphics-5.10.77-pcpCore-v7l.tcz Extension version Matches [ INFO ] Checking: libasound.tczExtension version Matches [ INFO ] Checking: libts.tczExtension version Matches [ INFO ] Checking: media-rc-5.10.77-pcpCore-v7l.tcz Extension version Matches [ INFO ] Checking: pcp-jivelite_hdskins.tcz Extension version Matches [ INFO ] Checking: pcp-lirc.tcz Update Required. [ INFO ] Downloading: pcp-lirc.tcz OK [ INFO ] Validating MD5's of new extensions [ INFO ] Checking: pcp-lua.tcz Extension version Matches [ INFO ] Checking: touchscreen-5.10.77-pcpCore-v7l.tcz Extension version Matches [ INFO ] Done checking for updates [ INFO ] Reboot is required to complete update. So this looks like jivelite is already current but lirc needs updating. Is this going to make any difference? SDL lib isn't mentioned. mr-b's Profile: http://forums.slimdevices.com/member.php?userid=10044 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
Updating lirc won't make a difference as it only has a fix for irrecord and SDL is bundled in the jivelite extension. To check the sdl version; Code: tc@rpi$ *ls -l /tmp/tcloop/pcp-jivelite/opt/jivelite/lib/libSDL-1.2.so.0.11.?* -rwxr-xr-x1 root root299168 May 23 2021 /tmp/tcloop/pcp-jivelite/opt/jivelite/lib/libSDL-1.2.so.0.11.5 The SDL 1.2.16 shared library ends with a 5, the older v1.2.15 ends in a 4. I should mention that jivelite still "hangs" after 24 days as mentioned in 'post #6' (https://forums.slimdevices.com/showthread.php?113247-piCorePlayer-6-and-watchdog-timer&p=994917&viewfull=1#post994917). But otherwise I haven't had jivelite freeze. Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] piCorePlayer 6 and watchdog timer?
Ok great - my filename is the same as yours so I'm going back to the first workaround again i.e. for the 24d bug. mr-b's Profile: http://forums.slimdevices.com/member.php?userid=10044 View this thread: http://forums.slimdevices.com/showthread.php?t=113247 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix