I want to schedule power off at 23:30 and power on at 6:30 everyday.
Here are some problems:
- If I run such command
sudo rtcwake -m off -l -t $(date +%s -d 'tomorrow 06:30')it switches off the pc but does not switch on at 06:30 as expected.
However when I run this command
sudo rtcwake -m off -s 120 it works as expected - the pc is powered off then powered on in 120 sec automatically
- I have scheduled such task
30 23 * * * rtcwake -m off -l -t $(date +\%s -d 'tomorrow 06:30')(using
sudo crontab -e) but the pc is not powered at 23:30 as expected
Can you help me with these two problems?