[Q] Anyone using Llama on CM 10.1 with any success? - Nexus 4 Q&A, Help & Troubleshooting

I've been using llama for quite a while with a lot of success on the stock rooted rom. I use multiple locations to control sound profiles, custom actions, etc.
The most important action I use is that once I'm in my "home" area, Wifi is turned on and once connected to Wifi, the phone goes into airplane mode with Wifi kept on and Sipdroid activated. Once I disconnect from Wifi, airplane mode is turned off and mobile service is restored.
This works flawlessly on rooted stock 4.2.1. However, on the CM 10.1 nightlies, llama constantly freezes and force closes and doesn't perform the scheduled tasks. Also, This morning there was some weird interaction with it and CM. My alarm was supposed to go off at 630 am. My internal clock was telling me it should have already gone off I looked at my phone and the CM chronus lock screen clock showed 6:42. I unlocked the phone and the UCCW clock on my home screen also showed 6:42. The system clock on the notification bar, however, showed the time to be something like 6:17. Obviously I was confused. Within seconds the system clock changed to 6:42 and the alarm went off. Curiously, llama was also not on the correct profile.
Anyone have any experience or ideas? I love using both llama and CM but there seems to be something causing problems. I haven't contacted the developer of llama but I don't expect any support for custom roms. I haven't tried it with anything other than stock and CM so far on the Nexus 4.

I've been using llama on the CM10.1 nightlys with no trouble. I had problems with llama profiles a couple weeks ago due to the way JB based roms handle notification and system sounds. I contacted the developer and he was able to send me a custom apk that solved the problems. Those changes have since been folded into a new release that he put on the play store. The developer is very responsive and had no issues with the fact that I was using a CM nightly build.
It sounds like there might be some things happening beyond just llama problems with your configuration, though. The system clock not being in sync with the other apps is very strange. Are you using a custom kernel with CM10.1? I'm using Franco kernel #28 and my phone is rock solid.
machostallion said:
I've been using llama for quite a while with a lot of success on the stock rooted rom. I use multiple locations to control sound profiles, custom actions, etc.
The most important action I use is that once I'm in my "home" area, Wifi is turned on and once connected to Wifi, the phone goes into airplane mode with Wifi kept on and Sipdroid activated. Once I disconnect from Wifi, airplane mode is turned off and mobile service is restored.
This works flawlessly on rooted stock 4.2.1. However, on the CM 10.1 nightlies, llama constantly freezes and force closes and doesn't perform the scheduled tasks. Also, This morning there was some weird interaction with it and CM. My alarm was supposed to go off at 630 am. My internal clock was telling me it should have already gone off I looked at my phone and the CM chronus lock screen clock showed 6:42. I unlocked the phone and the UCCW clock on my home screen also showed 6:42. The system clock on the notification bar, however, showed the time to be something like 6:17. Obviously I was confused. Within seconds the system clock changed to 6:42 and the alarm went off. Curiously, llama was also not on the correct profile.
Anyone have any experience or ideas? I love using both llama and CM but there seems to be something causing problems. I haven't contacted the developer of llama but I don't expect any support for custom roms. I haven't tried it with anything other than stock and CM so far on the Nexus 4.
Click to expand...
Click to collapse

Mendanbar said:
I've been using llama on the CM10.1 nightlys with no trouble. I had problems with llama profiles a couple weeks ago due to the way JB based roms handle notification and system sounds. I contacted the developer and he was able to send me a custom apk that solved the problems. Those changes have since been folded into a new release that he put on the play store. The developer is very responsive and had no issues with the fact that I was using a CM nightly build.
It sounds like there might be some things happening beyond just llama problems with your configuration, though. The system clock not being in sync with the other apps is very strange. Are you using a custom kernel with CM10.1? I'm using Franco kernel #28 and my phone is rock solid.
Click to expand...
Click to collapse
I had the same problems you described back in December when I was running the beta off of the devs site. All seemed fixed when it got released to the play store.
Currently I'm running the CM stock kernel. I haven't made any mods, no theming, etc. It was a clean install with full wipes of everything twice. I flashed it with TWRP 2.3.3.
It is odd that the system clock could be behind the widget clocks. I've seen it the other way around where the widget would be behind the system if waking the phone after being in deep sleep a while. It's more strange that I can't open llama at all when I'm on mobile data now. It will only open when on Wifi. I do have quite a few Wifi dependent actions but since they work fine on the stock rom they should in theory work on CM. Maybe I'll keep testing and try to get a logcat to show something for the dev

