power measurement sensors - Google Pixel 3 Questions & Answers

Hello,
I am currently doing a project on pixel 3,
I was wondering if there is any power measurement sensors on the board,
Also instead of using hardware is there anyway we can get the power value of the battery?
I am trying to measure each apps' power consumption but I couldn't find a way to get the data.
Besides I learned that in sys/cat class/power_supply/battery/ there is a file called current_now,
but I am not sure what is this current.
Any idea?
Thanks!

Related

Help: Batter savings on car mounted tablet

Hello,
I wanted to get some suggestions on how i can save battery power on my Xyboard 10.1" Verizon LTE tablet mounted on the dash of my car.
Running Android 4.0.4.
It's power is USB hardwired to a 3v plug (done professionally by local shop) that only gets power when i turn my car on.
I'm using Tasker to launch tasks based on it's power state.
USB power off:
- mobile data off
- wifi off
- bluetooth off
- kill app Sirius
- kipp app Poweramp
- go home
- screen off
USB power on:
- wait 1 second
- mobile data on
- wifi on
- bluetooth on
- toggle bluetooth
- toggle bluetooth (to make sure it connects to bluetooth audio receiver attached to car's stereo headunit)
- launch app Sirius
Is there a "super sleep" mode that i can launch from tasker that will shut everything down except for a trickle of the Android OS listening for a wakeup command?
I noticed under Tasker's display actions these 2 options:
- Lock
- System Lock
does anyone know what they do? Will activating these conserve battery power?
I'm basically asking how to put my tablet into the deepest sleep possible, while still allowing it to wakeup with USB charging power on.
many thanks!
Spending such a high percentage of time at 100% battery charge is actually bad for the battery. So, whether or not you run on battery power, you will inevitably notice a decrease in battery life over time.
If you're not going to use your car for an extended period of time, you could power the tablet off, but you probably already knew that.
Do you leave the tablet mounted in the car at all times, or do you take it with you like a cell phone?
(Sorry, I do not know the answers to your questions about Tasker.)
post-mortem said:
Spending such a high percentage of time at 100% battery charge is actually bad for the battery. So, whether or not you run on battery power, you will inevitably notice a decrease in battery life over time.
If you're not going to use your car for an extended period of time, you could power the tablet off, but you probably already knew that.
Do you leave the tablet mounted in the car at all times, or do you take it with you like a cell phone?
(Sorry, I do not know the answers to your questions about Tasker.)
Click to expand...
Click to collapse
Interesting point about keeping battery at 100%...makes sense.
i leave the tablet in the car always...the mounting bracket has a keyed lock.
however, even after i turn off data,wifi,gps,etc, i still loose 10% battery over a 12hr period. that's very acceptable.
Do you know of an app that puts the phone/tablet into deep sleep (instead of me using tasker to turn all off)?
chumboy said:
Interesting point about keeping battery at 100%...makes sense.
i leave the tablet in the car always...the mounting bracket has a keyed lock.
however, even after i turn off data,wifi,gps,etc, i still loose 10% battery over a 12hr period. that's very acceptable.
Do you know of an app that puts the phone/tablet into deep sleep (instead of me using tasker to turn all off)?
Click to expand...
Click to collapse
improve system Parameters.improve cpu Parameters
onexuan said:
improve system Parameters.improve cpu Parameters
Click to expand...
Click to collapse
huh? can you explain more?

GALAXY Note 10.1 brightness problem

I have problem on my Note 10.1,.when is my battery on 5 % i get low brightness.Does anyone know how to fix this,to set brightness on max when is battery low????
Samsung galaxy note 10.1 n8000 4.1.2
dekar123 said:
I have problem on my Note 10.1,.when is my battery on 5 % i get low brightness.Does anyone know how to fix this,to set brightness on max when is battery low????
Samsung galaxy note 10.1 n8000 4.1.2
Click to expand...
Click to collapse
that's a feature. Charge it
shaun298 said:
that's a feature. Charge it
Click to expand...
Click to collapse
how???? im unable to change brightness when battery is 5 %
dekar123 said:
how???? im unable to change brightness when battery is 5 %
Click to expand...
Click to collapse
Dud, just charge it up.
Aluyi said:
Dud, just charge it up.
Click to expand...
Click to collapse
It's not a solution,my chinese 9` inch tablet whith 5 % off battery could stand mabye 20 minutes,is that on all note 10`1 tablets???
Does anyone know how to get full brightness when my battery is 5 %???????
There is no way to change it.
It propably protects the battery to become too empty without getting your device plugged in time. "Too empty" means that sometimes if you drain your litium battery empty totally, it wont start to charge it at all. So it is there for protecting you and your device without having next problem not being able to charge it.
Sent from my GT-N8000 using Tapatalk 4
enigma_x said:
There is no way to change it.
Click to expand...
Click to collapse
Have you ever investigated this subject that you are so sure? If you cannot do it - don't assume that no one can.
I don't also see any relation between dimming the screen and protecting the battery of getting broken. If 5% level is a level on which the battery should be charged because of the damage risk, then it would be absurd to dim the screen (ie take an action aimed at saving the remaining power so the user can work a few minutes longer on the last remaining 5% until it reaches 0 or 1% = drain battery even more = in your theory: increasing the risk of the damage even more), and not to turn off the device at all. Be aware, that Samsung indeed implemented a protection aimed to secure the user of the risk of breaking the battery (well, I don't think it's the clue anyway - iI guess the main purpose is in preserving user of data loss/filesystem corruption, which is possible to occur when the system is being shutdown in an "immediate" way, without chance to perform shutdown sequence properly) due to full discharge, but it is triggered on 0 - 1% level and is resulting in starting a "regular" system shutdown, aimed mainly to save all the working data before user loses it *** See comment at the very end of my post for additional info about changing this behavior, which is confirmed to work by myself...
It is almost ALWAYS possible to mod behavior of the system, especially by decompiling system apps and modyfing smali, which is not extremely difficult/impossible by the way, as the community has released such a solutions for many issues/feature requests, concerning even n8000 itself (ink lockscreen, syscope disable, power menu, flashable themes...).
In this case, I can see another possibility, which is even less intrusive to the system; AFAIR the percentage level of 5% is not embedded in some system or framework app, but it is defined in one of the system's apps preferences (guess settings provider? dont remember...), in sqlite database. And sqlite database can be easily accessed and its content can be modified by sqlite tools, ie sqlite3 binary from command line, and even some apps from play store. Then, you shall be able to lower the value to, for example, 1%, so the screen backlight will be turned off with further delay, ie. at REALLY critical power level of 1%..
EDIT: Didn't found above setting, dont have time for this, but found another one (at database lying at com.android.provider.settings) - "dim_screen" which is set 1 by default. Maybe changing it to 0 with any SQL editor will force NOT to dim screen at all.
An for the begin, I have a solution that is very very very possible to work...
As for now, I have not tested it, especially if the critical battery level setting (default 5%) has direct relation to the battery level on which screen is dimmed, but I am ALMOST sure about it, as the crtitical level setting that I am talking about (no matter where it is stored...) is recognized system-wide.
Oh, almost forgot, the solution!!!
Install Xposed Framework (search for it on xda if u dunno what it is) + module XBatteryThemer - apart of other options, it has the option to lower critical battery level (as well as two other levels, which determine displaying the low battery alert popup) to as low as 1%. Your screen shall no longer dim at 5%.
*** actually, there is another one Xposed module (CriticalBatteryShutdown, or something...?) which can force the device not to turn off when battery reaches some level between 0 and 1%, which is arbitrary action by default. With this mod the device is working untile theres really no power left, which sometimes can give you additional 10 minutes. A
dekar123 said:
Does anyone know how to get full brightness when my battery is 5 %???????
Click to expand...
Click to collapse
Please correct me if I´m wrong, does that make sense to you if your battery is 5% and you thinking of raising the slider higher ? Maybe you should check your energy saving settings. My two cents.
esgie said:
Have you ever investigated this subject that you are so sure? If you cannot do it - don't assume that no one can.
I don't also see any relation between dimming the screen and protecting the battery of getting broken. If 5% level is a level on which the battery should be charged because of the damage risk, then it would be absurd to dim the screen (ie take an action aimed at saving the remaining power so the user can work a few minutes longer on the last remaining 5% until it reaches 0 or 1% = drain battery even more = in your theory: increasing the risk of the damage even more), and not to turn off the device at all. Be aware, that Samsung indeed implemented a protection aimed to secure the user of the risk of breaking the battery (well, I don't think it's the clue anyway - iI guess the main purpose is in preserving user of data loss/filesystem corruption, which is possible to occur when the system is being shutdown in an "immediate" way, without chance to perform shutdown sequence properly) due to full discharge, but it is triggered on 0 - 1% level and is resulting in starting a "regular" system shutdown, aimed mainly to save all the working data before user loses it *** See comment at the very end of my post for additional info about changing this behavior, which is confirmed to work by myself...
It is almost ALWAYS possible to mod behavior of the system, especially by decompiling system apps and modyfing smali, which is not extremely difficult/impossible by the way, as the community has released such a solutions for many issues/feature requests, concerning even n8000 itself (ink lockscreen, syscope disable, power menu, flashable themes...).
In this case, I can see another possibility, which is even less intrusive to the system; AFAIR the percentage level of 5% is not embedded in some system or framework app, but it is defined in one of the system's apps preferences (guess settings provider? dont remember...), in sqlite database. And sqlite database can be easily accessed and its content can be modified by sqlite tools, ie sqlite3 binary from command line, and even some apps from play store. Then, you shall be able to lower the value to, for example, 1%, so the screen backlight will be turned off with further delay, ie. at REALLY critical power level of 1%..
EDIT: Didn't found above setting, dont have time for this, but found another one (at database lying at com.android.provider.settings) - "dim_screen" which is set 1 by default. Maybe changing it to 0 with any SQL editor will force NOT to dim screen at all.
An for the begin, I have a solution that is very very very possible to work...
As for now, I have not tested it, especially if the critical battery level setting (default 5%) has direct relation to the battery level on which screen is dimmed, but I am ALMOST sure about it, as the crtitical level setting that I am talking about (no matter where it is stored...) is recognized system-wide.
Oh, almost forgot, the solution!!!
Install Xposed Framework (search for it on xda if u dunno what it is) + module XBatteryThemer - apart of other options, it has the option to lower critical battery level (as well as two other levels, which determine displaying the low battery alert popup) to as low as 1%. Your screen shall no longer dim at 5%.
*** actually, there is another one Xposed module (CriticalBatteryShutdown, or something...?) which can force the device not to turn off when battery reaches some level between 0 and 1%, which is arbitrary action by default. With this mod the device is working untile theres really no power left, which sometimes can give you additional 10 minutes. A
Click to expand...
Click to collapse
Did I say that 5% is the minimum level? No, I didnt. All I said it is, it gives you more time and IF you drain your battery EMPTY, it may not charge. Of course there are self-protection manager already, but as you know, they dont always work as they should. There are several questions on net what to do when the phone doesnt start charging because they drained the battery to a state to auto-shut off. I dont understand why anyone would like to drain the battery almost empty and in a bad scenario you have a dead battery. Will it happen with your device? Maybe or maybe not. And it is not even healthy for a lithium battery to let it full disharged/cycled on everytime.
And yes I have read that there are apps that allows you to change this but only if your device is rooted. Never tried, mine is not rooted.
This will explain it very well: http://batteryuniversity.com/learn/article/charging_lithium_ion_batteries
Sent from my Galaxy Note 10.1 (N8000).
---------- Post added at 07:01 PM ---------- Previous post was at 06:55 PM ----------
Aluyi said:
Please correct me if I´m wrong, does that make sense to you if your battery is 5% and you thinking of raising the slider higher ? Maybe you should check your energy saving settings. My two cents.
Click to expand...
Click to collapse
No, you cannot set the brightness by a slider when the battery level is 5%. It automatically goes to a state to save the battery. It is built in the system.
Sent from my Galaxy Note 10.1 (N8000).

Battery Monitoring

I have noticed on my OPO that the application "Battery Monitor Widget" doesn't appear to have access to accurate battery information, including the size and the recharge/discharge rate. Instead you have to configure it manually for the size and tell it to estimate the discharge/recharge rate. From a bit of testing, it doesn't even appear that the OS itself has a good view of the battery, where if you have enough applications drawing enough power, and not enough power feeding the phone, it won't even show as being connected to USB power, and it will estimate if it is on AC or USB power apparently based on how much the recharge rate is.
My first question is if anybody knows if this is a software only issue, where additional hardware support needs to come in an update. Alternatively, are there any other tools that allow accurate monitoring of power state? Thanks!
ebrandsberg said:
I have noticed on my OPO that the application "Battery Monitor Widget" doesn't appear to have access to accurate battery information, including the size and the recharge/discharge rate. Instead you have to configure it manually for the size and tell it to estimate the discharge/recharge rate. From a bit of testing, it doesn't even appear that the OS itself has a good view of the battery, where if you have enough applications drawing enough power, and not enough power feeding the phone, it won't even show as being connected to USB power, and it will estimate if it is on AC or USB power apparently based on how much the recharge rate is.
My first question is if anybody knows if this is a software only issue, where additional hardware support needs to come in an update. Alternatively, are there any other tools that allow accurate monitoring of power state? Thanks!
Click to expand...
Click to collapse
I noticed the same thing. Mah shows 0 usually. I was also looking for an alternative, but i guess an update will fix it.
Change the battery monitoring setting to reverse mA. You can also manually input the capacity of the battery.
Sent from my One using XDA Free mobile app
randaddy said:
Change the battery monitoring setting to reverse mA. You can also manually input the capacity of the battery.
Sent from my One using XDA Free mobile app
Click to expand...
Click to collapse
It may just be at random, but when I set reverse mA, I found that the system wouldn't go into deep sleep while charging, which slowed down charging significantly. I'm also pondering what this actually means (the reverse mA) as this implies it has data that it is reversing in some way.
ebrandsberg said:
I have noticed on my OPO that the application "Battery Monitor Widget" doesn't appear to have access to accurate battery information, including the size and the recharge/discharge rate. Instead you have to configure it manually for the size and tell it to estimate the discharge/recharge rate. From a bit of testing, it doesn't even appear that the OS itself has a good view of the battery, where if you have enough applications drawing enough power, and not enough power feeding the phone, it won't even show as being connected to USB power, and it will estimate if it is on AC or USB power apparently based on how much the recharge rate is.
My first question is if anybody knows if this is a software only issue, where additional hardware support needs to come in an update. Alternatively, are there any other tools that allow accurate monitoring of power state? Thanks!
Click to expand...
Click to collapse
I heard that "Kitkat" has changed their policy so that any battery monitor apps have no any more rights to read the figure of battery information.
But, the solution, as per what i experience, is to download Xposed Installer, and then there is a module named "Enable BATTERY_STATS for KitKat", download and activate it. After that, any apps with battery monitor function can be executed sucessfully.
wskenting said:
I heard that "Kitkat" has changed their policy so that any battery monitor apps have no any more rights to read the figure of battery information.
But, the solution, as per what i experience, is to download Xposed Installer, and then there is a module named "Enable BATTERY_STATS for KitKat", download and activate it. After that, any apps with battery monitor function can be executed sucessfully.
Click to expand...
Click to collapse
As of the newest CM 11S build and battery monitor widget, it appears the issues have been resolved, and the battery data appears to be more accurate. This may require root however.
And there is a helper app which you need to install. As far as I recall
Send from OnePlus One using Tapatalk

Question Registering ACC shutoff

I'm getting up to speed with these units (or specifically a 7862 unit) and would like to find a way to capture the unit losing ACC power or power. I would like to understand the trigger for the count down when power is off and then there can be the 3 second dealy, 10 second delay etc.
Initially I just want to capture that in Macrodroid or Automate or similar without root.
I am also happy to hear any 'left field' thinking on how I might be able to capture the loss of power / turning off the car key in an macro style software.
ludditefornow said:
I'm getting up to speed with these units (or specifically a 7862 unit) and would like to find a way to capture the unit losing ACC power or power. I would like to understand the trigger for the count down when power is off and then there can be the 3 second dealy, 10 second delay etc.
Initially I just want to capture that in Macrodroid or Automate or similar without root.
I am also happy to hear any 'left field' thinking on how I might be able to capture the loss of power / turning off the car key in an macro style software.
Click to expand...
Click to collapse
Tasker allows you to detect the power state (source) in order to trigger actions.
Capturing the ACC_OFF and ACC_ON broadcast is no longer possible after Android 7 due to improved security in Android. Only "same signed" system apps can use that broadcast.
You can never create an app as FYT will never share their key.
I can think of 3 options:
Or to use Xposed on Android >=8 (but that requires a rooted unit and Xposed, and rooting gives issues with Google Assistant and Google voice-feedback on FYT units)
Or to use the USB unmount broadcast as during the "go to sleep" function that broadcast is generated and also on Android 10 that one can still be used to make sure that mass storage devices can be correctly unmounted.
Or to use the nokill function (actually the kill_all method) in the main server app. The nokill option is simply a "one liner" deactivation of the java kill_all method. An option would be to rewrite that method "to start something" that can be used to do what you want (but in that case it is better to create a "hook" in Xposed on that method. That would be easier and cleaner, provided you get Xposed working. And beware of bricks when installing Xposed!).
ludditefornow said:
I'm getting up to speed with these units (or specifically a 7862 unit) and would like to find a way to capture the unit losing ACC power or power. I would like to understand the trigger for the count down when power is off and then there can be the 3 second dealy, 10 second delay etc.
Initially I just want to capture that in Macrodroid or Automate or similar without root.
I am also happy to hear any 'left field' thinking on how I might be able to capture the loss of power / turning off the car key in an macro style software.
Click to expand...
Click to collapse
What's the specific use case? What do you want to do before the head units goes to sleep?

Mobile devices, charge management settings

Hi there,
I am a newbie and I have read on different web sites that one have to take care of the mobile device battery to avoid hasty weakening.
For example search on your browser “mobile device battery charging best practices”.
I have some technical hardware questions:
- In the electronic charging module, is there a control to switch ON/OFF by software the power to charge the battery.
- If YES, what is the leakage current when OFF, relatively to the nominal charging current and the device consumption?
- Is it possible to control the charge current by software?
- As the devices have in stock its own battery voltage detection, is the values readable by software. I mean can the developers use them in the ROM?
- To sum up, why there is no charging management in the setting of the custom ROMs? I mean set the current and time by settings in the ROM.
Thank you to share your knowledge.
MrNice said:
Hi there,
I am a newbie and I have read on different web sites that one have to take care of the mobile device battery to avoid hasty weakening.
For example search on your browser “mobile device battery charging best practices”.
I have some technical hardware questions:
- In the electronic charging module, is there a control to switch ON/OFF by software the power to charge the battery.
- If YES, what is the leakage current when OFF, relatively to the nominal charging current and the device consumption?
- Is it possible to control the charge current by software?
- As the devices have in stock its own battery voltage detection, is the values readable by software. I mean can the developers use them in the ROM?
- To sum up, why there is no charging management in the setting of the custom ROMs? I mean set the current and time by settings in the ROM.
Thank you to share your knowledge.
Click to expand...
Click to collapse
Maybe my questions are too technical. So other questions:
1- In a good working device, when it beep or lights to ask charge, is the battery at 0% + a bit OR is the battery at 30% + a bit?
2- In a good working device, when it beep or lights to say "charged, please disconnect", is the battery at 100% OR is the battery at 80%?
3- Why should one to disconnect the device after charge? What is the cycle (in time or %) charge/discharge that will damage the battery?
Here a good post that give some info but doesn't answer my questions.

Categories

Resources