Keep accelerometer alive

Post your questions and help other users.

Moderator: Martin

Post Reply
goocreations
Posts: 4
Joined: 11 Jun 2014 19:15

Keep accelerometer alive

Post by goocreations » 12 Jun 2014 14:09

I have implemented a motion alarm with Automagic using the Shake trigger (if the phone is moved too much, an alarm goes off). Everything works even if the screen is locked. However, if the screen is off, the trigger is never called. As in the documentation indicated, certain phones might switch off the accelerometer if the screen is off. Is there any way I can keep the accelerometer alive? Maybe call something with "Start Activity" or a command via "Execute (Root) Command"?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Keep accelerometer alive

Post by Martin » 12 Jun 2014 15:14

Hi,

Trigger Shake already tries to keep the device CPU awake so there's not much more that Automagic can do except to keep the screen on which will drain the battery quite fast.
You could keep the screen on with action Set Screen Timeout or periodically turn the screen on with action Turn Screen On. Brightness option Dim could save some battery, unfortunately some devices ignore this setting.

Regards,
Martin

goocreations
Posts: 4
Joined: 11 Jun 2014 19:15

Re: Keep accelerometer alive

Post by goocreations » 12 Jun 2014 16:01

Thanks. I've done a bit of reading and it seems this is a general problem with Android, specifically with my phone. There is no other app I've tried that can do this on my phone, so I'll look into a different approach. Thanks anyways.

Post Reply