I'm using llama for the same purpose as you.
Events:
1. At Home - enable WiFi
2. When your phone connects to %AP% - enable Airplane Mode and enable WiFi // haven't looked into if it's possible to override wifi shutting off upon entering airplane mode in jb4.2 yet
3. When your phone disconnects from %AP% - disable Airplane Mode
4. Upon leaving Home - disable WiFi
I'm using the version available from the market as of yesterday and also see it constantly freezing up while trying to set it up. It's never force quit on me though and comes out of its stall after half a minute or so each time. I haven't tested it extensively yet, but after getting it setup, it seems to be working okay so far. I used to use a battery of other apps to achieve the same thing, but unfortunately the easily accessible airplane mode toggle api is removed from jb4.2 so those apps don't work anymore. I found that llama has a workaround that requires root, so it'll have to do for now.
I too am using sipdroid.
You aren't using llama for anything to do with alarms right? Then it's weird that causes your clock issues. You can try to see if ClockSync, https://play.google.com/store/apps/details?id=ru.org.amip.ClockSync, works on jb4.2. I had to use it on my HTC Sensation because the clock would drift hard when not connected to a cell tower for some reason. I think it might have been related to a specific kernel I was using, but a few times I saw it lose almost an hour in a 24 hour period.
Update: Twice yesterday, I got missed texts and calls (saw them via google voice site on computer). I checked my phone and saw that it was in airplane mode with wifi off. This doesn't even make sense, since wifi is set to only turn off "upon leaving home"

ziddey said:
I'm using llama for the same purpose as you.
Events:
1. At Home - enable WiFi
2. When your phone connects to %AP% - enable Airplane Mode and enable WiFi // haven't looked into if it's possible to override wifi shutting off upon entering airplane mode in jb4.2 yet
3. When your phone disconnects from %AP% - disable Airplane Mode
4. Upon leaving Home - disable WiFi
I'm using the version available from the market as of yesterday and also see it constantly freezing up while trying to set it up. It's never force quit on me though and comes out of its stall after half a minute or so each time. I haven't tested it extensively yet, but after getting it setup, it seems to be working okay so far. I used to use a battery of other apps to achieve the same thing, but unfortunately the easily accessible airplane mode toggle api is removed from jb4.2 so those apps don't work anymore. I found that llama has a workaround that requires root, so it'll have to do for now.
I too am using sipdroid.
You aren't using llama for anything to do with alarms right? Then it's weird that causes your clock issues. You can try to see if ClockSync, https://play.google.com/store/apps/details?id=ru.org.amip.ClockSync, works on jb4.2. I had to use it on my HTC Sensation because the clock would drift hard when not connected to a cell tower for some reason. I think it might have been related to a specific kernel I was using, but a few times I saw it lose almost an hour in a 24 hour period.
Click to expand...
Click to collapse
I have been unable to duplicate the system clock glitch. I don't use llama for any alarms but I do have quite a few time based events to control volume levels and screen brightness. . After further testing, llama seems to do most of the set actions about 80% of the time. Sometimes it will be one of the actions in a string doesn't stick and sometimes it will miss a time based event. For some reason it has consistently missed the event at 11pm when it's supposed to put the phone into silent mode and lower the screen brightness. That time event is based on being in my "home" area, however, usually at that time my other events have been triggered which puts the phone in airplane mode with Wifi. Keeping Wifi on after triggering airplane mode also doesn't happen quite often. I know JB changed the permissions for apps accessing and modifying airplane mode but since I'm rooted and llama was changed to support it, it should work. I think there may be needs to be an option to add additional delays between multiple actions that are triggered by the same event.

