[Q] Change power mode via shell? - Asus Eee Pad Transformer Prime

Hello,
I would like to know if its possible to change the power mode via shell commands.
I want achieve that tasker switches to power saving mode when the display is off.
Anyone knows how to do that?
Regards,
Brantje

you could probably make something with gscript or scriptmanager to accomplish that. the files you meed to make the script point to is in /system/etc I believe.
on another note, I think it doesn't matter what power mode you in when display is off. all modes will go into low powersavings then kick into deep sleep. no advantage over the other, as far as display being off goes. I would think. you can get a free app, here in xda, called better batter stats to see how your device performing with display off and you could also get free app called CPU spy to see how long your device stays in different speed frequencies.

Related

System power saving actually useful?

Hi guys!
I've noticed recently a new power save get option in the power saving menu in settings called 'system power saving'.
I've never seen much point in using the specific power saving mode that you can set to kick in at x% because it doesn't seem to do anything I can't and don't do manually myself.
Does anyone know anything about this new setting? Turning it on i've noticed screen transitions are a little less smooth, but does this actually do anything useful?
Any ideas?
Many thanks!
Sent from my GT-I9100 using XDA App
I would be interested in finding out what this does as well.
I noticed that frame rates seemed lower in games, and the responsiveness is a little slower (not considerably, though).
Is there a list of what it actually does?
I've notice that my phone uses less battery in this mode that without it.
MrThomsen said:
I've notice that my phone uses less battery in this mode that without it.
Click to expand...
Click to collapse
Well, I would hope so...
I do know that it does NOT disable background data (I still receive push emails with both Exchange and Gmail)
Camera and Auto-flash are still enabled.
Everything that typically gets turned off in order to save battery is still on as far as I can tell...
We know it saves battery... but how?
If we find out how, then our developers could probably leverage that information when making new ROMs.
I would just like to know if anything is being disabled that I don't want disabled... but I don't know what I don't know
It lowers the CPU clock frequency, in my SGSII, scrolling desktops is not smooth at all with this option ON I've never been patient enough to test this option for a long time
when i activate powersaving it doesnt seem to make a difference
elmo180 said:
It lowers the CPU clock frequency, in my SGSII, scrolling desktops is not smooth at all with this option ON I've never been patient enough to test this option for a long time
Click to expand...
Click to collapse
Seriously?
I have mine overclocked to 1.6 GHz and the conservative governor and I have not noticed the time-in-state data to be changing from what it was without this option set.
You were right about the clock speed.
system power save does the following:
Restricts core speed (mine was capped at 800)
Lowers brightness
Changes UI frame rate
Warning: Created with Swype

Saving battery on my Android device?

