maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Battery consumption analysis (https://talk.maemo.org/showthread.php?t=43748)

gabby131 2010-03-24 16:27

Re: Battery consumption analysis
 
Quote:

Originally Posted by Rob1n (Post 580519)
I've had it enabled for several weeks now without a single crash. Guess I'm just lucky :D

hmmmm in what way you enabled it? by changing the values in /etc/pmconfig ? or by the 2 codes?

shadowjk 2010-03-24 16:32

Re: Battery consumption analysis
 
Quote:

Originally Posted by blue_led (Post 572220)
- it is a wrong initialization of driver for bq27200 ( i2dc device 0x55) or driver missing entirely even if it is activated by "CONFIG_W1_SLAVE_BQ27000=y" . bq27x00 chip is made in two bus variants bq27200 for i2c bus and bq27000 for hdq 1wire bus
so something is wrong in software, schematics make sense.

bq27200 chip is near blamed isp1707 usb transceiver chip

It's 0x55, because 0xAB and 0xAA contain the write/read bit, which Linux does not consider a part of the address. The read/write functions in code add the write/read bit so that what goes out on wire is an 8 bit 0xAA or 0xAB.

Rob1n 2010-03-24 16:52

Re: Battery consumption analysis
 
Quote:

Originally Posted by gabby131 (Post 580552)
hmmmm in what way you enabled it? by changing the values in /etc/pmconfig ? or by the 2 codes?

Both - I used the 2 codes first to test it out, then changed /etc/pmconfig to make the change persist across reboots.

gabby131 2010-03-24 17:16

Re: Battery consumption analysis
 
Quote:

Originally Posted by Rob1n (Post 580579)
Both - I used the 2 codes first to test it out, then changed /etc/pmconfig to make the change persist across reboots.

oh, so if i change the values, the power saving will be consistent and active even after reboots???

and is this done in xterm? cant cd to /etc/pmconfig, or im doing it the wrong way?

Rob1n 2010-03-24 18:52

Re: Battery consumption analysis
 
Quote:

Originally Posted by gabby131 (Post 580612)
oh, so if i change the values, the power saving will be consistent and active even after reboots???

and is this done in xterm? cant cd to /etc/pmconfig, or im doing it the wrong way?

If you edit the /etc/pmconfig file then the changes will persist across reboots, yes - you'll need to be root to do this though. The following should do it (if you've got rootsh installed) - make sure you type it in exactly though!:
Code:

sudo gainroot
echo "sr_vdd1_autocomp 1" >> /etc/pmconfig
echo "sr_vdd2_autocomp 1" >> /etc/pmconfig

Alternately, use vi, vim, mc, or leafpad as root to edit the file.

gabby131 2010-03-24 19:07

Re: Battery consumption analysis
 
Quote:

Originally Posted by Rob1n (Post 580806)
If you edit the /etc/pmconfig file then the changes will persist across reboots, yes - you'll need to be root to do this though. The following should do it (if you've got rootsh installed) - make sure you type it in exactly though!:
Code:

sudo gainroot
echo "sr_vdd1_autocomp 1" >> /etc/pmconfig
echo "sr_vdd2_autocomp 1" >> /etc/pmconfig

Alternately, use vi, vim, mc, or leafpad as root to edit the file.

thanks very much! you save my life again.

when i performed the codes and hit enter, i just came back at /home/user #,

does this mean it was successful or nothing happened???

EDIT: oh, then i reboot the device (in root, typed "reboot")

Rob1n 2010-03-24 19:18

Re: Battery consumption analysis
 
Quote:

Originally Posted by gabby131 (Post 580832)
thanks very much! you save my life again.

when i performed the codes and hit enter, i just came back at /home/user #,

does this mean it was successful or nothing happened???

EDIT: oh, then i reboot the device (in root, typed "reboot")

Yes, it doesn't output anything - you can do "cat /etc/pmconfig" to check that the file has been edited properly (you should see the sr_vdd.... lines at the bottom). After rebooting you can check that the changes are in place by running (you should get "1" back from each):
Code:

cat /sys/power/sr_vdd1_autocomp
cat /sys/power/sr_vdd2_autocomp


gabby131 2010-03-24 20:22

Re: Battery consumption analysis
 
Quote:

Originally Posted by Rob1n (Post 580855)
Yes, it doesn't output anything - you can do "cat /etc/pmconfig" to check that the file has been edited properly (you should see the sr_vdd.... lines at the bottom). After rebooting you can check that the changes are in place by running (you should get "1" back from each):
Code:

cat /sys/power/sr_vdd1_autocomp
cat /sys/power/sr_vdd2_autocomp


yup! thanks!!!! i ran those cat codes and they give me a 1 after hitting enter, and i see sr_vdd1_autocomp 1 and vdd2_autocomp 1 at the bottom after punching the cat /etc/pmconfig.

i also noticed from doing this, my ram usage goes down bout 5-10mb

UPDATE: yey!! so far not experiencing any reboots or issues!

gabby131 2010-03-24 21:30

Re: Battery consumption analysis
 
Quote:

Originally Posted by gabby131 (Post 580943)
UPDATE: yey!! so far not experiencing any reboots or issues!

awww!!! 2 unexpected reboots occurred!!! but i dont care!!! as long as nothing very weird happens on my device that i may worry of, i can take any reboots!! (hopefully not every minute though) :D:D:D

shady 2010-03-24 22:07

Re: Battery consumption analysis
 
yea i changed those settings in January, added to my batt life significantly, with no ill effects on performance, i dont know why it was disabled out of the box. hmm ... but regardless of that fact it worked.

how did your battgraph have the CPU statistics as well, was it in testing/devel? i only DL'd the version that was in the official maemo repo.


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

vBulletin® Version 3.8.8