[SOLVED] Battery status in i3status is incorrect...

So i3status suddenly seems to think my battery is fully charged at ~80%. At first I thought maybe my laptop's battery was going, but then I noticed if I run acpi -b when i3status is reporting full at ~80%, I receive the following:
Battery 0: Charging, 100%, until charged
This is the output of
cat /sys/class/power_supply/BAT1/uevent
POWER_SUPPLY_NAME=BAT1
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
POWER_SUPPLY_VOLTAGE_NOW=12321000
POWER_SUPPLY_POWER_NOW=295000
POWER_SUPPLY_ENERGY_FULL_DESIGN=56160000
POWER_SUPPLY_ENERGY_FULL=45470000
POWER_SUPPLY_ENERGY_NOW=45470000
POWER_SUPPLY_CAPACITY=100
POWER_SUPPLY_MODEL_NAME=42T4855
POWER_SUPPLY_MANUFACTURER=LGC
POWER_SUPPLY_SERIAL_NUMBER= 420
If i3status' battery percentage output is 100 * POWER_SUPPLY_ENERGY_NOW / POWER_SUPPLY_ENERGY_FULL... then the output I see should be correct
Anyone know what's going on here?
Last edited by Ownaginatious (2013-08-23 18:39:40)

I believe that it is telling you that it is as charged as it is going to get.  Looking at the last full value versus the design capacity, It would appear that your battery can only store 80% of what it could when it was new (current capacity is 4547/5616).  My 2 year old battery is about the same as yours  -- around 80% of design capacity.

