[Q} Tasker profile to enable hibernate when hitting the power button? - Greenify

Hi,
As the title says, I have tried to make a Tasker profile that activates the hibernation action from the awesome Greenify. Haven't been able to create something working. Granted, I suck at Tasker, I mainly play around with it for fun.
I am aware of the swipe up nav-bar hibernation option, but I would like to have it fully automated. Does anyone know of any Tasker profile that could achieve this effect?
Thank you in advance!

TiVON said:
Hi,
As the title says, I have tried to make a Tasker profile that activates the hibernation action from the awesome Greenify. Haven't been able to create something working. Granted, I suck at Tasker, I mainly play around with it for fun.
I am aware of the swipe up nav-bar hibernation option, but I would like to have it fully automated. Does anyone know of any Tasker profile that could achieve this effect?
Thank you in advance!
Click to expand...
Click to collapse
You don't need Tasker for this.
The simplest way to activate Hibernation and lock the screen, which is what will happen when you set it up as described by you, is to create a shortcut for this from Greenify itself and put on the home screen. By using this, you will also save your power button.
The swipe up nav bar action involves two steps but what I described above involves merely clicking the shortcut.

TiVON said:
Hi,
As the title says, I have tried to make a Tasker profile that activates the hibernation action from the awesome Greenify. Haven't been able to create something working. Granted, I suck at Tasker, I mainly play around with it for fun.
I am aware of the swipe up nav-bar hibernation option, but I would like to have it fully automated. Does anyone know of any Tasker profile that could achieve this effect?
Thank you in advance!
Click to expand...
Click to collapse
You can create a Tasker profile which will hibernate all greenified apps when the display is off :
New event -> Display -> Display Off (choose the priority you want)
And then create a new task :
Plugin -> Greenify -> Hibernate now, and Configuration I choose "All greenified apps"
And that's it, it works like a charm

Related

[Q] Tasker help - only run profile while app is full screen

