** Description changed:

+ SRU Justification:
+ 
+     Impact: alarm date are always improperly set to 2091.
+     Fix: see attached patch.
+     Testcase: 
+ 
+      sudo sh -c "echo `date '+%s' -d '+ 5 minutes'` >
+ /sys/class/rtc/rtc0/wakealarm" && cat /proc/driver/rtc
+ 
+      you will notice that alrm_date is 2091.
+ 
+ ===
+ 
  I'm working with some of the scripts to do suspend/resume testing and
  noticed that using the /sys/class/rtc/rtc0/wakealarm interface for
  setting wakealarms does not seem to work correctly.  No matter what I
  echo to that file, it always contains the value of 3787332250 after
  catting it again after the echo.  I can echo 0 to it to reset it, but it
  still picks up the wrong value no matter what I send to it.
  
  $ uname -a
  Linux dove 2.6.31-701-dove #4-Ubuntu Thu Dec 17 09:31:21 UTC 2009 armv7l 
GNU/Linux

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/503546

Title:
  Setting rtc wakealarm through sysfs interface fails

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to