Llama still doesn't work with CM. I contacted the dev and he said that the ROM requires additional permission to perform the actions like disabling/enabling wifi and bluetooth...
Boo I love llama.

lilfleck said:
Llama still doesn't work with CM. I contacted the dev and he said that the ROM requires additional permission to perform the actions like disabling/enabling wifi and bluetooth...
Boo I love llama.
Click to expand...
Click to collapse
https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid :good::good:

Related

Everyone with Battery problem post info here fix soon

Ok, although I do not have a solution it seems that their are a small percentage of people on here that have the same problem as me.
This is what I know:
The EVO has a bigger display, a faster proccessor, 4G, and alot of advanced features this means battery is not going to be the greatest.
However, I am now rooted running CM6 RC2, and although I love this ROM I have been having terrible battery. Also, I was using Fresh's and stock unrooted ROM and had bad battery also, AFTER I PUT IN ALL MY SETTINGS.
When I would hard reset my phone, it would sleep like normal, and the battery would run great, however, I think their is a setting that I use with my phone that is keeping it awake.
Now I am going to give all the settings that I use on my phone without installing any apps from the market. Because I know some apps keep your phone awake but I did a factory reset, put in my settings without installing any apps and my phone stayed awake.
***I have already tried the HTC and Sprint method of "conditioning your battery" I know their are 2 methods I have done both. I have setCPU, juice defender, spare parts, all that stuff that supposedly saves battery, but so far none have helped. Also my phone is set to auto CDMA, i tried that*****
Here is what I think. I am changing some setting in the phone that is keeping it awake and I can't seem to find what it is, I had this same problem with google sync setting and thankfully someone helped me fix it and it solved the problem however, after that I am still having the issue.
Keep in mind I HAVE NOT INSTALLED ANYTHING FROM THE MARKET YET, I have only entered my settings in apps that came with the phone because I believe that is the culprit.
My settings
*#*#4636*#*#
Battery history, since last unplugged
running: 14.6%
Screen on: 10.4%
Phone on: 3.5%
Wireless and network
Airplane mode, wifi, bluetooth, tethering and portable hot spot VPN are all off
Under Mobile network
The options are: data enabled: Checked
data roaming: unchecked
System select (change the cdma roaming guide) options are either home only, affiliated networks, or automatic. I have automatic set.
Voicemail service my carrier
Nothing in the CM6 settings have been changed
Auto brightness, screen timeout 30 sec
Location: wireless network:checked
Use GPS sattelite: unchecked
Accounts and Sync:
Background data: enabled (checked)
auto sync: Enabled (checked)
Facebook-sync if off, I have not synced contacts with Facebook, and the problem I had last time was with google sync, I had google sync turned off and that kept my phone on. Now I have facebook sync turned off, COULD THAT BE THE PROBLEM?
Privacy: Back up my data-checked
automatic restore-checked
Mail settings, never update, I manually update.
News and weather is same thing, could google be trying to update even though its set not too and keep my phone awake?
Under facebook settings: refresh interval is set to never
Notifications are inactive.
About phone
Cell standby:37%
Phone idle:28%
Android system:20%
Voice calls:11%
Display:7%
If anything looks not right, or you think something as little as it may be may be causing the problem, even if it doesn't make sense please suggest it, I have tried everything, thanks.
Not to burst your bubble, but it's been pretty much proven that CM6 has unsatisfactory battery life.
Try Burnt Droid v1 + netarchy-toastmod kernel for optimum battery life.
I know,
but after reading through the thread it seems that about half of them half pretty good battery life, however I had poor battery with other roms, because something was keeping my phone awake.
I'm having a similar problem. On any ROM that's based of HTC's 2.2, my phone will run fine for about a day and then it will begin to stop sleeping. Once that happens the only way to get it to stop is to do a factory reset. What's funny is that using the exact same settings with CM6-RC2 I don't get the 100% awake issue. I've tried everything and can't figure it out.
I've tried turning off all automatic syncing, turning off network time and network location...didn't work. I deleted my Exchange account since I had heard that some people were having Exchange problems...didn't help. This last time around I didn't install anything from the market, it was just the stock apps. I did connect the phone to Sync in my truck and used it quite a bit before the problem cropped up.
I've got a sneaking suspicion that it's some kind background process that tries to run after a specified amount of time, but there's some kind of problem with the Sense-based ROMs that I've tried that won't allow it to run properly. So we need to figure out what the process is and either stop it from running in the first place, or figure out a way to take it out of the ROM so it isn't there to begin with.
I'm going to wipe everything and try installing Fresh 3.1.0.2 again. I'm going to try to remember to reboot my phone every night when I plug it in to charge and see if that helps. While it isn't ideal, it's way easier than having to do a factory reset every other day. I'll post back and let everyone know what happens.