Similar Messages

  • [solved] show battery status in PS1 not working correctly (script)

    Hey,
    I got this script to show the battery life of my laptop in my PS1:
    #!/bin/bash
    BATTERY=/sys/class/power_supply/BAT1
    REM_CAP=`cat $BATTERY/energy_now`
    FULL_CAP=`cat $BATTERY/energy_full`
    BATSTATE=`cat $BATTERY/status`
    CHARGE=`echo $(( $REM_CAP * 100 / $FULL_CAP ))`
    NON='\033[00m'
    BLD='\033[01m'
    RED='\033[01;31m'
    GRN='\033[01;32m'
    YEL='\033[01;33m'
    COLOUR="$RED"
    case "${BATSTATE}" in
    'Charged')
    BATSTT="$BLD=$NON"
    'Charging')
    BATSTT="$BLD+$NON"
    'Discharging')
    BATSTT="$BLD-$NON"
    esac
    if [ "$CHARGE" -gt "99" ]
    then
    CHARGE=100
    fi
    if [ "$CHARGE" -gt "30" ]
    then
    COLOUR="$GRN"
    fi
    if [ "$CHARGE" -gt "15" ]
    then
    COLOUR="$YEL"
    fi
    echo -e "${COLOUR}${CHARGE}%${NON} ${BATSTT}"
    I made it executable: chmod +x /home/kanikuleet/scripts/battery_status.sh
    Put this in my .bashrc file: PS1="[ \$(/home/kanikuleet/scripts/battery_status.sh) ] \u@\h:\w \$ "
    Built it: source ~/.bashrc
    Now I get this errors:
    /home/kanikuleet/scripts/battery_status.sh: Line 30: [: echo $(( $REM_CAP * 100 / $FULL_CAP )): integer expression expected
    /home/kanikuleet/scripts/battery_status.sh: Line 35: [: echo $(( $REM_CAP * 100 / $FULL_CAP )): integer expression expected
    /home/kanikuleet/scripts/battery_status.sh: Line 40: [: echo $(( $REM_CAP * 100 / $FULL_CAP )): integer expression expected
    My bash promt currently looks like this:
    [ echo $(( $REM_CAP * 100 / $FULL_CAP ))% ] kanikuleet@arch: ~ $
    I have acpi installed and BAT1 is my battery, I checked it.
    Can anyone help??
    Last edited by kanikuleet (2012-12-28 22:21:10)

    kanikuleet wrote:Works! Thank you
    In that case, please mark your thread as [solved] by editing the title of your post.

  • (SOLVED) Conky and battery status

    How come this will not work on my system:
    ${color red}$alignc Battery Information
    ${color lightgrey} Currently: $battery
    ${color lightgrey}$stippled_hr
    I have tried a dozen scripts for battery status and nothing works. Does anyone have a sure fire way to get some status from my battery?
    I am using a netbook, pretty standard stuff. I don't know why it won't work. I tried other commands and one returned "U" for unknown battery status and what not. How can I find out what is going on?
    edit:
    Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,70 BAT0}
    This displays 0% and an empty bar.
    I went ahead into /proc/acpi/battery and found BAT1 and no BAT0, so I changed the script and I get a percent now...
    This may be solved, but I am going to try the other functions to see if I can get the output I wanted in the first place.
    Why does Conky hate batteries?
    Last edited by Google (2010-07-02 07:16:26)

    "$battery" does not work because it assumes as default BAT0, which you don't have so it will have to be "$battery BAT1". See "man conky" for more info....

  • Missing Blackberry Battery Status Indicator

    I've looked all over the web, my instruction manual, the index inside the phone, and in still cannot find the meaning of this symbol in the middle of my battery bar. From what I've seen on the internet, its as almost as if it does not exist. I would probably believe so if it was not for the fact that I am staring at it right now as I type this. I have had problems with the USB port on it before and I am pretty sure that has something to do with it.  Also when Its plugged into the computer and the port and USB are  finally working in unison, the computer says that it is malfunctioned.
    The icon appears when I've tried to connect to it to a computer or even sometimes to an outlet. It looks like a C or parentheses with a scrunched up 3 sort of like this:
    C    3
    or
     (    3
    I was surprised that no one else has seen or inferred about this icon and even more surprised that a complete index of all battery status indicators would exist; including those for malfunctioned or damaged batteries.  Any help or recommendations to help me solve this problem is greatly appreciated.

    Hi silvaback75
    Can you send us a picture of this icon?
    Thanks
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Nokia e7 - belle update battery status

    Hi
    i upgraded my nokia e7 to nokia belle recently and I was very excited but after the update I found out that there no longer was a battery status showing the percentage left. I really liked the old battery status so you would know how much battery life is left. It is just a bit weird that a very good thing from the previous version is discontinued on the belle version. I'm sure many others would agree with me on this..
    Solved!
    Go to Solution.

    the battery level in the new structure has the same 7 levels... you can check it out just like that... not necessarily you would need a visible info on the battery level
    anyways
    All 7 parts filled up - 100%
    6- 80%
    5-65%
    4-50%
    3-35%
    2-20%
    1-10%

  • Battery status not updating

    I have recently replaced the battery for my IPhone5 after a crash. After that the battery status indicator is not dynamically updating. It updates only after every restart. I tried resetting all settings, updated to recent IOS7.1, restored several times. But of no use. Please guide.

    Hi,
    I have the same problem with my now replaced iPhone 3G with iOS4...
    I have this problem, when I charge my iPhone 3G with the charger, that was supplied with my iPad. And also the problem can only be solved, when rebooting the phone.
    When charging, the symbol shows the "flash"-sign in the battery to show, that the iPhone is charging and the symbol changes to the wall-connector-symbol, after the iPhone has fully charged. But when disconnecting the charger, the battery-symbol still shows empty, until I reboot.
    The problem occurs with the iPad charger, but it does not occur, when charging the iPhone inside my "JBL radial" soundspeaker-system.
    So I think about a bug in iOS4
    Regards,
    Florian

  • Wrong indivcation of Battery Status

    Respected Sir,
    I'm using the hp pavillion E-015tx laptop and purchased before two months .I have problem regarding the battery status. Earlier the laptop was giving the warnig of battery indication if the battery was remaning  15%. But nowdays the laptop is not giving the warning of the battery of remaning 15% (low battery) and and the laptop goes in sleep mode if the battery status is below the 40-50%  and laptop does'nt start till I plug my charger.
    This question was solved.
    View Solution.

    It seems the first place to start would be to test and calibrate your battery.  Please use this document to test and calibrate the battery in Windows 8.
    Let us know what the test says and if after calibrating the battery it more accurately shows how much time is left for the battery to be used.  Does that make sense?
    GeorgeFN
    I work on behalf of HP.

  • Battery status not updating when jacked

    With the latest update to iOS4 (4.01 is it?) I noticed something that's really bothering me.
    Whenever I charge my iPhone via a wall jack, the battery status image, both on the lockscreen and up in the corner, is frozen. If I was in the red it will stay the same.
    The only way I can see if the phone is charged is the fact that the small image up in the corner changes to show the wall plug as usual. However if I unplug the phone, it still shows an empty battery.
    This is solved by rebooting my iPhone.
    Also note that this does NOT happen if I charge it through my PC or MacBook USB ports.
    Why is this happening and how do I solve it?

    Hi,
    I have the same problem with my now replaced iPhone 3G with iOS4...
    I have this problem, when I charge my iPhone 3G with the charger, that was supplied with my iPad. And also the problem can only be solved, when rebooting the phone.
    When charging, the symbol shows the "flash"-sign in the battery to show, that the iPhone is charging and the symbol changes to the wall-connector-symbol, after the iPhone has fully charged. But when disconnecting the charger, the battery-symbol still shows empty, until I reboot.
    The problem occurs with the iPad charger, but it does not occur, when charging the iPhone inside my "JBL radial" soundspeaker-system.
    So I think about a bug in iOS4
    Regards,
    Florian

  • IPod shuffle voice over for battery status problem

    The voice over function for battery status doesn't work on my new Shuffle 4g.  The other voice over functions do work.
    I'm using Windows 7 (64bit).  I have Itunes 10.5 .  I down loaded the 64 bit version, voice over kit installer

    Hi Imyman,
    Apple has determined that the Apple Headphones with Remote included with the iPod shuffle (3rd gen) may fail under certain conditions. If your Shuffle has a certain serial number you can change your Headphones following this procedure:
    http://www.apple.com/support/headphones/replacementprogram/
    Hope this will solve your problem as it did for me.

  • When charging, the battery status from 95% suddenly jumps to 100%

    Hi Guys!
    I just bought my Xperia Z1 last month, i haven't full charge to 100% my battery since the the first 8H charging the time i bought. I always charge when the status 20% and below, but never flat. Now I noticed that the battery status from 95% suddenly jump on to 100% within a matter of seconds. 
     Please help.... don't know the cause, is my battery already damaged or spoiled?
    Thanks.
    Solved!
    Go to Solution.

    Well with any battery you need to cycle it completely once ina  while. Charging it from 20% back to 100% is actually detrimental if you do it on a regular basis.
    Sometimes let your phone dicharge completely then charge it completely to 100%.
    The issue you are facing however could also be due to the battery capacity being detected wrongly. 
    Try going to *#*#7378423#*#*  on your dialer and go to diagnostics and check battery health.. if it reads over 300000 then you are fine... Its not your battery. 
    Don't forget to give Kudos and / or mark the correct answer.

  • My battery status says check battery

    Hi everyone
    I have a macbook pro retina disp 13inch. i have a problem that based on battery bar menu it says me that check battery. I havent see this situation before. I made the last update from 10.9.1 to 10.9.2 and also made the security update called -002 then i started to see check battery quote in my battery info bar.
    my battery options are like this;
    Battery Information:
    Charge Information:
      Charge Remaining (mAh):          3073
      Fully Charged:          No
      Charging:          No
      Full Charge Capacity (mAh):          5111
      Health Information:
      Cycle Count:          147
      Condition: Check Battery
      Battery Installed:          Yes
      Amperage (mA):          -1132
      Voltage (mV):          11365
    Also i tried to finish my all battery and recharged fully again but i see again the check battery situation on the info bar. when i shut it down and reopen my mbook pro retina
    sometimes check battery writing dissappears but like 15 min later it comes again. What i can do ? What am i supposed to do please help me for this situation. Do i have to
    change my battery or doing another thing? Also i am out of warranty what will i pay for the battery for my MacBook Pro Retina display 13''?

    Did you try an SMC reset?
    http://support.apple.com/kb/HT3964
    Indicators
    After performing normal troubleshooting, these symptoms may indicate that an SMC reset could be necessary.
    Fans
    The computer's fans run at high speed although the computer is not experiencing heavy usage and is properly ventilated.
    Lights
    The keyboard backlight appears to behave incorrectly (on Mac computers that have this feature).
    The Status Indicator Light (SIL) appears to behave incorrectly (on Mac computers that have an SIL).
    Battery indicator lights, if present, appear to behave incorrectly (on portables that use non-removable batteries).
    The display backlight doesn't respond correctly to ambient light changes on Mac computers that have this feature.
    Power
    The computer doesn't respond to the power button when pressed.
    A portable Mac doesn't appear to respond properly when you close or open the lid.
    The computer sleeps or shuts down unexpectedly.
    The battery does not appear to be charging properly.
    The MagSafe power adaptor LED doesn't appear to indicate the correct activity.
    System performance
    The computer is running unusually slowly although it is not experiencing abnormally high CPU utilization.
    Application icons may "bounce" in the Dock for an extended amount of time when launched.
    Applications may not function correctly or may stop responding after being opened.
    Video
    A computer that supports target display mode does not switch into or out of target display mode as expected.
    A computer that supports target display mode switches into or out of target display mode at unexpected times.
    Port illumination
    The illumination around the I/O ports on a Mac Pro (Late 2013) does not activate when you move the computer.
    Resetting the System Management Controller (SMC)
    Resetting the SMC on Mac portables with a battery you can removeResetting the SMC on portables with a battery you should not remove on your ownResetting the SMC for Mac Pro, Intel-based iMac, Intel-based Mac mini, or Intel-based Xserve
    Additional Information
    The System Management Controller (SMC) is responsible for many low-level functions on Intel-based Macs. These functions include:
    Responding to presses of the power button
    Responding to the display lid opening and closing on portable Macs
    Battery management
    Thermal management
    The SMS (Sudden Motion Sensor)
    Ambient light sensing
    Keyboard backlighting
    Status Indicator Light (SIL) management
    Battery status indicator lights
    Selecting an external (instead of internal) video source for some iMac displays
    Note:  Resetting the SMC does not reset, or otherwise change, the contents of PRAM, which is also known as NVRAM on Intel-based Macs.
    Last Modified: Mar 26, 2014

  • Equium A60-191: What application controls battery status in system tray?

    I have had to re-install XP. This caused the loss of the drivers and quite probably other stuff I don't know about.
    One of the items missing seems to be the software or driver? for the battery. The battery no longer charges up to full power. The software that set in the system tray used to indicate the power status and whether it was ac or dc connected.
    Any suggestions what I need and where I can get it from to fix this problem, please?

    Hi
    In my knowledge you dont need any drivers or software to charge the battery to full power. Only what you need is the Toshiba Power saver utility.
    This utility is very useful because you can configure the different power modes for a different notebook usage. For example if you have disconnect the AC adaptor from the notebook the Power saver will automatically switch to the power mode which was configured for the battery usage.
    Such modes help to take care of battery and increases the battery life time and it shows a battery status in the task bar
    But it has nothing to do witch the battery charging.
    In my user manual I have found many info about the battery and how to handle the battery usage. I think the same information you will find in your user manual. Check it.
    The last possibility could be a battery malfunction.
    But in such case only a battery replacement will solve your issue.
    If you want you can try to check if the same happens with the new battery.

  • Esprimo U9200 - Battery status problems - Fix Found, Help needed!

    After months with this bug, and unsuccessfully searching for a solution, it seems like I found one in the edubuntu wiki.
    But I need help, seems this solution is based on the ubuntu distro tools, and since Im not such an advanced user of (Arch) Linux, therefore I don't know how to adapt this solution to Archlinux.
    From the related entry in the edubuntu wiki: https://wiki.edubuntu.org/LaptopTesting … primoU9200
    Battery: the BIOS DSDT has a bug, which causes to incorrectly show the Charged and Discharging states. The fix is easy. First we'll get the DSDT table and dissasemble it:
    sudo apt-get install iasl
    cd
    mkdir DSDT
    cd DSDT
    sudo cat /proc/acpi/dsdt > dsdt.dat
    iasl -d dsdt.dat
    gedit dsdt.aml
    Ok, now you should have your dsdt file open. So let's fix it, look for the following code in Device (BAT0), under the Method (UPBS, 0, NotSerialized) subsection:
         If (LEqual (Local0, 0x02))
             And (Local7, One, Local0)
             If (LEqual (Local0, One))
                 And (Local7, 0x80, Local1)
                 If (LEqual (Local1, 0x80))
                     Or (Local4, 0x02, Local4)
                 Else
                     Or (Local4, One, Local4)
    Ok, now let's fix it. Else code is misplaced, it has to be moved out of the If (LEqual (Local0, One)). So, it should be:
         If (LEqual (Local0, 0x02))
             And (Local7, One, Local0)
             If (LEqual (Local0, One))
                 And (Local7, 0x80, Local1)
                 If (LEqual (Local1, 0x80))
                     Or (Local4, 0x02, Local4)
                 //ELSE WAS HERE
             // ELSE CORRECT PLACE
             Else
                 Or (Local4, One, Local4)
    Now, simply save and close gedit, and let's continue:
    cd
    cd DSDT
    iasl -tc dsdt.dsl
    sudo cp dsdt.aml /etc/initramfs-tools/DSDT.aml
    sudo update-initramfs -u -k all
    So, that's it. What we've done is recompile the DSDT including the fix, moving it into the initramfs and then recompiled the initramfs so that the custom DSDT gets loaded. After rebooting the battery status should be always ok.
    I managed to install iaml, disassemble the DSDT from /sys/firmware/acpi/tables/DSDT (and not the pathe the wiki says) and do the changes the wiki says, and recompile it, but Im not really sure of what to do after that.
    The commands to make the initramfs and the configuration files I probably need to modify to include my patch are different. Any help on those? I marked the lines I need help with as bold. Thanks.
    Last edited by Dj_kourampies (2011-03-30 05:10:30)

    I found how to do it with initramfs, but I also discovered that custom DSDTs through initramfs are no longer supported since kernel 2.6.30.
    So I had to recompile the kernel, including the custom DSDT in the kernel build. Sadly Im not so good with ABS so I just modded the original kernel26 package. IIt works perfectly. hope that sometime soon I ll manage to make a PKGBUILD for a kernel26-u9200 package.

  • Battery status showing "not charging" when power adapter is plugged in

    I just bought a brand new Magsafe adapter 60w for my macbook but it seems that when i plugged in to my macbook, the battery status showed "not charging".  I have to disconnect and plug in again.  This also happened when I used my previous power adapter, that is why I got a new one.  Is this a common problem?  Please advise what could be done.

    Hi
    Try resetting the SMC. This sometimes solves this type of problem, in fact, it's listed as one of the reasons why you should try this:
    http://support.apple.com/kb/ht3964
    Bob

  • How to reset battery status in menu bar?

    After upgrading to 10.5.5 I experienced sudden loss of performance with both of my batteries.
    Overnight the battery yielded only 45 min, and the recharge time was usually about 40 min as well.
    As a result of frustration, I decided to crack open the case of 1 battery and connect a 12V 20W bulb to fully discharge the battery.
    Possibly as a result of the deep discharge, the battery took 6 hrs to recharge, and now yields approx 3-4 hrs of power.
    HERE IS THE PROBLEM. The battery status in the menu bar does not seem to reflect the battery's newly found performance.
    It keeps says "40 min." left, and when it runs out of minutes, it displays: "Calculating ... remaining"
    The same odd behaviour occurs when charging the battery. It says: "35 min" to full charge, and when it runs out of minutes it displays: "Battery finishing charging"
    MOREOVER, yesterday, the low level power indicator appeared, but the computer kept working for another 1.5 hrs before going to sleep.
    Finally the System profiler shows this information
    Battery Information:
    Battery Installed: Yes
    First low level warning: No
    Full Charge Capacity (mAh): 1661
    Remaining Capacity (mAh): 1361
    Amperage (mA): -1203
    Voltage (mV): 11441
    Cycle Count: 71
    After the deep discharge, the Full Charge capacity jumped form 640 to 1661.
    That's good, isn't it?
    But how can I reset the battery status in the menu bar to reflect the actual performance of the
    battery? Or did the deep discharge damage something?
    Regards

    I talked to Apple repeatedly and they refused to replace the battery in spite of the many good arguments I brought forward. Their only argument is that the battery is old (was shipped in 2006)
    I even requested them to ask their own technicians whether
    it is normal for a battery with only 71 cycles to discharge so soon.
    My request was declined.

Maybe you are looking for

  • How to create a New form field button.

    Hi there. I have this form that allows the admin and or client to change their Business details and on that form there is a field (text) that they can fill out their product detail and price. I wanted to have a button to create another form field (to

  • Operating inside an Xserve is a joy

    I just finished installing a RAID card into one of our Intel-based Xserves and the engineering of the Xserve is just amazing. The way power supplies and drives just slide out then right back in with just the right amount of oomph is cool. Installing

  • Characteristics Display in KE30

    Hi, I have a problem regarding Displayed in characterestics in KE30 reports. The characterestics material description is truncated ( ex: u201Cthis is vendor no of materialu201D, Iu2019m getting u201C this is vendor no ofu201D . I have changed the cha

  • How to transfer photos from ipad to new itunes

    Hi, Iam having a question. I had an ipad with 3g. lots of datas we stored thru itunes from our laptop. unfortunately our laptop was corrupted and we lost all our datas incl. itunes. we lost all photos in the laptop. the only datas we had is in the ip

  • Need some help with Java crashing IE.

    Ok, had this problem for some time now, started when was useing microsofts java, it would crash my IE at random points whenever a java applet is running. Upgraded to sun's java but the problems still here along with errors on HD. Changed my HD thinki