I have started to figure out Tasker, but I can't figure out one thing, and maybe I'm just stupid (or maybe it's not possible). For example, when I am using Opera, I have it set so the screen will auto-rotate. But as far as I can tell, if I just leave to another app and don't force close Opera, Tasker still runs/uses the profile.
What way can I tell Tasker that I only want a certain setting when I'm actually actively using the app, but not if the app is running in the background?
Re: Tasker help
foxdev said:
I have started to figure out Tasker, but I can't figure out one thing, and maybe I'm just stupid (or maybe it's not possible). For example, when I am using Opera, I have it set so the screen will auto-rotate. But as far as I can tell, if I just leave to another app and don't force close Opera, Tasker still runs/uses the profile.
What way can I tell Tasker that I only want a certain setting when I'm actually actively using the app, but not if the app is running in the background?
Click to expand...
Click to collapse
In which way did you have that set? If you made a profile and chose Application/Opera as context, the profile is definititely only active when Opera is in the foreground. By default Tasker resets settings when the profile exits. You can check this by long pressing the profile and select properties, that Restore Settings is checked. You can also add an exit task that restores the settings.
bjorne900 said:
In which way did you have that set? If you made a profile and chose Application/Opera as context, the profile is definititely only active when Opera is in the foreground. By default Tasker resets settings when the profile exits. You can check this by long pressing the profile and select properties, that Restore Settings is checked. You can also add an exit task that restores the settings.
Click to expand...
Click to collapse
If the main profile is based on an app, the task runs upon opening the app. I need it to be based on the phone's orientation, but to only run this command when this app is in the screen. Basically it's an app that doesn't auto rotate. But has the option in the settings to rotate. So I made a touch input shell that taps all the buttons to change the orientation, and I want it to run when the device's orientation is changed. If it runs every time the phone moves, on random screens, since the touch input is for specific buttons on a particular app, being on another screen would cause random things to be clicked an opened. So I need to make an "if" for (appname) to be on the screen. Got pointers?

Greenify won't keep FB and messenger hibernated

I'll hibernate them, then after a few minutes of not doing anything they show up again as not hibernated
Did you use greenify with root? In root mode when you turn off screen it will be automatically hibernate. Otherwise you must add a widget call name hibernate and use it instead of power button for turn of screen
I've found this too. Apologies TheMuyu, I don't quite understand what you're getting at - so you don't use the stock 'Power Off' button but another app How could that affect what Greenify does? I don't really ever turn my phone off lol
zhukoz said:
I've found this too. Apologies TheMuyu, I don't quite understand what you're getting at - so you don't use the stock 'Power Off' button but another app How could that affect what Greenify does? I don't really ever turn my phone off lol
Click to expand...
Click to collapse
If you have root, enabling Greenify in SETTINGS>Accessibility and SETTINGS>SECURITY>DeviceAdministrators should automate the process of hibernation.
If you don't have root, you have to create Hibernation+Screen off shortcut from inside Greenify and use the shortcut for locking the screen/phone. That will hibernate the apps and also lock your phone. @TheMuyu was talking about locking the phone/screen and not about powering off.
tnsmani said:
If you have root, enabling Greenify in SETTINGS>Accessibility and SETTINGS>SECURITY>DeviceAdministrators should automate the process of hibernation.
If you don't have root, you have to create Hibernation+Screen off shortcut from inside Greenify and use the shortcut for locking the screen/phone. That will hibernate the apps and also lock your phone. @TheMuyu was talking about locking the phone/screen and not about powering off.
Click to expand...
Click to collapse
Thanks for that explanation, much appreciated
@tnsmani made a good explanation.
also i meant turn off "screen" not phone
i hope you solved your problem.
No problem! Sorry I misunderstood you, all good. Thanks

Suggestions for Greenify

Greenify is the most useful app yet made for Android but still so much can be done to make it better so I thought to make a thread to make Greenify better and I hope @oasisfeng would look at it.
Post your feature requests and suggestions here in this thread.
My suggestions: I think there should be an option, like a timer, after which greenify automatically greenifies apps even when the screen is on so that if I use a lot of apps continuously and then without turning the screen off once I start to watch a movie or play a game or anything on a phone, greenify should hibernate the background triggered apps automatically and save battery and provide better overall performance.
I know Tasker can do that but personally I don't like using Tasker because of its complex UI so I've set a shortcut on my phone when I double tap the menu button it triggers the hibernate now shortcut of greenify. But it would be of much help if greenify does it itself, having a timer of something between 1min-1hour to greenify apps automatically.
Also I would like the ram usage of greenify to be less, as sometimes it starts using as much as 60-70mb of ram, which is quite much. I hope you can find a way to reduce the ram usage.
If developer read this, i would like to have an option to disable startup apps.
If you have too much apps that starts in same time when you turn on your phone, you will have a slow boot..
I think that this is option that should exist in such great app..
And yes, some timer should exist also...
@oasisfeng
Hi sir. & tnx for the amazing greenfy.
As i talked with you I have some suggestions for greenfy & i want everyone to share more suggestions:
1) Add an option to put some apps in a group. Then put them in hibernation or degreenfy them with one click or widget.
Let me explain: for example i use some sound mods that keep special apps in memory. But when i dont listen to music i dont need them. So i want them to be in hibernation. But when i want to listen to music, i need to degreenfy them with one click
2) Add an option to deactivate & freeze some apps temporarily & easily in the greenfy app.
For example i dont want the google play services be in the memory all the time. I just need it when i want to use a google app. So i freeze it in the greenfy. & when i need it i defrost & activate it.
3)Add an option to force greenfy some apps instead of cut off the services one by one. Or an option to choose the services that we dont need them. & deactivate them.
4) Add an option to degreenfy some apps by a period of time & put it back in hibernation after that automatically.
For example: i use a calander app. That if i put it in hibernation the date that it shows freezes & sticks on a certain day. But if there be an option to degreenfy it daily for an hour automatically & put it back, it was great.
5) Add an option to change the cpu governer from ondemand(or balance) to power save automatically when the screen turns off. & when it turns on or we receive a call or notificstion it goes back to ondemand( or balance)
6)Add an option to not put in hibernation for some apps when they are downloading or uploading. ( i think it's not possible to determine this ) but just a suggesttion)
7) Add an gaming mode. That greenfy put all of the apps in hibernation instead of call,message, or apps that we mention.
kassaaam said:
Greenify is the most useful app yet made for Android but still so much can be done to make it better so I thought to make a thread to make Greenify better and I hope @oasisfeng would look at it.
Post your feature requests and suggestions here in this thread.
My suggestions: I think there should be an option, like a timer, after which greenify automatically greenifies apps even when the screen is on so that if I use a lot of apps continuously and then without turning the screen off once I start to watch a movie or play a game or anything on a phone, greenify should hibernate the background triggered apps automatically and save battery and provide better overall performance.
I know Tasker can do that but personally I don't like using Tasker because of its complex UI so I've set a shortcut on my phone when I double tap the menu button it triggers the hibernate now shortcut of greenify. But it would be of much help if greenify does it itself, having a timer of something between 1min-1hour to greenify apps automatically.
Also I would like the ram usage of greenify to be less, as sometimes it starts using as much as 60-70mb of ram, which is quite much. I hope you can find a way to reduce the ram usage.
Click to expand...
Click to collapse
Alright im not oasisfeng but i can certainly answer some questions as to why this might be possible atm
First, the so-called hibernation whem screen on will only drain your battery futher and will cut-off android system's background process for apps. To put it shortly, it'll cut-off the functions of apps that needs another app for its services.. Some instances includes xposed for whatsapp and the whatsapp itself and others alike. This will have an excessive power drain due to two reasons:
1.) Greenify will constantly monitor background time when screen on hence battery drain
2.) Hibernating apps while screen is on will only re-trigger it, as an example is facebook/messenger.. As hibernating them screen on would only awaken it again after a few seconds which results in more wakelocks and more unneccesarry battery drain
And for the ram usage i have never encountered such, the biggest i have is 11 mb so im quite puzzled.. What services are running in your greenify? I personally disable campaign tracking and analytics services to minimize ram usage
mire777 said:
If developer read this, i would like to have an option to disable startup apps.
If you have too much apps that starts in same time when you turn on your phone, you will have a slow boot..
I think that this is option that should exist in such great app..
And yes, some timer should exist also...
Click to expand...
Click to collapse
Disabling startup apps is the job of other 3rd party apps such as appopsxposed and bootmanager.. Greenify hibernates but not limits. You can never have too much butter on one bread sir

