Page 1 of 2

Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Jan 05, 2020 4:20 pm
by Ron_nl
Hello,

Today my Toon got real unresponsive, and I got to manage to go to the "herstart' option before it dimmed again.
The "herstart" took 1 hour 15 minutes, but is now responsive again.

Maybe it is an idea to ad a option for a scheduled reboot, once a week(??) at a certain adjustable time (night)

Just a thought :wink:

Ron.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Jan 05, 2020 7:35 pm
by TheHogNL
Ron_nl wrote:Hello,

Today my Toon got real unresponsive, and I got to manage to go to the "herstart' option before it dimmed again.
The "herstart" took 1 hour 15 minutes, but is now responsive again.

Maybe it is an idea to ad a option for a scheduled reboot, once a week(??) at a certain adjustable time (night)

Just a thought :wink:

Ron.
Should not be necessary. Before and after reboot the memory usage should be the same (or Eneco has a memory leakage in the application). I think your toon was running something which caused the cpu/memory to spike. On what firmware are you? Did you do a recent update with the TSC (update-rooted.sh) method?

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Jan 05, 2020 8:31 pm
by Ron_nl
My Toon is on 5.15.6 TSC 2.1.1 last updated about a month(??) ago by the check for updates button in TSC menu.
I did not update with update-rooted.sh.

Saw Toon was sluggish because the animation for the solar panels almost stopped.
Only app I have is buitenradar.
Toonstore 5.0.

Ron.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Jan 05, 2020 11:20 pm
by TerrorSource
fw 5.18.8 is the latest, the update-rooted changed on multiple things for Toon1 in the meanwhile.

Can you update to the latest firmware en share your results?

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Jan 05, 2020 11:26 pm
by TheHogNL
Ron_nl wrote:My Toon is on 5.15.6 TSC 2.1.1 last updated about a month(??) ago by the check for updates button in TSC menu.
I did not update with update-rooted.sh.
.
That button uses that script also :) So yeah, use that button to update to 5.18.8. In a more recents version of the update script there are some memory tweaks for the toon1 just for this reason.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Jan 05, 2020 11:44 pm
by Ron_nl
Ok, I had hoped to skip that version because of those childish /tacky Xmas, Easter etc. icons.. :D
Will update this week.
Thanks.

Ron.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Fri Jan 10, 2020 4:54 pm
by imdos
TheHogNL wrote: That button uses that script also :) So yeah, use that button to update to 5.18.8. In a more recents version of the update script there are some memory tweaks for the toon1 just for this reason.
Great work; I was on 5.15 or 5.13 something and allready had some reboots and the device was very sluggish. I updated it this morning through TSC to 5.18.8 and it goes smoothlier through the menu's than I have ever experienced so it seems.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Jan 12, 2020 12:29 pm
by Ron_nl
TerrorSource wrote:fw 5.18.8 is the latest, the update-rooted changed on multiple things for Toon1 in the meanwhile.

Can you update to the latest firmware en share your results?
Updated last Monday, had no issues since then.
Hope it stays this way, will keep a close eye on it.

Ron.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Apr 03, 2022 12:38 pm
by Havym
Its an old topic but i would like to request a auto reboot option in Toon.
After a few days Toon reacts slow en auto soft starts itself and processor load is between 80 and 100%. Even connection trough ssh is going slow. After a reboot the Toon works prefect with a processor load about 20%

I have installed the Solaredge app and P2000 running on 5.49.7

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Thu Apr 07, 2022 11:05 am
by 4nuts
Havym wrote:Its an old topic but i would like to request a auto reboot option in Toon.
After a few days Toon reacts slow en auto soft starts itself and processor load is between 80 and 100%. Even connection trough ssh is going slow. After a reboot the Toon works prefect with a processor load about 20%

I have installed the Solaredge app and P2000 running on 5.49.7
Same setup here also Toon 1 and latest firmware, running several apps: Homeassistant, Buienradar , Afvalwijzer , boilerstatus and water.
I made an Python app on a Raspberry to poll the Toon1 every minute to store usage and memory.
What I see in the data that after 3-4 days Toon is not able anymore to clean its memory and after 2 days it reboots.

Solution for me is to let the Raspberry do a reset on the Toon every night @ 4 am.

Now Toon stays ok without performance issues.

So i agree it should be nice to have this option on the Toon itself.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Thu Apr 07, 2022 5:49 pm
by Havym
4nuts wrote: Solution for me is to let the Raspberry do a reset on the Toon every night @ 4 am.
Can you tell me how you did that? Im not that good with code.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Apr 10, 2022 11:08 am
by 4nuts
Havym wrote: Thu Apr 07, 2022 5:49 pm
4nuts wrote: Solution for me is to let the Raspberry do a reset on the Toon every night @ 4 am.
Can you tell me how you did that? Im not that good with code.
The python code does the following:
-1- Setup an SSH connection to the Toon
-2- Daily @ 4 am it sents out the ssh command /sbin/shutdown -r now , the Toon will reboot and freeup the memory.
-3- every minute send the following command to the Toon : uptime , free and iostat -c 1 1 and store the results in Homeassistant via MQTT.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Mon Apr 11, 2022 11:30 am
by hvxl
If you just want the toon to reboot every night at 04:00, you don't need an external device running a script. You can simply create a cron job on the toon itself:

Code: Select all

toon:~# crontab -l
no crontab for root
toon:~# echo '0 4 * * * /sbin/shutdown -r now' | crontab -
toon:~# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (- installed on Mon Apr 11 09:23:35 2022)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
0 4 * * * /sbin/shutdown -r now
This method has the additional advantage that it still works when toon has lost its WiFi connection.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Mon Apr 11, 2022 1:27 pm
by yjb
Hmm, not sure if cron is installed on all toon's. At least not on my toon2

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Tue Apr 12, 2022 7:03 am
by 4nuts
hvxl wrote: Mon Apr 11, 2022 11:30 am If you just want the toon to reboot every night at 04:00, you don't need an external device running a script. You can simply create a cron job on the toon itself:

Code: Select all

toon:~# crontab -l
no crontab for root
toon:~# echo '0 4 * * * /sbin/shutdown -r now' | crontab -
toon:~# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (- installed on Mon Apr 11 09:23:35 2022)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
0 4 * * * /sbin/shutdown -r now
This method has the additional advantage that it still works when toon has lost its WiFi connection.
If i enter the first command : crontab -l
the result is : -sh: crontab: not found
So I think there is no crontab on Toon1 ?