[Bug 287539] New: Make Realtime clock wakeup alarm available
https://bugzilla.novell.com/show_bug.cgi?id=287539 Summary: Make Realtime clock wakeup alarm available Product: openSUSE 10.3 Version: Alpha 1 Platform: i586 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: tschmidt@novell.com QAContact: qa@suse.de CC: bwalle@novell.com Found By: --- Please unset CONFIG_RTC and CONFIG_GEN_RTC in the default kernel configuration, so that /sys/class/rtc/rtc0/* is available, as it was removed from /proc/acpi with 2.6.22. I found another problem with this interface: echo 1182948552 > /sys/class/rtc/rtc0/wakealarm; cat /sys/class/rtc/rtc0/wakealarm returns 2051637448 Maybe a problem with BIOS not saving the century? (see also http://lkml.org/lkml/2007/6/19/264) Also it seems, that /sys/class/rtc/rtc0/wakealarm only accepts times more than 2h in the future. With the old interface /proc/acpi/alarm it was working fine. (Machine is: bessel.suse.de) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=287539
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539#c1
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539#c2
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539#c3
--- Comment #3 from Bernhard Walle
From git 87ac84f42a7a580d0dd72ae31d6a5eb4bfe04c6d.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=287539#c4
Thomas Schmidt
https://bugzilla.novell.com/show_bug.cgi?id=287539#c5
Bernhard Walle
The hardware clock is set to local time. I can run the attached program, but my computer does not wake up.
bessel:~ # date; ./wakeup -v -l -t $(date -d '14:50' +%s); Wed Jul 11 14:49:23 CEST 2007 tzone = -3600 tzname = CEST systime = 1184158163, (UTC) Wed Jul 11 12:49:23 2007 rtctime = 1184161763, (UTC) Wed Jul 11 13:49:23 2007 alarm 1184158200, sys_time 1184158163, rtc_time 1184161763, seconds 0 wakeup: wakeup from "standby" using rtc0 at Wed Jul 11 13:50:00 2007
So you did manually turn the power on again after it suspended?
/sys/class/rtc/rtc0/wakealarm is empty after running the program.
wakeup suspends automatically if you don't call it with "-m on". So, after waking up again, of course, wakealarm is empty. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=287539#c6
Thomas Schmidt
https://bugzilla.novell.com/show_bug.cgi?id=287539
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539#c8
Bernhard Walle
sure, we can. You want this for 10.3? I don't see any /dev/rtc[0-9]* here.
Of course, because the kernel configuration must be changed before. But I cannot change it unless udev rules are adapted, so this is something we must do in the same step. Jeff, should we still switch from CONFIG_RTC to CONFIG_RTC_INTF_DEV in 10.3 or is it too late? It would be nice because rtcwake doesn't work in 10.3 currently as /proc/acpi/alarm is gone and rtcwake(1) or /sys/class/rtc/rtcX/wakealarm needs the kernel change. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=287539
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539#c9
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=287539#c14
--- Comment #14 from Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=287539
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539#c15
--- Comment #15 from Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539#c16
Ulrich Derenthal
https://bugzilla.novell.com/show_bug.cgi?id=287539#c17
--- Comment #17 from Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539#c18
--- Comment #18 from Ulrich Derenthal
https://bugzilla.novell.com/show_bug.cgi?id=287539#c19
--- Comment #19 from Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=287539#c20
Jeff Mahoney
participants (1)
-
bugzilla_noreply@novell.com