Scheduled reboot Toon 1 for getting sluggish.

Forum about the Toon firmware, and its extensions

Moderators: marcelr, TheHogNL, Toonz

Ron_nl
Member
Member
Posts: 80
Joined: Tue Mar 26, 2019 3:20 pm
Location: Friesland

Scheduled reboot Toon 1 for getting sluggish.

Post 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.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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?
Member of the Toon Software Collective
Ron_nl
Member
Member
Posts: 80
Joined: Tue Mar 26, 2019 3:20 pm
Location: Friesland

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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.
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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?
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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.
Member of the Toon Software Collective
Ron_nl
Member
Member
Posts: 80
Joined: Tue Mar 26, 2019 3:20 pm
Location: Friesland

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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.
imdos
Starting Member
Starting Member
Posts: 5
Joined: Tue Feb 19, 2019 2:12 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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.
Ron_nl
Member
Member
Posts: 80
Joined: Tue Mar 26, 2019 3:20 pm
Location: Friesland

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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.
Havym
Starting Member
Starting Member
Posts: 11
Joined: Wed Sep 25, 2019 10:57 pm
Location: Netherlands

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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
4nuts
Starting Member
Starting Member
Posts: 20
Joined: Wed Dec 22, 2021 12:43 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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.
Attachments
ToonMemFree.png
ToonMemFree.png (102.16 KiB) Viewed 5955 times
Havym
Starting Member
Starting Member
Posts: 11
Joined: Wed Sep 25, 2019 10:57 pm
Location: Netherlands

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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.
4nuts
Starting Member
Starting Member
Posts: 20
Joined: Wed Dec 22, 2021 12:43 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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.
hvxl
Senior Member
Senior Member
Posts: 1987
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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.
Schelte
yjb
Member
Member
Posts: 211
Joined: Fri Apr 17, 2009 1:15 pm
Location: Venhuizen, Netherlands

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by yjb »

Hmm, not sure if cron is installed on all toon's. At least not on my toon2
4nuts
Starting Member
Starting Member
Posts: 20
Joined: Wed Dec 22, 2021 12:43 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post 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 ?
Post Reply

Return to “Toon Firmware”