[Q] App or mod for wifi sleep when screen is off

Can you recommend an app or a mod which control wifi connection when the screen is off? I notice that if I enable wifi, I got 20% battery drop per a day, but I got 2% drop if I disabled wifi. Still, I like to have wifi on when I am using it, and clicking several time to enable wifi is quite irritating (relatively). So I thought there might be a good resolution to handle this my lazy problem.
I searched it on android market, and can find several. Can you recommend any one which will work well with NookTouch? I appreciate your inputs.
Same problem pal. But I also can't fix wifi not reconnecting when nook is up from sleep state issue. Suggestions?
I use the power widget that comes with ADW. I can turn WiFi on and off from my home screen with one tap.
Is it possible for it to be done automatically? Like on my smartphone? When wifi is turned on and my nook goes to sleep mode then when it wakes up wifi is off, in "disconnected" state.
I use the program Llama. It lets you set up all sorts of conditional changes for phones (similar to Tasker).
On my nook, I have one event trigger. When wifi turns on, Llama delays for 5 minutes, then turns wifi off.
It isn't exactly the same as turning off wifi when the screen turns off, but it helps me save battery. I currently have it send a notification to let me know it is turning off wifi, so I have the option to keep wifi on if I so choose.
Edit: Llama does have an event trigger for Screen Off, but I couldn't get it to work. Maybe the Nook doesn't turn off the screen in the way standard android phones do, so the trigger doesn't run.
Edit 2: I just realized you wanted one that turns wifi off when turning the screen of, then reconnects when turning the screen on. If Llama correctly detects the screen off/on triggers, you could set up two events, one to turn wifi off and one to turn it back on. I haven't gotten it to work, so maybe Llama isn't going to work for your particular needs.
sayno2quat said:
Edit 2: I just realized you wanted one that turns wifi off when turning the screen of, then reconnects when turning the screen on. If Llama correctly detects the screen off/on triggers, you could set up two events, one to turn wifi off and one to turn it back on. I haven't gotten it to work, so maybe Llama isn't going to work for your particular needs.
Click to expand...
Click to collapse
The NST is so heavily customized by B&N that you cannot rely on the "usual" events being triggered.
They only did what was necessary to save enough power and get the device to work and I don't blame them for that.
I'm pretty sure there's an event triggered that can be used for this particular task tho, if I get some spare time I might dig into it.
Well, I'm the impression, that my nook does that. I mean, when in sleeping mode - the WIFI is OFF. But when I awake the NOOK, wifi turns ON by it self and connect to internet. What I suspect, you might have the problem that other users experienced (including me) ... that you will have to change one file. Read more about it here.
I hope, this will help you.
Thx for all help !
Sent from my GT-I9100 using XDA App
In TorimuNooter I fixed the battery drain, pop on over to the TorimuNooter thread. The latest version (Ver 0.3) was just uploaded today!
Sent from my NOOK using XDA App

Continued Wifi Weirdness

