Page 1 of 1

multiple schedule actions?

Posted: 01 Dec 2022, 06:23
by brutus
Hi,

I already got a daily schedule to turn on the display. How do I add a reboot command for the weekend?

Right now:

Code: Select all

scheduled_action=Monday-05:30 Tuesday-05:30 Wednesday-05:30 Thursday-05:30 Friday-05:30 action:xdotool key F5; xset dpms force on
This?:

Code: Select all

scheduled_action=Monday-05:30 Tuesday-05:30 Wednesday-05:30 Thursday-05:30 Friday-05:30 action:xdotool key F5; xset dpms force on; Sunday-19:00 action:reboot
BR,
Michael

multiple schedule actions?

Posted: 02 Dec 2022, 20:52
by fanthom
Michael,

You need to use cron.
See the FAQ on kiosk webpage.

Thanks

multiple schedule actions?

Posted: 15 Dec 2022, 14:01
by brutus
Is this the correct command to restart the machine sundays at 6 o'clock pm?

Code: Select all

run_command=echo '00 18 * * SUN root su - -c reboot' >> /etc/crontab

multiple schedule actions?

Posted: 16 Dec 2022, 07:05
by fanthom
Looks OK to me.

multiple schedule actions?

Posted: 19 Jan 2023, 05:38
by brutus
This here didn't work:

Code: Select all

run_command=echo '00 23 * * TUE root su - -c reboot' >> /etc/crontab
Tablet is running for 15 days now.

multiple schedule actions?

Posted: 20 Jan 2023, 11:21
by fanthom
You can verify if cron works properly with this parameter:

Code: Select all

run_command=echo '* * * * * root su - -c date >> /opt/date.log' >> /etc/crontab
Current time should be logged to /opt/date.log every minute.

If that works and the 'reboot' command still does not then maybe your tablet suffers for kernel related problems (maybe if freezes or something).

Thanks

multiple schedule actions?

Posted: 03 Feb 2023, 11:26
by brutus
It's logged but I can also execute 'reboot' from ssh..

multiple schedule actions?

Posted: 03 Feb 2023, 13:22
by fanthom
You may redirect the error of the reboot command to a log:

Code: Select all

run_command=echo '* * * * * root su - -c reboot >> /opt/date.log' >> /etc/crontab
Please check if the error is logged to /opt/date.log (command should be executed every minute).