Re: Phone wakes up after being powered off
On Wed, 2012-05-23 at 14:57 +0200, e...@kapitein.org wrote: > Hi Alon, > > > > check if you can use: > > /usr/sbin/rtcwake --verbose --seconds 1 --mode disable > > > > Or if disable is not available in your version of rtcwake: > > > > /usr/sbin/rtcwake --verbose --seconds 1 --mode no > > Using UTC time. > > delta = 1 > > tzone = 0 > > tzname = UTC > > systime = 1337703739, (UTC) Tue May 22 16:22:19 2012 > > rtctime = 1337703738, (UTC) Tue May 22 16:22:18 2012 > > alarm 0, sys_time 1337703739, rtc_time 1337703738, seconds 1 > > rtcwake: wakeup from "no" using /dev/rtc0 at Tue May 22 16:22:20 2012 > > > > And you can check the RTC with: > > cat /proc/driver/rtc > > > > rtc_time: 16:25:13 > > rtc_date: 2012-05-22 > > alrm_time : 16:22:20 > > alrm_date : 2012-05-22 > > alarm_IRQ : yes > > alrm_pending: yes > > 24hr: yes > > > > And see if it has any effect. > > > > Kind regards, > > Ed > > > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community Unfortunately, modes no and disable aren't recognized. After the device woke itself up again two days ago, I just took out the battery last night and synchronized time using ntpdate-debian without setting hardware clock. The cat command shows the date is 01.01.2000 and "alrm time" and "alrm date" at 23:59:59 and 01.01.2000 respectively. Also, alarm IRQ is yes and "alrm pending" is no. How can no alarm be pending while there is an alarm time? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Phone wakes up after being powered off
On Wed, 2012-05-23 at 15:12 +0200, Łukasz Pankowski wrote: > Are you using original atd or atd-over-fso? atd-over-fso has the > following bug (which I have not fixed and it may be related): if you set > an alarm at time t0 and t0 happens to be the next alarm and then you > remove alarm t0 and a later alarm will become the next alarm > atd-over-fso will nevertheless wake up the phone at time t0. Not sure. Using whatever is shipped with QtMoko v26. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Phone wakes up after being powered off
e...@kapitein.org writes: > > > Hello Ed, > > Thanks for your replies. > > Unfortunately the man command doesn't work with rtcwake on the phone > (but does with other software, e.g. 7zr). A specific command to try > would be very helpful. On the desktop running as root "rtcwake -m show" > shows the alarms that are on (but this command does not work on the > phone, specifically on QtMoko v26). > > I noticed the issue regarding the phone turning itself on was reported > in Android on Freerunner's bug tracker here: > http://code.google.com/p/android-on-freerunner/issues/detail?id=24 > > trevi55 suggested to switch off alarms and update hardware clock. I'll > try this (using "echo -e "W\n" > /var/spool/at/trigger"). Are you using original atd or atd-over-fso? atd-over-fso has the following bug (which I have not fixed and it may be related): if you set an alarm at time t0 and t0 happens to be the next alarm and then you remove alarm t0 and a later alarm will become the next alarm atd-over-fso will nevertheless wake up the phone at time t0. > > Alon. > > -- > > > > Hi Alon, > > > > check if you can use: > > /usr/sbin/rtcwake --verbose --seconds 1 --mode disable > > > > Or if disable is not available in your version of rtcwake: > > > > /usr/sbin/rtcwake --verbose --seconds 1 --mode no > > Using UTC time. > > delta = 1 > > tzone = 0 > > tzname = UTC > > systime = 1337703739, (UTC) Tue May 22 16:22:19 2012 > > rtctime = 1337703738, (UTC) Tue May 22 16:22:18 2012 > > alarm 0, sys_time 1337703739, rtc_time 1337703738, seconds 1 > > rtcwake: wakeup from "no" using /dev/rtc0 at Tue May 22 16:22:20 2012 > > > > And you can check the RTC with: > > cat /proc/driver/rtc > > > > rtc_time: 16:25:13 > > rtc_date: 2012-05-22 > > alrm_time : 16:22:20 > > alrm_date : 2012-05-22 > > alarm_IRQ : yes > > alrm_pending: yes > > 24hr: yes > > > > And see if it has any effect. > > > > Kind regards, > > Ed > > > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Phone wakes up after being powered off
Hello Ed, Thanks for your replies. Unfortunately the man command doesn't work with rtcwake on the phone (but does with other software, e.g. 7zr). A specific command to try would be very helpful. On the desktop running as root "rtcwake -m show" shows the alarms that are on (but this command does not work on the phone, specifically on QtMoko v26). I noticed the issue regarding the phone turning itself on was reported in Android on Freerunner's bug tracker here: http://code.google.com/p/android-on-freerunner/issues/detail?id=24 trevi55 suggested to switch off alarms and update hardware clock. I'll try this (using "echo -e "W\n" > /var/spool/at/trigger"). Alon. -- Hi Alon, check if you can use: /usr/sbin/rtcwake --verbose --seconds 1 --mode disable Or if disable is not available in your version of rtcwake: /usr/sbin/rtcwake --verbose --seconds 1 --mode no Using UTC time. delta = 1 tzone = 0 tzname = UTC systime = 1337703739, (UTC) Tue May 22 16:22:19 2012 rtctime = 1337703738, (UTC) Tue May 22 16:22:18 2012 alarm 0, sys_time 1337703739, rtc_time 1337703738, seconds 1 rtcwake: wakeup from "no" using /dev/rtc0 at Tue May 22 16:22:20 2012 And you can check the RTC with: cat /proc/driver/rtc rtc_time: 16:25:13 rtc_date: 2012-05-22 alrm_time : 16:22:20 alrm_date : 2012-05-22 alarm_IRQ : yes alrm_pending: yes 24hr: yes And see if it has any effect. Kind regards, Ed ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Phone wakes up after being powered off
> Hi Alon, > > Funny, i never known that it was capable of waking from power down, i always > wake from suspend. > There is no need tot test the init 0 scenario, powering down from u-boot is a > real powerdown. > Anyhow, rtcwake has a mode disable, which should disable the RTC alarms. > See man rtcwake for more info > > Kind regards, > Ed Hello Ed, Thanks for your replies. Unfortunately the man command doesn't work with rtcwake on the phone (but does with other software, e.g. 7zr). A specific command to try would be very helpful. On the desktop running as root "rtcwake -m show" shows the alarms that are on (but this command does not work on the phone, specifically on QtMoko v26). I noticed the issue regarding the phone turning itself on was reported in Android on Freerunner's bug tracker here: http://code.google.com/p/android-on-freerunner/issues/detail?id=24 trevi55 suggested to switch off alarms and update hardware clock. I'll try this (using "echo -e "W\n" > /var/spool/at/trigger"). Alon. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Phone wakes up after being powered off
My phone has always suffered for this weird bug too. No matter which distro I use, if I turn it off, even by taking away the battery and after some minutes putting it back, after some minutes the haunted fr goes back to life. This is especially a botehr when you have an alarm set on qtmoko and didn't use it when the alarm should ring: it rings once the os is up and running; it's a bother when you turn off the pphone and go to sleep and then it wakes up and begin to ring for the old alarm Sorry, I didn't find any solution. You can check old msg on this ml, others (included me) have reported this issue. urodelo On Mon, 21 May 2012 11:20:03 +0200, alonivtsan wrote: On Mon, 2012-05-21 at 09:08 +0200, e...@kapitein.org wrote: Hi Alon, Are you sure the phone is completly shutdown e.g. did you issue "init 0" from a console or ssh session? I'm currious if the phone could wake from init 0. You can try to clear the RealTimeClock by using the rtcwake command, if that is available on your phone. Kind regards, Ed Hello Ed, The phone was definitely off. After switching it off I verified by booting into u-boot via power and AUX buttons and selecting power off. Are the wake up settings cleared by removing the battery (e.g. for 10 minutes)? I'll test switching off the phone via the "init 0" command from a terminal. rtcwake is available (in QtMoko v26) - is there a specific command I should use to prevent the phone from turning on when shut down? Thanks, Alon. -- 不要催我!你曾經問過梵谷畫很快嗎? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Phone wakes up after being powered off
On Mon, 2012-05-21 at 09:08 +0200, e...@kapitein.org wrote: > Hi Alon, > > Are you sure the phone is completly shutdown e.g. did you issue "init 0" from > a console or ssh session? > I'm currious if the phone could wake from init 0. > You can try to clear the RealTimeClock by using the rtcwake command, if that > is available on your phone. > > Kind regards, > Ed > Hello Ed, The phone was definitely off. After switching it off I verified by booting into u-boot via power and AUX buttons and selecting power off. Are the wake up settings cleared by removing the battery (e.g. for 10 minutes)? I'll test switching off the phone via the "init 0" command from a terminal. rtcwake is available (in QtMoko v26) - is there a specific command I should use to prevent the phone from turning on when shut down? Thanks, Alon. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Phone wakes up after being powered off
On Monday 21 May 2012 07:21:02 alonivtsan wrote: > Hello kind members of Openmoko mailing list, > > I'm suffering from a very bizarre wake up problem related to the Neo > Freerunner phone. > > The phone wakes itself up after being powered off a few hours later > (e.g. if I shut the phone off before going to bed when I wake up the > phone is already switched on). > > I thought at first this was a hardware problem related to the battery, > but this doesn't seem to be the case as it has happened on two different > phones after setting reminders in the QtMoko calendar (using v26). > > Unfortunately, even after removing the reminders the phone still wakes > itself up. I'm wondering if it is possible to clear all data causing the > phone to wake up. > > Thanks, > > Alon. Hi Alon, Are you sure the phone is completly shutdown e.g. did you issue "init 0" from a console or ssh session? I'm currious if the phone could wake from init 0. You can try to clear the RealTimeClock by using the rtcwake command, if that is available on your phone. Kind regards, Ed ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community