- edit sudoers
> sudo visudo {user} ALL=NOPASSWD: /usr/bin/rtcwake - set hibernate time and script in cron
> crontab -e 0 22 * * * export DISPLAY=:0.0 && /xxxxx/hibernate-and-resume/hibernate-and-resume.py
- Manjaro (Xfce)
- Python3.9
| Name | Name | Last commit date | ||
|---|---|---|---|---|
> sudo visudo
{user} ALL=NOPASSWD: /usr/bin/rtcwake
> crontab -e
0 22 * * * export DISPLAY=:0.0 && /xxxxx/hibernate-and-resume/hibernate-and-resume.py