Re: RTC wakealarm write-only, still has 644 permissions

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <a.zummo@...>, <rtc-linux@...>, kernel list <linux-kernel@...>, <dbrownell@...>
Date: Thursday, September 20, 2007 - 6:50 am

Hi!


Hmm, something is definitely wrong in here. I sometimes _do_ get
something back.

root@amd:~# s2ram
Switching from vt9 to vt1


switching back to vt9
root@amd:~# 
root@amd:~# 
root@amd:~# cd /sys/class/rtc/rtc0
root@amd:/sys/class/rtc/rtc0# ls
date  dev  device@  name  power/  since_epoch  subsystem@  time
uevent  wakealarm
root@amd:/sys/class/rtc/rtc0# cat wakealarm 
2051629528
root@amd:/sys/class/rtc/rtc0# cat power/wakeup 

root@amd:/sys/class/rtc/rtc0# cat wakealarm 
2051629528
root@amd:/sys/class/rtc/rtc0# date +%s
1190285030
root@amd:/sys/class/rtc/rtc0# echo 1190285050 > wakealarm 
root@amd:/sys/class/rtc/rtc0# s2ram
Switching from vt9 to vt1


switching back to vt9
root@amd:/sys/class/rtc/rtc0# 
root@amd:/sys/class/rtc/rtc0# 
root@amd:/sys/class/rtc/rtc0# cat wakealarm 
root@amd:/sys/class/rtc/rtc0# cat wakealarm 
root@amd:/sys/class/rtc/rtc0# date +%s
1190285229
root@amd:/sys/class/rtc/rtc0# cat wakealarm 
root@amd:/sys/class/rtc/rtc0# 

Also, is there some documentation for wakealarm?

sh-3.1$ cd Documentation/
sh-3.1$ grep -ri wakealarm .

...is it time in seconds? In UTC? In whatever timezone rtc clocks are
using? It does not seem to work for me :-(.
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RTC wakealarm write-only, still has 644 permissions, Pavel Machek, (Thu Sep 20, 6:32 am)
Re: RTC wakealarm write-only, still has 644 permissions, Pavel Machek, (Thu Sep 20, 6:50 am)
Re: RTC wakealarm write-only, still has 644 permissions, David Brownell, (Sat Sep 22, 1:38 am)
Re: RTC wakealarm write-only, still has 644 permissions, Pavel Machek, (Wed Nov 28, 7:26 pm)
Re: RTC wakealarm write-only, still has 644 permissions, David Brownell, (Thu Nov 29, 2:10 pm)
Re: RTC wakealarm write-only, still has 644 permissions, Pavel Machek, (Fri Nov 30, 4:35 pm)
Re: RTC wakealarm write-only, still has 644 permissions, David Brownell, (Fri Nov 30, 5:10 pm)
Re: RTC wakealarm write-only, still has 644 permissions, David Brownell, (Sun Dec 2, 12:03 pm)
Re: RTC wakealarm write-only, still has 644 permissions, Pavel Machek, (Fri Nov 30, 5:27 pm)
Re: RTC wakealarm write-only, still has 644 permissions, Alessandro Zummo, (Thu Nov 29, 2:14 pm)
Re: RTC wakealarm write-only, still has 644 permissions, David Brownell, (Tue Oct 2, 10:15 pm)