[Q] Hardware rtc (clock) incorrect
There's something fishy happening on my Xperia M (C1905).
Basically, the current time fails to be written to the hardware rtc, so the device is only counting on the time sync through network at boot.
Also, because the hardware rtc is out of sync, alarms won't fire up when the device is powered off.
Part of the kernel messages:
$ adb shell su -c dmesg | less
[ 1.510056] using rtc device, pm8xxx_rtc, for alarms
[ 1.510117] rtc-pm8xxx rtc-pm8xxx: rtc core: registered pm8xxx_rtc as rtc0
[ 1.925286] rtc-pm8xxx rtc-pm8xxx: setting system clock to 1970-01-26 00:2
7:36 UTC (2161656)
[ 8.209980] alarm_set_rtc: Failed to set RTC, time will be lost on reboot
[ 32.398962] alarm_set_rtc: Failed to set RTC, time will be lost on reboot
Execution of some commands in the shell:
root@android:/ # date
Sat Oct 12 21:54:53 HKT 2013
root@android:/ # hwclock
Mon Jan 26 00:53:36 1970 0.000000 seconds
root@android:/ # hwclock -w
hwclock: RTC_SET_TIME: Invalid argument
There is only one rtc device under /dev, which is /dev/rtc0.
This problem really bothers me. Not only I will need to keep device on to get alarms firing, but also the operations done in CWM will have wrong timestamps.
I would like to know if anyone else having an Xperia M/M Dual have the same problem. Check by doing what I did, or set an alarm, power off and see if the alarm fires.
Current device: Xperia M
(C1905) - MultiROM Xperia M
Past devices: Xperia Neo V, iPAQ 212