We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

[Problem] SFOS 2.0.1.7 - After removing the battery for doing a reset the clock shows the wrong time [answered]

asked 2016-04-13 16:17:32 +0300

megalith gravatar image

updated 2016-04-20 13:21:56 +0300

Problem Statement: After removing the battery for doing a reset the clock shows the wrong time.

Confirm the solution and the explanation below.

Thank you very much.

Megalith

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by raketti
close date 2016-04-14 09:13:06.942916

Comments

1

Isn't this the expected behaviour? I remember most phones lost date/time/region settings after a while when the battery was taken out. Sometime I had to go throught he whole setup-process on other phones after pulling the battery.

ossi1967 ( 2016-04-13 17:30:58 +0300 )edit

I think this question is connected to this one, which is why I think they should better be joined. And right, removing electricity from the timer unit resets time and date like with all computers.

lakutalo ( 2016-04-13 18:01:43 +0300 )edit

1 Answer

Sort by » oldest newest most voted
5

answered 2016-04-13 21:01:58 +0300

spiiroin gravatar image

When the device boots up, system time is taken from max(rtc_time, release_time, last_shutdown_time).

When device is shut down, system time is stored to rtc and last_shutdown_time (=file).

If battery is yanked out without doing a orderly shutdown -> shutdown time is not recorded, and rtc remains as set in the previous shutdown + some drifting - which may or may not be close to correct time.

If the battery is kept detached long enough (few minutes), rtc time will be reset -> on bootup system time gets set back to release time stamp / last recorded shutdown time.

If the wrong time does not get corrected soon after bootup is finished, it is different problem domain.

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2016-04-13 16:17:32 +0300

Seen: 454 times

Last updated: Apr 20 '16