So after some research and Googling, I discovered that "Killling" your app is only worse or has no effect for your battery life. Even using apps that "save" battery only harm it even more. I've been told these were the fundamental things to save battery ever since I even got my hands on a smart phone.. Guess I've been asking the wrong people.
So, what are real ways to save battery? I'm a heavy phone user, often surfing the net or watching Netflix on the go. Dimming my screen is not enough, are there any other techniques to prevent my phone from dying? I've got an Android 4.
If you're rooted:
Underclock
Undervolt
Change cpu governor/io scheduler
Flash different ROMS and kernels
Change your modem
And a few more.
Not rooted:
Use screen filter? Lol.
Update your firmware
Sent from my GT-I9100 using XDA
okmijnlp said:
If you're rooted:
Underclock
Undervolt
Change cpu governor/io scheduler
Flash different ROMS and kernels
Change your modem
And a few more.
Not rooted:
Use screen filter? Lol.
Update your firmware
Sent from my GT-I9100 using XDA
Click to expand...
Click to collapse
I am rooted, thank you for the info! I'll be looking into it~
Get bigger battery?
Turn thing off lol only kidding but turn off auto updates such as news etc
If you look at your battery stats, under settings, you'll see what uses the most battery. Usually I find that my screen uses around 70% of my battery, but if you have something else high on the list you might have a "rogue app" preventing your phone from going into sleep mode.
If your screen is the culprit you can only save 10% or so by throttling your CPU etc. The only way you can make real savings is by reducing screen brightness.
Easiest way to save battery is use gemini app manager to stop apps being able to autostart when you don't want them to as then you don't have the os having to kill off unused apps to make more free ram.
For example a lot of apps can autostart when your wifi goes on or off, when your 3G signal drops etcetera including things like facebook or google play. By changing auto start for such apps you don't have to run a task killer which also saves battery.
Dave
Sent from my LG P920 using Tapatalk
i use the aokp rom milestone 4 atm, and i also have come accross a fantastic battery app called "Badass Battery Monitor". its free and details very very specifically what apps are using the battery most.
I have managed to increase my battery by rooting out the apps i dont use that are using prescious power...
Also, turning off useless app permissions for apps theat really dont need them and work perfectly well without them will also save on power massively. for this i use "LBE Privacy Guard" works an absolute charm
I have widget where I can turn off Internet connection, set brightness, GPS etc. Internet stand-by mode uses damn much battery... And when you don't use Internet, you can put on 2G, it also saves battery.
This may not benefit you if you are a heavy user but I find the feature on my Droid 3 that turns off 3G after 15 minutes of inactivity saves battery and also saves data. Not sure if this is a standard Android feature or if it would even benefit you.
Here with LG P990 and I don't have option to turn off 3G aftre some minutes... but if/when you didn't need high speed you can choose only 2G network (for example when needed receive only notification): this save a lot your battery.
Moreover you can verify battery consumption to see if there are autostart apps from your vendor than have heavy power consumption (for me there was OnScreenPhone) and use gemini app manager as explained previously.
In the end you can find out custom ROM for your device usually optimized for smoothness and power consumption.
First apps I download when switching to a new Rom to get a little control on battery are
Adfree- Get rid of ads, they eat a bit of battery.
DroidWall- Control what apps are able to access Internet under separate "Mobile Data" and "Wifi" Conditions.
Screenfilter- Dim the screen below factory settings.
LED's hack- Turn off the Softbutton Backlights (home/menu/back/search), even though they don't seem like it may eat up your battery, it is an extra 'light' that's on, even though it may be minimal, it's still drawing power.
Also, It maybe just a Photon thing cuz of the Pentile display but I always use if not completely Black background image, a dark one because the 'lighter' or 'whiter/colorful' images take more battery, same reason I always look for 'Inverted' or black themed apps too.
Turn OFF any 'Haptic feedback' settings on your phone (Keyboard, Phone DialPad, Screen/UI Interactions, etc..)
For Calls (Ringtone) and Notification settings, don't have them set to 'Ring and Vibrate' or just 'Vibrate' because the Vibration Mechanism will eat alot if battery. Some may argue that the Notification 'Vibrate' setting and even the Haptic feedback (which does in fact use the phones Vibration mechanism) would not kill battery because it's a 'quick' or 'minimal' use (depending on use) and but if your keyboard had the Haptic feedback on, thinking of how many times your touch the keyboard for even on Text message, try will add up and help kill the battery.
Turn OFF any/all Homescreen/UI Animations
Turn OFF any Auto Sync setting and instead have APPS sync in a specified interval, (Of course Depending on how important the information that's being pulled like Email) , Could be set to like every 4 hours to sync an so on.
Manually input Date/Time settings instead of "Get network provided values" because it'll be one less thing pulling from Internet.
Set Screen Timeout to 30 Secs and Never have Auto-Brightness set, instead use a brightness toggle of some sort (Stock 'Power Control' Widget works well) to only have it as bright as you need to view in current conditions.
Open the Google 'Talk' application and uncheck the 'Auto log-in' setting, and then 'Sign out'. For some reason this always runs in the background and eats alot of battery.
If I think of more things ill post them
Hope these tips help, if they do don't forget to hit the thanks button thanks.
MoPhoACTV Initiative
There are many ways...
Switch on WiFi, 3G at only using, and close the not using application, decrease display brightness etc...
And if you root your phone, you may change CPU governor, or build.prop tweaks, script tweaks... Or change to custom kernel or custom ROM.
I forgot that 'LED's hack' is not available in the market anymore, I attached it below.
i hv just downloaded screen-filter lets c how that works...
Juice defender
Try JuiceDefender by Latedroid. It helps a lot to turn off things you don't need when you don't need them. Sorry I can't post the link- I'm new to XDA
my experience:
undervolting does not help much. you have to test a lot for only a little bit of improvement.
in my opinion you will not really remark it.
but what helps, i think, is set cpu speed, if possible. for example i use samsung galaxy s2 where cpu has max 1200mhz. i set max cpu freq to 800mhz. with a good rom (hydrogenics f.e.) android keeps running smooth with 800mhz and battery lasts noticeable longer.
I agree that undervolting doesn't help so much.
Like in up post, best thing to save Your battery is to change cpu power. You can also use diffrent cpu govenor : good for battery are smartassv2 and power save. Just need to have rooted phone and download app, fx. Antutu CPU Master or Set CPU. U can also make your cpu speed profiles.

How do i make the display not turn off?

From what i know, the max is 10mins?
You're correct, 10 minutes is the maximum. I imagine you could modify a system file in order to hack your way around this, but I'm afraid I don't know which one - also you'd need to be rooted.
You could have smart stay on and keep looking at it, then it wont switch off
No need for root or shady tools.
Install the app 'Keep Screen on' and done
Apps can use the permission to keep your screen on even if they are not in active usage.
I usually set it to "Until I turn it off" so it won't stay on when plugging it into a charger.
Very handy app when keeping it for Skype communications next to the computer.
You can also use Power Widget Lite to create toggles on your homescreen to keep the screen awake.

[Q] Force enabled/disable CPU cores?

We're trying to benchmark an app on our DNA Droid and want to forcibly enable/disable CPU cores. We've done this on other devices, but it appears the Krait/Qualcomm stuff has another layer that disables CPU cores after we enable them through /sys/devices/system/cpu/cpu#/online = 1. I'm guessing a power save level. We also normally switch to userspace governor to force the CPU to run at a certain frequency.
We could use an app if that is the only way, but we would prefer scriptable (command line) solutions. And we're running a basically stock kernel + the writable system area patch (from here).
Thanks in advance.
Using the shell, try killing mpdecision.
Sounds like a good target after my quick Google search for what that is. I'll let you know what we figure out (the other guy is at lunch right now ).
---------------------------------------
"adb shell stop mpdecision" seems to block it until the screen goes off. Then if you disable the screen sleeping while connected (in developer options usually) we hope to be golden for now. Would be nice to be able to just disable it all together, but this is at least a workable crutch.
Apparently killing the process just triggers a re-run of the it.

[Q] automatically enable power saving mode when locked

Hey guys,
is there any way to set up power saving mode to turn on automatically when screen is locked and turn off when unlocked?
Unless a rogue app it's m keeping your phone clocked up ,I don't really see the point, it should go to sleep anyway, all power saving does is drop max to 1.2GHz, din screen and stop vibration, non of which is going to effect your phone when it has screen off/is sleeping
there's no native way, however i found an app this morning you may find useful to your request, its called deepsleep manager. its a whole suite of battery saving options that active every time the screen turns off. didn't play around with it much so can't say really what all it offers. just throwing it out there
Sent from my GT-I9300 using xda app-developers app
also cpu sleeper might be useful

Categories

Resources