View Single Post
Posts: 147 | Thanked: 150 times | Joined on Aug 2010 @ Finland
#10
Pardon the necromancer-like reply, but as this thread contains vital information, I saw no real reason to create a new one for the same topic.

Originally Posted by CepiPerez View Post
remove /var/cache/alarmd/alarm_queue.ini and /var/cache/alarmd/alarm_queue.ini.back files and restart the phone
this will remove all alarms, but including calendar ones
I was looking through the alarm_queue.ini, initially afraid of removing all my calendar alarms.

The alarms listed in this file have an alarm_appid, which in my file is either worldclock_alarmd_id, Calendar or modest.

I began searching from the top of the file with "calendar" and "modest", and found that I have no such occurences within the first 3397 rows, so I deleted most of them, save for some of the highest up occurences. Some worldclock_alarm_id occurences were seemingly left at the end of the file as well, but I decided to let them live.
After that I performed these two commands gagravarr instructed:
  • /etc/init.d/alarmd stop
  • /etc/init.d/alarmd start

Now I have merely 6 alarms on the list, and the clock app starts in under 2 secs \o/

Would it be possible to create a script of some sort, that cleans this file of most (fixed number, all, dunno?) alarm occurences with alarm_appid: worldclock_alarmd_id?

EDIT:
It seems that the only consistent difference (excluding cookie and trigger as these are unique for each occurence) between listed active and inactive clock alarms are these flags:
Active alarms have flags: 136240
Inactive alarms have flags: 793648

Thus, as an occurence begins with [ and ends right before the next [, is it possible to code a thingy that goes through alarm_queue.ini and removes occurences which include alarm_appid: worldclock_alarmd_id and flags: 793648?
I don't have the knowledge to do so...

Last edited by Aonsaithya; 2011-04-12 at 10:55.