Reply
Thread Tools
Posts: 254 | Thanked: 95 times | Joined on Feb 2010 @ New Delhi, India
#1
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?
 

The Following 4 Users Say Thank You to navsin For This Useful Post:
Posts: 58 | Thanked: 65 times | Joined on Oct 2009 @ Finland
#2
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...
 
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#3
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.
 

The Following User Says Thank You to rooted For This Useful Post:
Posts: 254 | Thanked: 95 times | Joined on Feb 2010 @ New Delhi, India
#4
Originally Posted by rooted View Post
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's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#5
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.
 

The Following User Says Thank You to javispedro For This Useful Post:
Posts: 254 | Thanked: 95 times | Joined on Feb 2010 @ New Delhi, India
#6
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's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#7
Originally Posted by navsin View Post
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?
 
Posts: 254 | Thanked: 95 times | Joined on Feb 2010 @ New Delhi, India
#8
Originally Posted by javispedro View Post
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's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#9
Originally Posted by navsin View Post
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.

Last edited by javispedro; 2010-04-05 at 11:39.
 
Posts: 148 | Thanked: 31 times | Joined on Mar 2010
#10
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:08.