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.

navsin 2010-04-05 13:32

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

Originally Posted by javispedro (Post 596099)
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.

this is Greek to a noob like me.... in simple language... what should i do to enable smartreflex?

navsin 2010-04-05 15:26

Re: SmartReflex- Battery Enhancement - The right way?
 
*Bump*

anyone?

hqh 2010-04-05 15:38

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.

Read comment https://bugs.maemo.org/show_bug.cgi?id=7633#c20

Editing /etc/pmconfig and then rebooting is the recommended method.

If it crashes... well, SmartReflex works for some but makes some devices unstable. Likely the reason it isn't enabled by default...

Spotfist 2010-04-05 15:59

Re: SmartReflex- Battery Enhancement - The right way?
 
I just caqme accros this thread and wondered if this actually works and if so why has no app been created to make use of these settings?

gabby131 2010-04-05 16:10

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

Originally Posted by hqh (Post 596392)
Read comment https://bugs.maemo.org/show_bug.cgi?id=7633#c20

Editing /etc/pmconfig and then rebooting is the recommended method.

If it crashes... well, SmartReflex works for some but makes some devices unstable. Likely the reason it isn't enabled by default...

im not saying Not to try smartflex but i when i got a reboot bug after enabling smartreflex, it ended up giving me a re-flash on my device.

im just so lucky to get that one, but that smartreflex works very well, i think it saved me another 50% of battery life IMHO. :D

javispedro 2010-04-05 16:14

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

Originally Posted by gabby131 (Post 596437)
i, i think it saved me another 50% of battery life IMHO. :D

Seriously, that is impossible. For a start, SmartReflex doesn't even have a visible impact in idle time -- it says so even in the official propaganda!

navsin 2010-04-05 16:46

Re: SmartReflex- Battery Enhancement - The right way?
 
50%???? i am willing to be ready to reflash for it! now some pls explain to me how can i edit the pmconfig?

gabby131 2010-04-05 17:54

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

Originally Posted by navsin (Post 596469)
50%???? i am willing to be ready to reflash for it! now some pls explain to me how can i edit the pmconfig?

well the 50% is just my opinion, the basis is that i only have 10hrs heavy before the smartreflex,

after enabling smartrefelex, with the same use, same settings etc, it gave me 15hrs (including 2 unknown reboots)

the bad thing is, i have no battery eye, graph or health check installed at that moment, and its only what i notice and no technical explanations to support my basis, so it is not 100% absolute.

Quote:

Originally Posted by javispedro (Post 596439)
Seriously, that is impossible. For a start, SmartReflex doesn't even have a visible impact in idle time -- it says so even in the official propaganda!

EDIT: the re-flash thing......yes it occurred, but seems like im the only one who experienced that. majority only got unexpected re-boots.

exe 2010-04-05 18:27

Re: SmartReflex- Battery Enhancement - The right way?
 
This is my batterygraph (graph lol). Smartreflex was enabled around 21:00 March 31 definitively.

I can definitely see battery improvement, you can also look at the slope angle.

The 4-5 days before that i was switching it on-off, playing with swappiness and other things that i cannot however precicely time.

PS: green is wifi connection, red is gprs/3g

http://img689.imageshack.us/img689/9...0405201.th.png

PS2: I have only used echoing to set smartreflex, and have set vdd2 first as per the recommendation of a user on this forum (cant find the thread again).

Venemo 2010-04-05 18:46

Re: SmartReflex- Battery Enhancement - The right way?
 
I enabled SmartReflex with the pmconfig setting (and rebooting) a few weeks ago.
I set both vdd1 and vdd2 to 1.

It is rock stable and the battery life seems to have improved.

Spotfist 2010-04-05 19:14

Re: SmartReflex- Battery Enhancement - The right way?
 
so this works and increases battery life by 50% yet no1 has decided to create an app and the only graph shows that there isn't much change, could I be more confused? :(

gabby131 2010-04-05 19:17

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

Originally Posted by Venemo (Post 596643)
I enabled SmartReflex with the pmconfig setting (and rebooting) a few weeks ago.
I set both vdd1 and vdd2 to 1.

It is rock stable and the battery life seems to have improved.

wow good one! :D

i change mine by.....uh.....echo -n 1 /sys/power/sr_vdd1_autocomp same in vdd2.

after 3 re-boots comes the problem that a re-flash is needed :eek:

and now im afraid to do that again, well if a pro will guarantee that it wont happen again if i re-enable smartreflex, maybe i'll give it another try.

hqh 2010-04-05 19:19

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

Originally Posted by Spotfist (Post 596695)
so this works and increases battery life by 50% yet no1 has decided to create an app and the only graph shows that there isn't much change, could I be more confused? :(

You missed the part(s) that said IT DOES NOT WORK FOR EVERYONE. Also I haven't seen anyone do any battery life comparisons that would be statistically valid.

egoshin 2010-04-06 00:00

Re: SmartReflex- Battery Enhancement - The right way?
 
To anybody, who doesn't see SmartReflex effect -

if you use 'echo' command, please put a space between digit 1 and sign '>'.

Or just enclose digit 1 in double quotes like "1"

Reason: shell uses a combination 1> differently if you haven't space in between. You can verify the effect by

cat /sys/power/sr_vdd1_autocomp

egoshin 2010-04-06 00:03

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

Originally Posted by mattiviljanen (Post 595924)
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...

The newline is handled properly by kernel, don't worry.

craftyguy 2010-04-06 00:24

Re: SmartReflex- Battery Enhancement - The right way?
 
