Keep accelerometer alive
Moderator: Martin
-
- Posts: 4
- Joined: 11 Jun 2014 19:15
Keep accelerometer alive
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"?
Re: Keep accelerometer alive
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
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
-
- Posts: 4
- Joined: 11 Jun 2014 19:15
Re: Keep accelerometer alive
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.