PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Diamond (http://forum.ppcgeeks.com/forumdisplay.php?f=66)
-   -   Two more ways to save battery (if solutions can be found) (http://forum.ppcgeeks.com/showthread.php?t=38874)

snovvman 09-28-2008 11:52 AM

Two more ways to save battery (if solutions can be found)
 
1) I don't use the device in landscape much and would like to be able to shut off the g-sensor/accelerometer when it's not needed (since it is drawing power and active all the time when the phone is on).

I came across this:
HKEY_LOCAL_MACHINE\Software\HTC\HTCSensor\GSensor\ DeviceAvailability

I simply don't know if, by making the sensor unavailable, it would stop the power draw from the sensor, or does it simply make the sensor's output unavailable to the applications. It would be interesting to know the results if someone actually tests this.

2) The light sensor's screen brightness adjustment is limited. It does not (for me) dim the screen enough when indoors or when the ambient light is low. If it can dim the screen more, there is a marginal amount of battery that can be saved. I noticed that, using the light sensor, the minimum draw is around 90 mAh. With manual control of the backlight and turning it lower, the minimum draw is around 60 mAh.

I see a few registry settings related to the light sensor (under HKCU\Control Panel\Backlight) and wonder if there is a setting that can change the bias of the sensor to increase its adjustment range, especially toward the dimmer range...

Clearly, though, having the light sensor "poll" all the time takes power too...

Your input is appreciated.

Yay 4 Juggs 09-28-2008 12:17 PM

Re: Two more ways to save battery (if solutions can be found)
 
i lowered the gsensor poll but woul d love to turn it off completely...ysing advancedvconfig i was able to turn off the light sensor...ill keep digging and maybe between the two of us we can figure it out as gsensor also draws ram too

hibby50 09-28-2008 12:21 PM

Re: Two more ways to save battery (if solutions can be found)
 
i cant believe you are worried about ram juggs...

Yay 4 Juggs 09-28-2008 12:26 PM

Re: Two more ways to save battery (if solutions can be found)
 
ram actually relates to power...the less available ram the more draw on the processor the more draw on the battery

Yay 4 Juggs 09-28-2008 12:35 PM

Re: Two more ways to save battery (if solutions can be found)
 
ok so after changing both device avail to 0 and it disabled the sensors entirely hopefully this will help with battey im currently at 84% ill report back at 430 and let you know how its dropped...then ill turn them back on till 830 and report the drop

snovvman 09-28-2008 12:40 PM

Re: Two more ways to save battery (if solutions can be found)
 
Quote:

Originally Posted by Yay 4 Juggs (Post 437248)
i lowered the gsensor poll but woul d love to turn it off completely...ysing advancedvconfig i was able to turn off the light sensor...ill keep digging and maybe between the two of us we can figure it out as gsensor also draws ram too

Thanks. I didn't know Gsensor also takes RAM.

I wonder, if by disabling the reg value above, will it reduce the amount of RAM consumed after reset? That might give us a clue whether the sensor is active at all. I will find an accurate RAM reporting tool and give it a try.

I also made a post over at the Vogue forum, asking about the Touch's backlight adjust application. The app gives four steps of brightness but does not quite have the appropriate gradients for Diamond. I'm wondering if the four steps can be altered to different values.

http://forum.ppcgeeks.com/showthread.php?t=38879

Yay 4 Juggs 09-28-2008 12:58 PM

Re: Two more ways to save battery (if solutions can be found)
 
before changing reg attributes ram usage was 45% after the change and a soft rest 35% ram usage

tobeychris 09-28-2008 01:07 PM

Re: Two more ways to save battery (if solutions can be found)
 
You could just as easily increase the polling interval to a rediculous number, but either way, those two features will offer minimal to no battery savings.

sfaure03 09-28-2008 01:11 PM

Re: Two more ways to save battery (if solutions can be found)
 
Quote:

Originally Posted by Yay 4 Juggs (Post 437263)
ram actually relates to power...the less available ram the more draw on the processor the more draw on the battery

UMM??? WHAT???????!!!!!

Certs 09-28-2008 02:05 PM

Re: Two more ways to save battery (if solutions can be found)
 
More RAM in use = more running processes = more CPU use = more battery drain. That's it.

Going to shut mine off too, I never use it anyway

sfaure03 09-28-2008 02:55 PM

Re: Two more ways to save battery (if solutions can be found)
 
Only if those programs == too stupid to go to sleep.

mswlogo 09-29-2008 01:19 AM

Re: Two more ways to save battery (if solutions can be found)
 
Quote:

Originally Posted by Yay 4 Juggs (Post 437263)
ram actually relates to power...the less available ram the more draw on the processor the more draw on the battery

I don't think it works that way. It's all "AVAILABLE" all the time.

But I did kill OperaPreL.exe by renaming it to OperaPreL.exe_
And RSS Hub.exe RSS Hub.exe_

Apps do use CPU, poke the network etc. which does use power.

I also shutoff the auto dim and set it fairly low brightness and it still looks very good.

I shut direct push off to keep data connection off and just run Active Sync manually.

mswlogo 09-29-2008 01:22 AM

Re: Two more ways to save battery (if solutions can be found)
 
Quote:

Originally Posted by sfaure03 (Post 437410)
Only if those programs == too stupid to go to sleep.

Agreed.

Just killing apps and freeing RAM won't save battery unless those apps are doing something like triggering notifcations, polling the network etc.

snovvman 09-29-2008 11:18 PM

Re: Two more ways to save battery (if solutions can be found)
 
