summaryrefslogtreecommitdiffstats
path: root/sys-utils/rtcwake.c
Commit message (Collapse)AuthorAgeFilesLines
* rtcwake: support not suspendingMarco d'Itri2009-01-261-4/+8
| | | | | | | | | | People usually want to use pm-utils to suspend the system instead of the raw kernel interface, so I added an option to just exit after configuring the wakeup time. Actually I think that all the suspend code should be removed from rtcwake, since it does not really belong there. Signed-off-by: Marco d'Itri <md@linux.it>
* rtcwake: cleanup return codesKarel Zak2008-08-061-14/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: prefer RTC_WKALM_SET over RTC_ALM_SETGabriel Burt2008-08-061-18/+17Star
| | | | | | | | rtcwake: Prefer RTC_WKALM_SET over RTC_ALM_SET, fixing bug with not waking up with new RTCs. Also, return error if unable to set the alarm. Signed-off-by: Gabriel Burt <gburt@novell.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: fix the default mode to "standby"Paulius Zaleckas2008-06-091-1/+1
| | | | | | | | Writing "suspend" to /sys/power/state does nothing. Even "man rtcwake" says that default should be "standby" :) Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt> Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: fix typo SATE -> STATEMike Frysinger2008-02-151-3/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rtcwake: include libgen.h for basename prototypeMike Frysinger2008-02-151-0/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rtcwake: fix UTC time usageDavid Brownell2008-02-081-1/+11
| | | | | | | | | | | | Timezone handling is broken in this version since it's always passing UTC time into the kernel, even on systems where the RTC uses the local timezone. I think that bug must come from bugs in how the system used to to originally develop this code handled the RTC timezone. Both RTCs should have been kept in UTC ... but only one of them was. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
* rtcwake: misc cleanupsDavid Brownell2007-12-031-20/+28
| | | | | | | | | | | | | | | | | | | | Cleanups for rtcwake: - Minor doc updates: highlight the framebuffer problem, give correct history of this code - Improve debug output - Fix some linelength bugs Note that this code predated the sysfs "wakealarm" mechanism, and works around several now-fixed bugs in the kernel RTC framework. Nowadays it would make sense to make this program use only the sysfs interface to the RTC, using "since_epoch" instead of RTC_RD_TIME and "wakealarm" instead of the four other ioctls. That could simplify the mess involved in timezone handling. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: fix typoKarel Zak2007-10-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: fix verbose messageKarel Zak2007-10-041-2/+2
| | | | | | Just make NLS transtalors more happy. (rh#292081) Signed-off-by: Karel Zak <kzak@redhat.com>
* misc-util: new rtcwake commandBernhard Walle2007-07-161-0/+465
Signed-off-by: Bernhard Walle <bwalle@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>