This thread would have been more useful as a poll, gathering information about which users implemented this and had issues vs had no issues..

calltrace 2010-04-06 00:32

Re: SmartReflex- Battery Enhancement - The right way?
 
Ok :)
Have enabled it via pmconfig for two days without problems
(PR1.1 ,60 for swappiness )
No just flahed 800MHz kernel - still no issues ....will post w/o SR batterry graph if i will have some time

Venemo 2010-04-06 09:58

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

Originally Posted by gabby131 (Post 596699)
wow good one! :D

i change mine by.....uh.....echo -n 1 /sys/power/sr_vdd1_autocomp same in vdd2.

after 3 re-boots comes the problem that a re-flash is needed :eek:

and now im afraid to do that again, well if a pro will guarantee that it wont happen again if i re-enable smartreflex, maybe i'll give it another try.

Perhaps editing the pmconfig is more stable than the echo commands.

fhofer 2010-04-06 16:40

Re: SmartReflex- Battery Enhancement - The right way?
 
Anybody knows what the two individual SmartReflex properties are good for? There is some infornation what it does in general, but why are there two properties? Would it make sense to turn on just one of them? (This could be an option for those who have issues with both of the properties on) ...

craftyguy 2010-04-06 16:43

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

Originally Posted by fhofer (Post 597939)
Anybody knows what the two individual SmartReflex properties are good for? There is some infornation what it does in general, but why are there two properties? Would it make sense to turn on just one of them? (This could be an option for those who have issues with both of the properties on) ...

Here's what TI has to say about SmartReflex: link

fhofer 2010-04-06 16:48

Re: SmartReflex- Battery Enhancement - The right way?
 
@craftyguy: that is right, I have read the white paper. I am wondering why there are two settings that control SmartReflex in Maemo? Some people were reporting that the order of commands matter.. so perhaps it would be worth trying turning just one of them on?

egoshin 2010-04-06 16:56

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

Originally Posted by Venemo (Post 597444)
Perhaps editing the pmconfig is more stable than the echo commands.

May be not - if you have some problem then you may fall in constant reboot loop after pmconfig editing. So - test it manually first.

craftyguy 2010-04-06 16:56

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

Originally Posted by fhofer (Post 597961)
@craftyguy: that is right, I have read the white paper. I am wondering why there are two settings that control SmartReflex in Maemo? Some people were reporting that the order of commands matter.. so perhaps it would be worth trying turning just one of them on?

VDD typically stands for 'voltage drain drain' (positive voltage supply) in semiconductors, my guess is this device(omap) has 2 :)

egoshin 2010-04-06 16:59

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

Originally Posted by fhofer (Post 597961)
@craftyguy: that is right, I have read the white paper. I am wondering why there are two settings that control SmartReflex in Maemo? Some people were reporting that the order of commands matter.. so perhaps it would be worth trying turning just one of them on?

I reported - I just noticed a difference. I had no effect with regular order.

However, I didn't do a scientific measurement, and that may be a placebo. I am now in reverse order of setup.

(unfortunately, I recognized that OMAP 3430 power management in software is ... weel, not the best, so I am forced to live with unfinished assumptions...)

fhofer 2010-04-06 17:38

Re: SmartReflex- Battery Enhancement - The right way?
 
I have turned just /sys/power/sr_vdd1_autocomp to 1. I will see if I notice any difference. (Both of the settings on make my device act a little weird -- there are request timeouts on wifi that disappear with SmartReflex off).

Monniman 2010-04-24 16:55

Re: SmartReflex- Battery Enhancement - The right way?
 
I flashed my n900 with Lehto's 125-825MHz kernel and set the smart reflex on in pmconfig. The results are quite amazing. I also
set the ignore nice load to 1

echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load

renice 1 `cat /syspart/applications/standby/background/tasks`
renice 1 `ps | grep modest | cut -c1-5`


Now my batterylife has increased threefold. Used to get max 16 hours if on idle most of the time now the battery holds for 24h with average usage and over 34h on idle with 1 hour of talking and 1hour opf surfing and some texting.

fhofer 2010-04-26 06:46

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

echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load

renice 1 `cat /syspart/applications/standby/background/tasks`
renice 1 `ps | grep modest | cut -c1-5`
I have tried the above with the stock kernel, but it rendered modest unusable and audio shuttered when multitasking. I had to kill modest and rebooted to get back to normal...

egoshin 2010-04-26 19:55

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

Originally Posted by fhofer (Post 627887)
I have tried the above with the stock kernel, but it rendered modest unusable and audio shuttered when multitasking. I had to kill modest and rebooted to get back to normal...

You had something else. The niced applications never include audio stuff. And modest actually restarts itself then it goes to GUI mode and it loses "nice -1" value.

Note: I use only stock kernel.

xomm 2010-04-27 00:09

Re: SmartReflex- Battery Enhancement - The right way?
 
Just a note - I don't personally have battery problems, so I won't comment on that.

You should do statistically sound tests before claiming improvements in battery life, because you could be doing something akin to a "self-placebo." (For those who don't know what that is, it's a medical term, you think you're getting better results because you were told it would, when in fact, nothing has changed.)

noipv4 2010-05-30 20:03

Re: SmartReflex- Battery Enhancement - The right way?
 
Ok VDD1 compensates for CPU voltage.
VDD2 compensates for I/O pins voltages.

In my case smartreflex works on VDD1, while it fails with VDD2.


All times are GMT. The time now is 22:04.

vBulletin® Version 3.8.8