[Q] Pending apps in Greenify 2.5.2 with donation pack

I have recently bought the donation pack for greenify and I have several questions. First of all, I want to say that the app is really fulfilling all my expectations but as someone worried about my battery performance I still have some question, but first I'll say the conditions of my smartphone:
Samsung galaxy s5 with lollipop using greenify 2.5.2 donation pack (non rooted)
Questions:
1) I cannot see apps like chrome to be greenified and I want to have them like that as I see chrome takes up to several hours of internet connection even if I have just used it for some minutes. I wonder this is possible because I suppose this can be made as in other apps like battery killers, chrome can be killed, but I just haven't seen how.
2) Everytime I open greenify there are many "pending" apps that are not hibernated, even if I click in "zzz" button or in the button that says "hibernate and turn off the screen". The only way to deal with these pending apps is to select all of them and click on "zzz". I guess there should be a way to have them automatically hibernated.
3) There is an option in the menu that talks about an automatic manner to do this but I don't see how to activate it. I have it marked the greenify options for locking the screen but there are even more things to set that I don't see where and how. Maybe you can guide me in this better. In case I have this option chosen, pending apps will be automatically closed after some minutes, as it is said? if so, how many minutes?
Thanks in advance!
paco_ramirez said:
Questions:
1) I cannot see apps like chrome to be greenified and I want to have them like that as I see chrome takes up to several hours of internet connection even if I have just used it for some minutes. I wonder this is possible because I suppose this can be made as in other apps like battery killers, chrome can be killed, but I just haven't seen how.
2) Everytime I open greenify there are many "pending" apps that are not hibernated, even if I click in "zzz" button or in the button that says "hibernate and turn off the screen". The only way to deal with these pending apps is to select all of them and click on "zzz". I guess there should be a way to have them automatically hibernated.
3) There is an option in the menu that talks about an automatic manner to do this but I don't see how to activate it. I have it marked the greenify options for locking the screen but there are even more things to set that I don't see where and how. Maybe you can guide me in this better. In case I have this option chosen, pending apps will be automatically closed after some minutes, as it is said? if so, how many minutes?
Thanks in advance!
Click to expand...
Click to collapse
Have you set Greenify to "on" in SETTINGS>Accessibility?
If you want to manually hibernate, create the shortcut from within Greenify (use the three button icon on the top right). When you use the shortcut, the chosen apps will be hibernated and the screen will be locked afterwards.
In Autohibernate, the time taken for hibernation varies but all apps should be hibernated within 10 minutes max.
For hibernating system apps like Chrome, I think you need root permission.
Yes, the accesibility for Greenify is set to activated. However this options is never enabled within the "experimental settings" menu. It's always set to off. So I have never seen my phone awaking ten minutes after to turn off all pending apps. They remain opened. Any hint?.
Best regards!
paco_ramirez said:
Yes, the accesibility for Greenify is set to activated. However this options is never enabled within the "experimental settings" menu. It's always set to off. So I have never seen my phone awaking ten minutes after to turn off all pending apps. They remain opened. Any hint?.
Best regards!
Click to expand...
Click to collapse
When you click the "always off" Automatic Hibernation option in Experimental Features, what happened? It is supposed to be a accessibility setting dialog for you to enable the accessibility service from Greenify for the first time, then Device Admin dialog to enable the other service for the second time, and being checked at last for the third time.
Here I post the sequence I do in screenshots. Evrytime I click in that button it appears the same dialog. I don't know if I'm doing something wrong...but i dont get it working and I have to hibernate manually pending apps
Thanks for helping! ?
paco_ramirez said:
Here I post the sequence I do in screenshots. Evrytime I click in that button it appears the same dialog. I don't know if I'm doing something wrong...but i dont get it working and I have to hibernate manually pending apps
Thanks for helping! ?
Click to expand...
Click to collapse
Have you enabled 'secure key guard'?
If so, disable it and then check.
tnsmani said:
Have you enabled 'secure key guard'?
If so, disable it and then check.
Click to expand...
Click to collapse
Yes! it was that!. I supposed it was enough by allowing greenify in the security menu. Thanks!
However, I wanted to have it working because I thought it was the only way to have pending apps hibernated because with the button "hibernate and lock" was not hibernating pending apps. After rebooting the phone (thing that I do seldom) it works as I expected. I guess this was the cause why greenify wasn't worked as I expected. Then, for me it is ok if I have that button since it does what I expected to.
Thanks to all!