I set HKEY_LOCAL_MACHINE\Software\HTC\HTCSensor\GSensor\ DeviceAvailability to "0". Upon soft reset, the value reverted to "1". I made many registry changes, and this is the only one that auto-reverts. Any ideas?

Thanks.

Certs 09-29-2008 11:48 PM

Re: Two more ways to save battery (if solutions can be found)
 
Yeah I also noticed after making the change the settings reverted back to normal upon reset. Not bothering with it anymore for now, the amount of battery saved I doubt is worth the trouble anyway

snovvman 10-18-2008 01:14 AM

Re: Two more ways to save battery (if solutions can be found)
 
For background, read the first post of this thread.

Taking this thread back from hibernation. I found this key:

HKLM/Drivers/BuiltIn/GSensor/Dll=Gsensor.dll, by changing the name of the file to, say, 1Gsensor.dll, the driver won't load and therefore no accelerometer. Not sure if this will save battery, but I will give it a try. I don't use apps that require the sensor, and would actually prefer to manually rotate the screen anyway.

Another item: I came across HKLM/Drivers/BuiltIn/ErrorReporting/PollInterval. While I have error reporting turned off, but I wonder if it still "polls", so I changed the default value from 180000 (presuming 3 minutes) to 1800000 (30 minutes).

Please report here if these help battery life.


BTW, I am still looking for a way to adjust the light sensor's response to a given light condition. Niki's Light does not work. If you know of a way, please post.

cappy 10-18-2008 10:15 AM

Re: Two more ways to save battery (if solutions can be found)
 
Snovvman, I admire your persistence. But if any battery life is saved, it will be minimal and at the margin. Windows is an event driven operating system. Imagine the CPU as a gerbal inside one of those ferris wheels, running and running. Each poll adds a miniscule amount of weight to the ferris wheel, like a snowflake. The heavier the snowfall, the more weight. But you would need a blizzard to really burden the gerbal. The gerbal keeps running at the same pace, using the same amount of energy.

Well behaved programs running in Windows do not measurably increase CPU usage, except when they are actually doing something. Take a look the Task Manager on your computer. There is a function that measures CPU usage. Except for programs that are actually processing something, running programs do not burden the CPU. If you have FcdSoft's Task Manager installed on your device, you can view the CPU usage of the various processes and you will see the same thing. You can be running 10 applications. If they are well behaved and at idle, the CPU usage will hover around 1%.

Running programs consume memory, but they do not burden the CPU or drain the battery, unless they are actually doing something. Start several applications, leave them running, and observe their effect upon the CPU. Unless constantly running a procedure, like calculating PI, they will not add to CPU usage. There are good reasons to close applications when done with, but increasing battery life is not among them, unless the apps are not well behaved and are constantly running a process in the background other than polling.

I think big benefits will be gained by finding those applications that are not well behaved. For example, I have been running Gyrator 2 for a few days. It does not effect CPU usage. However, once during that time it did not release properly and caused CPU usage to remain at 50 x normal. Had I not killed the process, it would have drained my battery completely. I did not write the application and have no desire to debug it. But it has to be watched. In the end, it may not be Gyrator 2 at all, but a bug in the Rotate function within Windows. Also, something either in Windows or an application that is running can cause the Data Connection to stay active. It does not happen often, but when it does the battery will drain completely within a few hours. So until someone finds the cause, the Data Connection has to be watched. Once, I observed that something did not release the CPU, when the Data Connection was dormant. Again, finding what caused this will save big on the battery. Until then, I watch the CPU usage regularly. It is displayed right below my battery icon in the Status Bar. If it stays above 1% for more than a few seconds, I know that there is a problem.

Keep up the good work Snovvman.

snovvman 10-19-2008 01:23 AM

Re: Two more ways to save battery (if solutions can be found)
 
Thanks cappy. I don't disagree. I was hoping that, by not loading the driver, the sensor itself would actually not be "activated" or powered up. Sort of like keeping WiFi off, if the sensor can be kept powerered off, I'd imagine there would be some savings. Although the polling "event" only blips the CPU a small amount, the sensor device would be draining power all the time (since, I assume, it is always "on" in order to report the change in state?).

Thanks again for taking the time to write. You made very good points.

cappy 10-19-2008 06:17 AM

Re: Two more ways to save battery (if solutions can be found)
 
Quote:

Originally Posted by snovvman (Post 464069)
Thanks cappy. I don't disagree. I was hoping that, by not loading the driver, the sensor itself would actually not be "activated" or powered up. Sort of like keeping WiFi off, if the sensor can be kept powerered off, I'd imagine there would be some savings. Although the polling "event" only blips the CPU a small amount, the sensor device would be draining power all the time (since, I assume, it is always "on" in order to report the change in state?).

Thanks again for taking the time to write. You made very good points.

Thank you. I appreciate the methodical way that you approach an issue.

For myself, I have concluded that the Diamond is a big advance over previous Win Mobile devices. This is a super piece of hardware and I will take full advantage of the features that the Diamond offers. If I monitor the device for mis-behaved applications, the device will not drain the battery prematurely. I have the GPS locator turned on, I use the light sensor, and I have added Gyrator 2 to rotate my screens. Weather is set to update automatically. I am not afraid to leave well behaved applications open in the background.

This is why I responded to the subject of your thread. I am convinced that turning off all of the extended Diamond features might prolong battery life by a few percent. Compare this to a 5 minute phone conversation. But if a mis-behaved application can be isolated, it may prolong battery life by 50% to 100%. Compare this to 2.5 to 3 hours of talk/data time.


All times are GMT -4. The time now is 06:13 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0