Battery Working, but not Charging

Didik Setiawan ds at didiksetiawan.com
Tue Jul 19 05:42:04 UTC 2016


---- On Mon, 18 Jul 2016 19:17:56 +0700 Colin Law <clanlaw at gmail.com> wrote ----  
> As I asked last time please don't top post, it is the convention on  
> this list to insert replies at appropriate points in previous message.  
> Thanks.  
>   
> You *still* have not answered the question.  If you run the battery  
> down then, running Ubuntu, plug in the charger and leave it running  
> for a couple of hours, then boot to Windows does it show that the  
> battery is charged?  If so then the battery is charging when running  
> Ubuntu it is just the indicator that is not showing this.  Please make  
> sure you answer this question, it is difficult to help people who do  
> not answer questions.  
>   
> Also usually laptops have an led on the laptop itself that shows when  
> charging.  For example on mine this is off when the charger is not  
> connected, orange when it is charging and blue when it is charged.  If  
> yours has this then you may be able to see that it is charging when  
> running Ubuntu.  
>   
> Colin 
 
I once tried to plug in the charger while running Ubuntu, the battery not 
charging. Then I leave it for a long hours, after that boot into Windows. The  
capacity indicator remain the same as when I use Ubuntu. That event not happen 
when I do the opposite, I running Windows first, then use Ubuntu. The battery 
will charge. 
The led always on (with green light) when I plug into power source. Whether I 
running Ubuntu, Windows, enter BIOS, even the laptop in the shutdown state, the 
led is still on. 
 
---- On Mon, 18 Jul 2016 19:43:30 +0700 Ralf Mardorf <silver.bullet at zoho.com> wrote ----  
> On Mon, 18 Jul 2016 22:34:51 +1000, Karl Auer wrote:  
> >On Mon, 2016-07-18 at 19:11 +0700, Didik Setiawan wrote:  
> >> If I boot into Windows and I plug the ac adapter in, then the battery  
> >> indicator will always charging. That's not happen when I use  
> >> Ubuntu.    
> >  
> >Forget the indicator!  
> >  
> >Tell us: Does the battery charge when using Ubuntu, or not?  
> >  
> >We are trying to find out whether your problem is  
> >  
> >a) the indicator is not working as expected; or  
> >  
> >b) your laptop does not charge when Ubuntu is running; or  
> >  
> >c) both.  
>   
> Perhaps d), too?  
>   
> d) It's charging when using Ubuntu, but some software needs that much  
> resources, that the consumption is higher than the charging.  
>   
> ;)  
 
The battery will charge using Ubuntu, "only" after I reboot from using Windows. 
Then if I reboot the laptop, using Ubuntu again, the battery will not charge 
again. That's a strange case. 
 
---- On Mon, 18 Jul 2016 20:02:54 +0700 Peter Silva <peter at bsqt.homeip.net> wrote ----  
> OK, lets fix power usage first... (not worrying about indicator for now.)  
>   
> sudo apt-get install powertop  
>   
> sudo powertop  
>   
> This ranks stuff running in order of power consumption.  but not  
> obvious, for example, first line on my laptop is bogus, assigning all  
> hardware consumption to an ethernet interface.  so since it is hard to  
> interpret, please just  copy/paste the first five lines to get an idea  
> of the top few processes running.  
 
PowerTOP 2.8      Overview   Idle stats   Frequency stats   Device stats   Tunables                                      
 
Summary: 6120.9 wakeups/second,  6.8 GPU ops/seconds, 0.0 VFS ops/sec and 43.4% CPU use 
 
                Usage       Events/s    Category       Description 
            135.8 ms/s     2335.0       Process        /usr/bin/updatedb.mlocate 
             71.0 ms/s     1246.8       kWork          btrfs_endio_meta_helper 
             19.9 ms/s     978.9        Interrupt      [4] block(softirq) 
             94.1 ms/s     517.4        Process        /opt/teamviewer/tv_bin/TeamViewer_Desktop --IPCport 5943 --module 1 
              4.0 ms/s     282.0        Timer          tick_sched_timer 
 
 