Automatic hibernation not staying enabled

I'm on a galaxy s7 oreo in no root mode. As soon as I check the automatic hibernation option it uncheckes itself. I really want to setup greenify to auto hibernate my selected apps as soon as they start.
JTCGiants56 said:
I'm on a galaxy s7 oreo in no root mode. As soon as I check the automatic hibernation option it uncheckes itself. I really want to setup greenify to auto hibernate my selected apps as soon as they start.
Click to expand...
Click to collapse
The option you cite will not accomplish that goal. Automatic hibernation activates shortly after screen-off...not when the app becomes active.
Davey126 said:
The option you cite will not accomplish that goal. Automatic hibernation activates shortly after screen-off...not when the app becomes active.
Click to expand...
Click to collapse
Gotcha, is there an option to either stop immediately, or even prevent an app from starting all together? If not, I would at least like to get the option that is not working working so it will at least activate on screen lock. Thanks.
JTCGiants56 said:
Gotcha, is there an option to either stop immediately, or even prevent an app from starting all together? If not, I would at least like to get the option that is not working working so it will at least activate on screen lock. Thanks.
Click to expand...
Click to collapse
I don't know why automatic hibernation is not staying checked on your device. There is probably a logical explanation; I just don't know it off-the-cuff.
Greenified apps generally remain hibernated unless 'activated' by an event or another app. It either case Greenify will note the trigger and give you the option to 'cut' it off.
You can enable 'wake up tracking' and 'quick action notification' in settings for additional flexibility/control. Greenify also includes a couple widgets and other controls (eg: long press action on nav bar) for manually invoking hibernation.

Categories

Resources