Go Back   maemo.org - Talk > Software > Applications
 
Register FAQ Community Calendar Today's Posts Search

Notices

Reply
 
Thread Tools
  #1  
Old 2010-07-01, 22:05
enceladus47 enceladus47 is offline
 
Join Date: Apr 2010
Posts: 21
Thanks!: 27
Thanked 9 Times in 8 Posts
Default Slow Clock Application (hundreds of alarms)

This problem is probably because I misuse the alarms, I don't have an organized schedule so I set an alarm at a different time every time I go to sleep with 'New alarm' (sometimes even multiple alarms at a time), and don't used the previously used alarms, the now the list contains hundreds of alarms, and the Clock application takes about 10 seconds or more to start, and is slow to operate, and I think that's the reason.
Has anyone faced a similar problem?

And anyway is there a way that I let it stop saving each alarm, or a way to clear the whole list every now and then (automatically or manually) without going through each alarm?
I know it sound kinda stupid, but I'm checking anyway
Reply With Quote
The Following User Says Thank You to enceladus47 For This Useful Post:
  #2  
Old 2010-07-01, 22:14
woody14619's Avatar
woody14619 woody14619 is offline
 
Join Date: Dec 2009
Location: Rochester, NY
Posts: 1,455
Thanks!: 1,516
Thanked 3,309 Times in 923 Posts
Send a message via Yahoo to woody14619
Default Re: Slow Clock Application (hundreds of alarms)

Uhm.. If you select an alarm, one of the options is to delete it. And/or re-program it to another (future) time...
Reply With Quote
  #3  
Old 2010-07-01, 22:30
enceladus47 enceladus47 is offline
 
Join Date: Apr 2010
Posts: 21
Thanks!: 27
Thanked 9 Times in 8 Posts
Default Re: Slow Clock Application (hundreds of alarms)

Ya I guess re-programming the last alarm will prevent the list from expanding, but is there a way to delete previous alarms without deleting each at a time?
Reply With Quote
  #4  
Old 2010-07-01, 23:40
rebelnoob rebelnoob is offline
 
Join Date: Jun 2010
Posts: 128
Thanks!: 17
Thanked 27 Times in 19 Posts
Default Re: Slow Clock Application (hundreds of alarms)

every time you set a new alarm edit the previous one and delete one alarm!! it'll get fine
DOC here..
Reply With Quote
  #5  
Old 2010-07-02, 02:21
CepiPerez's Avatar
CepiPerez CepiPerez is offline
 
Join Date: Feb 2010
Location: Argentina
Posts: 1,023
Thanks!: 698
Thanked 4,421 Times in 641 Posts
Default Re: Slow Clock Application (hundreds of alarms)

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
Reply With Quote
The Following 4 Users Say Thank You to CepiPerez For This Useful Post:
  #6  
Old 2010-07-02, 10:06
enceladus47 enceladus47 is offline
 
Join Date: Apr 2010
Posts: 21
Thanks!: 27
Thanked 9 Times in 8 Posts
Default Re: Slow Clock Application (hundreds of alarms)

Thanks CepiPerez, that did the trick, and the clock opens much faster now
Reply With Quote
  #7  
Old 2010-07-19, 19:22
LQW77 LQW77 is offline
 
Join Date: Jul 2010
Posts: 10
Thanks!: 0
Thanked 3 Times in 3 Posts
Default Re: Slow Clock Application (hundreds of alarms)

Thanks. The same solution could solve a System Event Scheduler problem:

http://talk.maemo.org/showthread.php?t=49008
Reply With Quote
The Following User Says Thank You to LQW77 For This Useful Post:
  #8  
Old 2010-07-23, 06:52
vinc17 vinc17 is offline
 
Join Date: Feb 2008
Location: Lyon, France
Posts: 227
Thanks!: 66
Thanked 53 Times in 35 Posts
Default Re: Slow Clock Application (hundreds of alarms)

Same problem: I have 241 alarms (according to "/var/cache/alarmd/alarm_queue.ini") and Clock takes about 8 seconds to start (BTW, this is bug 10707). I initially thought that the long list was just the history, in part because it is unsorted and there are many duplicates. I hadn't found until now a faster way to delete them than doing that one by one with the Clock UI.

Quote:
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
Thanks, I've now removed the alarms and Clock now starts almost immediately. I hope there will be a better way (I mean, without restarting the phone) in the future.
Reply With Quote
The Following User Says Thank You to vinc17 For This Useful Post:
  #9  
Old 2010-11-22, 11:51
gagravarr gagravarr is offline
 
Join Date: Jan 2010
Posts: 24
Thanks!: 0
Thanked 11 Times in 6 Posts
Default Re: Slow Clock Application (hundreds of alarms)

Quote:
Originally Posted by vinc17 View Post
I hope there will be a better way (I mean, without restarting the phone) in the future.
I've just done the following, and it seemed to work:
  • (fire up an xterm, and gain root)
  • /etc/init.d/alarmd stop
  • vim /var/cache/alarmd/alarm_queue.ini
  • (delete all but the first few ini entries)
  • /etc/init.d/alarmd start
  • (launch clock)

This let me zap all but my most recent few alarms, without needing to reboot, and whilst still delivering a much quicker clock startup.
Reply With Quote
The Following 3 Users Say Thank You to gagravarr For This Useful Post:
  #10  
Old 2011-04-11, 23:38
Aonsaithya Aonsaithya is offline
 
Join Date: Aug 2010
Location: Finland
Posts: 147
Thanks!: 161
Thanked 150 Times in 51 Posts
Default Re: Slow Clock Application (hundreds of alarms)

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.

Quote:
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:02.