Seems many having various wifi issues and also seems not a lot of fixes. So here goes.
Running EOS JB, and Morfic kernal. I want the wifi to shut down when ever I close my case / or when the screen goes blank (i.e. sleep). I'm sure there a various levels of sleep, but read on:
Setting in advanced to shut wifi down when sleeping, it does. BUT, it wakes up every few minutes. This has to kill the battery. I've turned off every updating I can find but that does not help. When it is asleep, it should stay asleep!
I installed Llama - I use this on my Maxx with perfection. I set the advanced settings wifi to stay on always - then set up Llama to turn it off when screen goes blank, and then back on again when screen comes on. Works perfectly! No through the night updates. BUT - when I'm USING the device, I'll lose wifi completely for no apparent reason!!! I look at Llama event log, no entries there. It is just shutting off. I have to cycle the toggle off then on again for it to restart.
So I removed Llama - it's back to "working" but still updating constantly.
Any one have any ideas on how to control this beast?
Can llama put your tab in airplane mode instead of switching WiFi off? Might be worth a try if so. I use tasker to do a very similar thing...puts tab in airplane mode 2 mins after screen off and cancels it on screen unlock.
Sent from my Nexus 7 using Tapatalk 2
froggy666uk said:
Can llama put your tab in airplane mode instead of switching WiFi off? Might be worth a try if so. I use tasker to do a very similar thing...puts tab in airplane mode 2 mins after screen off and cancels it on screen unlock.
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
that is another option I hadn't thought of. I've gone into advanced settings and told the wifi to stay on ALWAYS - and I'm using Llama/screen to see if works. So far so good. The problem I'm trying to solve now it seems, is keeping it on when awake. I like the airplane option an an alternative. I'll update as I go along here.
Thank you!

CM10 Battery Drain and Feature Request

