https://github.com/phien-ntace/rtcwake
Source code to build rtcwake application for Linux
https://github.com/phien-ntace/rtcwake
c embedded-linux linux power-management rtcwake sleep suspend
Last synced: 5 days ago
JSON representation
Source code to build rtcwake application for Linux
- Host: GitHub
- URL: https://github.com/phien-ntace/rtcwake
- Owner: phien-ntace
- Created: 2016-04-21T00:56:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-02-21T01:54:59.000Z (over 3 years ago)
- Last Synced: 2025-06-22T08:40:31.128Z (about 1 year ago)
- Topics: c, embedded-linux, linux, power-management, rtcwake, sleep, suspend
- Language: C
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Source code to build rtcwake application for Linux
- Add your own Makefile to build. To build for your desktop, use this command `gcc -o rtcwake rtcwake.c -I.`
- Use below command to excute
```
rtcwake -m $(sleep_method) -s $(seconds)
```
Or call through `system()`
```
system("/root/rtcwake -m mem -s 10");
```
- More information about rtcwake: https://man7.org/linux/man-pages/man8/rtcwake.8.html