> Generally:  
>   
> Do you have two graphics cards (i.e. Nvidia Optimus?) ?  
> Having it use intel by default, and using primusrun to only use nvidia  
> when needed will save a lot of power as well.  
 
I have only one graphic card which I currently use, Intel HD Graphics. 
 
didik at thinkpad:~$ lspci 
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) 
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 
--output omitted-- 
 
> How are your ACPI settings, if you a booting with ACPI=off... well  
> that's going to consume a lot.   Can you adjust screen brightness  ?  
> Need to know the specific brand and model of laptop to research solutions  
> as there are many variations in power management, ACPI settings and such.  
 
I leave my boot options untouched since installation. 
My laptop is Lenovo Thinkpad E420s. 
 
didik at thinkpad:~$ sudo dmidecode | grep -A 9 "System Information" 
System Information 
    Manufacturer: LENOVO 
    Product Name: 44014EA 
    Version: ThinkPad Edge E420s 
    Serial Number: MP0057L 
    UUID: FD2BC801-518B-11CB-8375-FA4DBCC02A1A 
    Wake-up Type: Other 
    SKU Number: Not Specified 
    Family: ThinkPad Edge E420s 
 
---- On Mon, 18 Jul 2016 21:35:56 +0700 Peter Silva <peter at bsqt.homeip.net> wrote ----  
> OK, to determine if really charging, then try this in a terminal:  
>   
> upower -i /org/freedesktop/UPower/devices/battery_BAT0  
>   
> Look at energy rate...  
>   
 
didik at thinkpad:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0  
  native-path:          BAT0 
  vendor:               SMP 
  model:                42T4929-42T 
  serial:               415 
  power supply:         yes 
  updated:              Tue 19 Jul 2016 07:25:39 PM WIB (18 seconds ago) 
  has history:          yes 
  has statistics:       yes 
  battery 
    present:             yes 
    rechargeable:        yes 
    state:               fully-charged 
    warning-level:       none 
    energy:              31.51 Wh 
    energy-empty:        0 Wh 
    energy-full:         34.31 Wh 
    energy-full-design:  46.4 Wh 
    energy-rate:         4.775 W 
    voltage:             16.086 V 
    percentage:          91% 
    capacity:            73.944% 
    technology:          lithium-polymer 
    icon-name:          'battery-full-charged-symbolic' 
 
---- On Mon, 18 Jul 2016 22:28:23 +0700 Martin Weinberg <martin.weinberg at comcast.net> wrote ----  
> Didik,  
>   
> I believe that the charging hardware on Thinkpads is OS independent.  
>   
> Lenovo provides a GUI for Windows to adjust the charge thresholds and  
> reset the battery level monitors (by running the battery to zero and  
> recharging).  This same functionality is provided in Linux/Ubuntu by  
> tlp.  However, I can see from your tlp-stat output that you have not  
> installed acpi_call.  This is not a problem, but acpi_call allows you to  
> adjust the Lenovo charging thresholds.  
>   
> Since you have not manipulated the charging thresholds under Ubuntu  
> (since you have not installed the acpi_call module that would allow  
> this), if the dang thing is charging under Windows, it will charge under  
> Linux.  
>   
> So my guess is that you are misunderstanding or have misconfigured the  
> battery indictor (somehow . . .) 
 
I have had thoughts like you, that charging hardware on Thinkpad laptop is not 
dependent on which OS we are running. But in my case, the battery only can be 
charge well when using Windows. 
I don't know about the configuration of battery indicator, but I never change 
that settings before. 
 
 ---- On Mon, 18 Jul 2016 22:33:02 +0700 Liam Proven <lproven at gmail.com> wrote ----  
  >  
 > Have you checked that the laptop's firmware is up to date? 
 >  
 
I don't know how to do that, but I will try to find out and check immediately for 
up to date firmware. 




More information about the ubuntu-users mailing list