Hi there,
I installed CM10 (thanks a lot for it by the way) this morning and it seems my display sometimes just activates without reason. At first I only noticed the device being extremely warm, so I check battery usage and 92% of it have been "display". The device went from 95% to about 50% in a matter of a two or three hours with me not using the tablet at all in that time. When I checked again a little later, the display was active, although I am sure I had sent the device to sleep mode.
Also, here are two features I would like to request:
1. Please add a way to rotate the lockscreen
2. Please add Mobile Data as a switch for the quick settings (the one you get to by "clicking" the clock). It is rather annoying to go through the menu to activate / deactivate it...
The.Vortex said:
1. Please add a way to rotate the lockscreen
Click to expand...
Click to collapse
OK, found the fix for that problem... the other one still stands
And I have got an additional issue now:
my Mobile Data Connection doesn't work. My carrier is o2 Germany and the stock ROM had some issues with that carrier as well a while back. Maybe it is the same problem?
For now I am switching back to stock, without mobile data, the tablet is only half as usefull, even with the otherwise better ROM
Add your APN Setting manually and it works nice. They are in the 3G Settings. I even had to just add a almost empty one to make things wake up again.
The.Vortex said:
Hi there,
I installed CM10 (thanks a lot for it by the way) this morning and it seems my display sometimes just activates without reason. At first I only noticed the device being extremely warm, so I check battery usage and 92% of it have been "display". The device went from 95% to about 50% in a matter of a two or three hours with me not using the tablet at all in that time. When I checked again a little later, the display was active, although I am sure I had sent the device to sleep mode.
Also, here are two features I would like to request:
1. Please add a way to rotate the lockscreen
2. Please add Mobile Data as a switch for the quick settings (the one you get to by "clicking" the clock). It is rather annoying to go through the menu to activate / deactivate it...
Click to expand...
Click to collapse
I have actually experienced the opposite--battery has been outstanding since flashing the ROM. I usually turn on Airplane mode when I am not using the phone, and am certain to turn off WiFi as well. Try that and see if it makes a difference. Also, be sure you are charging with an appropriate charger!
emuandco said:
Add your APN Setting manually and it works nice. They are in the 3G Settings. I even had to just add a almost empty one to make things wake up again.
Click to expand...
Click to collapse
Thanks, that solved the 3G issue and, as far as I can tell after one day, the issue with the screen activating, as well.
For the other point, being able to activate / deactivate the mobile data easily, I found Power Toggle (can't post link, just look for it in the play market or remove the blanks: ht tps://play.google. com/store/apps/details?id=com.painless.pc) which can add a widget to the notification area that works great
You can add more switches to the menu popping up when clicking on the clock. Thats what I did. Its in System -> Notification Bar (Or something like that, I use it in German ^^)

Random apps will think I have no network connection, when I obviously do... help!

Hey guys,
This problem has been going on for a week or two now. Phone worked great when I first got it, but something must have changed (newest Verizon update, perhaps?)
Let me preface this by saying I've seen this happen both on Wi-fi and 4G. When on Wi-fi, and it happens, I've tried turning Wi-fi off and still get the same errors.
The apps affected seem to be random. A couple days ago it was Google Maps, I was getting the "offline navigation" prompt. Today it was Chase (couldn't screenshot it), TeamViewer, IMDb and so on.
Here are some screenshots. Note the time in the pictures.
- First encountered the problem when opening TeamViewer.
- Did a Speedtest to confirm that yes, I'm really on 4G as the phone shows, and it's quite a stable and fast connection too.
- Let's try some more apps. Here's Target's Cartwheel
- Delta app? Same problem.
- TeamViewer Host app. Same problem as the client.
- IMDb. One more random one not working.
- Lastly, I went back to Pokémon Go to confirm I DO still have network connectivity (not sure why the screenshot got ghosted like that, but you can see I just redeemed items from a Pokéstop I was near with no errors)
So as you can see, the phone itself, as well as certain apps, work fine. But others don't. I tried turning airplane mode on and back off, disabling/enabling mobile networks, nothing works. The only thing I can do is reboot the phone.
Any ideas? This gets incredibly annoying as I can't seem to go a whole day without *some* app whining that it has no network access. Some apps work flawlessly every time (like the aforementioned Pokémon Go) but others don't.
By the way, that little screenshot button in the bottom left is from this neat app called Custom Navigation Bar. I'm pretty sure that has nothing to do with this problem, though, all it does is add buttons.
drfsupercenter said:
Hey guys,
This problem has been going on for a week or two now. Phone worked great when I first got it, but something must have changed (newest Verizon update, perhaps?)
Let me preface this by saying I've seen this happen both on Wi-fi and 4G. When on Wi-fi, and it happens, I've tried turning Wi-fi off and still get the same errors.
The apps affected seem to be random. A couple days ago it was Google Maps, I was getting the "offline navigation" prompt. Today it was Chase (couldn't screenshot it), TeamViewer, IMDb and so on.
Here are some screenshots. Note the time in the pictures.
- First encountered the problem when opening TeamViewer.
- Did a Speedtest to confirm that yes, I'm really on 4G as the phone shows, and it's quite a stable and fast connection too.
- Let's try some more apps. Here's Target's Cartwheel
- Delta app? Same problem.
- TeamViewer Host app. Same problem as the client.
- IMDb. One more random one not working.
- Lastly, I went back to Pokémon Go to confirm I DO still have network connectivity (not sure why the screenshot got ghosted like that, but you can see I just redeemed items from a Pokéstop I was near with no errors)
So as you can see, the phone itself, as well as certain apps, work fine. But others don't. I tried turning airplane mode on and back off, disabling/enabling mobile networks, nothing works. The only thing I can do is reboot the phone.
Any ideas? This gets incredibly annoying as I can't seem to go a whole day without *some* app whining that it has no network access. Some apps work flawlessly every time (like the aforementioned Pokémon Go) but others don't.
By the way, that little screenshot button in the bottom left is from this neat app called Custom Navigation Bar. I'm pretty sure that has nothing to do with this problem, though, all it does is add buttons.
Click to expand...
Click to collapse
Do you have powersave mode on? I've had some problems with it enabled..
No I don't have power save mode on. Should I turn off the power monitoring of apps as well? Didn't think that mattered as long as power save mode was off.
drfsupercenter said:
No I don't have power save mode on. Should I turn off the power monitoring of apps as well? Didn't think that mattered as long as power save mode was off.
Click to expand...
Click to collapse
You could try. I dont know, what i Said about powersave profile in battery settings Was My bet.
Skickat från min SM-G950F via Tapatalk
I turned all the power saving stuff off and still have this happening. As in, I set it to not even monitor how much power each app is using.

Categories

Resources