General TC > General TC Talk

battery depleted too fast with just firefox + flwm

<< < (4/5) > >>

nick65go:

--- Quote from: jazzbiker on May 24, 2020, 02:16:10 PM ---By the way, results of the governor job can be checked in

--- Code: ---cat /sys/devices/system/cpufreq/policyX/stats/time_in_state

--- End code ---

--- End quote ---
Thanks. I think you use another tinycore kernel version, because for me the path is
--- Code: ---tc@box:~$ cat /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state
1800000 11498
1600000 4323
1400000 10918
1200000 63785
1000000 1078128
tc@box:~$
--- End code ---
anyway is near 94% in lower frequency.

nick65go:
wow, just started powertop again, after fixed guvernator to powersave:

--- Code: ---The battery reports a discharge rate of 8.95 W
The power consumed was 171 J
The estimated remaining time is 2 hours, 19 minutes

--- End code ---

nick65go:
Test finished. With wire(cable) network, using the lower CPU frequency (1GHz) forced by governor = powersave, with only firefox running (with 1-3 tabs) and reading just text (httml docs), and all tricks suggested by powertop (to sleep not used devices): battery depleted in 2h 24' (144 minutes from 100% until 4%).
it is similar with win10 (156 minutes from 100% until 7%). it seams that on laptop win10 is better by default to manage the power consumption.

PS: I do not try to think about how fast laptop will shut-down if is on wireless, with sound watching a movie.

jazzbiker:

--- Quote from: nick65go on May 24, 2020, 05:31:11 PM ---
--- Quote from: jazzbiker on May 24, 2020, 02:16:10 PM ---By the way, results of the governor job can be checked in

--- Code: ---cat /sys/devices/system/cpufreq/policyX/stats/time_in_state

--- End code ---

--- End quote ---
Thanks. I think you use another tinycore kernel version, because for me the path is
--- Code: ---tc@box:~$ cat /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state
1800000 11498
1600000 4323
1400000 10918
1200000 63785
1000000 1078128
tc@box:~$
--- End code ---
anyway is near 94% in lower frequency.

--- End quote ---

Hi, nick65go!

Sorry, it was a typo. My bad, I was browsing /sys with mc and didn't checked the command, just typed it here. You caught the idea, nevertheless it is wrong to propose untested commands, this can cause unexpected consequencies. Sorry.

And yeah! testdrive was exciting! My congratulations! You've prolonged the battery life more than twice!
Thanks a lot for spending Your time and battery (no one lives forever, and batteries too ), I hope this was interesting and usefull for many readers, and will make our overheated world a little bit cooler.

Cheers :)

nick65go:
@jazzbiker: Thank you for your kind words! :)
Now that I know what commands to issue, I try to write a script for my laptop, to be executed from /home/tc/.X.d/If someone else what to publish a more generic script, I will gladly test it.Basically it is about to run the script with a parameter ("auto" for battery, or "on" for power cable), something like
--- Code: ---echo $1 >  /sys/bus/pci/device/*/power/control
--- End code ---
where * could eventual be restricted to some mask like 0000:??:??.? or 0000:##:##.#

and add (maybe redundant, but worth to have it):
echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs'echo 'auto' > '/sys/block/sd?/device/power/control'
echo 'med_power_with_dipm' > '/sys/class/scsi_host/host?/link_power_management_policy'
echo 'auto' > '/sys/bus/i2c/devices/i2c-?/device/power/control'
echo 'auto' > '/sys/bus/usb/devices/?/power/control'
echo '1' > '/sys/module/snd_hda_intel/parameters/power_save'

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version