maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   SmartReflex- Battery Enhancement - The right way? (https://talk.maemo.org/showthread.php?t=49228)

navsin 2010-04-05 06:49

SmartReflex- Battery Enhancement - The right way?
 
I have come across many ways of enhancing the battery life on the forum. Two of them have stood out.

One is the following post by Vasillalov which basically guides the users on various settings:

http://talk.maemo.org/showpost.php?p=410388&postcount=1

The second one, and the one relevant for this post is the smartreflex battery enhancement command set which has been described differently at different places. On the bug report page

https://bugs.maemo.org/show_bug.cgi?id=7633

it says that the text of the command is

echo 1 > /sys/power/sr_vdd1_autocomp
echo 1 > /sys/power/sr_vdd2_autocomp

In another post http://talk.maemo.org/showpost.php?p...9&postcount=16 , I came across a different syntax (and a different sequence) of the same command.

echo "1" >/sys/power/sr_vdd2_autocomp
echo "1" >/sys/power/sr_vdd1_autocomp

I have tried both and it seems that the latter seems to work better. Can someone else confirm what is the correct syntax and the sequence of these commands?

mattiviljanen 2010-04-05 07:31

Re: SmartReflex- Battery Enhancement - The right way?
 
To add insult to injury, I think the correct code should be

echo -n "1" >/sys/power/sr_vdd2_autocomp
echo -n "1" >/sys/power/sr_vdd1_autocomp

The -n flag makes echo not print a newline after the string.

YMMV...

rooted 2010-04-05 10:18

Re: SmartReflex- Battery Enhancement - The right way?
 
navsin: those two commands are same. Spaces do not make difference, because they're ignored, nor do the quotation marks. They're used if you're echoing words/sentences which have spaces between them, for example: echo "I want SmartReflex enabled by default!"

Thus echo 1 = echo "1".

The only difference I see is the order in which values are echoed.

navsin 2010-04-05 10:23

Re: SmartReflex- Battery Enhancement - The right way?
 
Quote:

Originally Posted by rooted (Post 596043)
navsin: those two commands are same. Spaces do not make difference, because they're ignored, nor do the quotation marks. They're used if you're echoing words/sentences which have spaces between them, for example: echo "I want SmartReflex enabled by default!"

Thus echo 1 = echo "1".

The only difference I see is the order in which values are echoed.

In that case, does -n (as mentioned by mattiviljanen above) make any difference with respect to this particular command?

javispedro 2010-04-05 10:43

Re: SmartReflex- Battery Enhancement - The right way?
 
If you read the entire bug report you'll see that actually none of those is recommend, but editing /etc/pmconfig is.

Also, backup and ensure you know how to reflash before doing anything.

navsin 2010-04-05 11:04

Re: SmartReflex- Battery Enhancement - The right way?
 
From different posts that I have read, it seems that editing /etc/pmconfig makes the phone more likely to crash. That seems to be the riskier option to me.

javispedro 2010-04-05 11:11

Re: SmartReflex- Battery Enhancement - The right way?
 
Quote:

Originally Posted by navsin (Post 596082)
From different posts that I have read, it seems that editing /etc/pmconfig makes the phone more likely to crash. That seems to be the riskier option to me.

Did you consider it might be because "the other" one does nothing?

navsin 2010-04-05 11:14

Re: SmartReflex- Battery Enhancement - The right way?
 
Quote:

Originally Posted by javispedro (Post 596091)
Did you consider it might be because "the other" one does nothing?

:) I did consider this :) But the commands 'do' do something... I observed a remarkable difference in the slopes of battery drain graph on batteryeye with and without the commands - for similar usage patterns.

But on a serious note, are you pretty sure that these two commands do nothing?

javispedro 2010-04-05 11:20

Re: SmartReflex- Battery Enhancement - The right way?
 
Quote:

Originally Posted by navsin (Post 596095)
But on a serious note, are you pretty sure that these two commands do nothing?

I'm actually pretty sure that both editing pmconfig and editing procfs files are the same thing. But since you just told that the former is more risky, the only thing this proves is that the testing methodology is a complete failure >:)

pmconfig is just read at /sbin/preinit time by /sbin/read_cfg.awk, which just ... edits the procfs files.

kylepsp 2010-04-05 12:00

Re: SmartReflex- Battery Enhancement - The right way?
 
Smart Reflex caused my phone to constantly reboot, don't know why it was so unstable with me, I even tried a reflash then enabling it.


All times are GMT. The time now is 23:03.

vBulletin® Version 3.8.8