Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries:
https://porteus-kiosk.org/contact.html
-
brutus
- Black ninja
- Posts: 42
- Joined: 20 May 2022, 06:10
- Distribution: openSUSE
Post#1
by brutus » 01 Dec 2022, 06:23
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
brutus
-
fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#2
by fanthom » 02 Dec 2022, 20:52
Michael,
You need to use cron.
See the FAQ on kiosk webpage.
Thanks
Please add [Solved] to your thread title if the solution was found.
fanthom
-
brutus
- Black ninja
- Posts: 42
- Joined: 20 May 2022, 06:10
- Distribution: openSUSE
Post#3
by brutus » 15 Dec 2022, 14:01
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
brutus
-
fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#4
by fanthom » 16 Dec 2022, 07:05
Looks OK to me.
Please add [Solved] to your thread title if the solution was found.
fanthom
-
brutus
- Black ninja
- Posts: 42
- Joined: 20 May 2022, 06:10
- Distribution: openSUSE
Post#5
by brutus » 19 Jan 2023, 05:38
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.
brutus
-
fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#6
by fanthom » 20 Jan 2023, 11:21
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
Please add [Solved] to your thread title if the solution was found.
fanthom
-
brutus
- Black ninja
- Posts: 42
- Joined: 20 May 2022, 06:10
- Distribution: openSUSE
Post#7
by brutus » 03 Feb 2023, 11:26
It's logged but I can also execute 'reboot' from ssh..
brutus
-
fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#8
by fanthom » 03 Feb 2023, 13:22
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).
Please add [Solved] to your thread title if the solution was found.
fanthom