Discussion:
Battery Working, but not Charging
Didik Setiawan
2016-07-15 03:23:41 UTC
Permalink
Dear All,

I have installed Ubuntu 16.04 64 bit on my Thinkpad laptop. Everything worked fine out of the box, except for the battery. The battery indicator on tray icon shows that battery working, but after wait for amount of time, it does not add the percentage of its capacity. I check with another way, using acpi command, it gives the following results:

$ acpi
Battery 0: Unknown, 30%

The battery was normal if i switch to Windows. It could be charged using Thinkpad app on Windows. But, problem occured again when I using Ubuntu.
I have searched through google, found some cases with same problem but none of them have an obvious solution.
So, I want to ask question, the problem when I using Ubuntu come from userspace or kernelspace?
As information, I've even tried to use vanilla kernel v4.6.2, but the result is nothing. How can I try to fix them?

Thanks.
Didik Setiawan
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Martin Weinberg
2016-07-15 13:28:35 UTC
Permalink
I've seen many Thinkpads running 14.04 through 16.04 with out any
battery issues. I'm familar with both an X220 and an T440s and they
both work correctly. Specifically, the indicator-power panel app does
what it should.

The "Unknown" state is not necessarily a problem; for newer Thinkpads,
the acpi module isn't able to determine the state from the reported
battery info. For my X220, setting the thresholds (with tlp) causes acpi
to report "Unknown" when the charging stops at the desired threshold. I
suppose that acpi module determines that the battery is not full, but
the charge is not increasing and calls it "Unknown". Newer kernels seem
to call this "Unknown (threshold effective)", the last bit, I assume, to
provide a clue to the user about the cause of the "Unknown".

I suggest trying the laptop in a variety of states, ac plugged,
unplugged, discharging, recharging to make sure that you really have a
problem.

I also recommend looking at the output of "acpi -V" rather than "acpi"

Also, the output of "sudo tlp-stat" may provide some clues.
Post by Didik Setiawan
Dear All,
$ acpi
Battery 0: Unknown, 30%
The battery was normal if i switch to Windows. It could be charged using Thinkpad app on Windows. But, problem occured again when I using Ubuntu.
I have searched through google, found some cases with same problem but none of them have an obvious solution.
So, I want to ask question, the problem when I using Ubuntu come from userspace or kernelspace?
As information, I've even tried to use vanilla kernel v4.6.2, but the result is nothing. How can I try to fix them?
Thanks.
Didik Setiawan
Didik Setiawan
2016-07-18 06:16:50 UTC
Permalink
Thank you for the answer.

I've tried turn laptop on in variety of states, ac plugged-unplugged,
discharging-recharging but battery still not charging. The only way
to make it charging is boot on Windows and boot again using
Ubuntu. But still, after I restart the laptop after using Ubuntu,
I face the same problem again.

Here is output of the commands you suggest to run:

***@thinkpad:~$ acpi -V
Battery 0: Unknown, 85%
Battery 0: design capacity 2910 mAh, last full capacity 2152 mAh = 73%
Adapter 0: on-line
Thermal 0: ok, 29.8 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 100.0 degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 95.0 degrees C
Cooling 0: x86_pkg_temp no state information available
Cooling 1: intel_powerclamp no state information available
Cooling 2: Processor 0 of 10
Cooling 3: Processor 0 of 10
Cooling 4: Processor 0 of 10
Cooling 5: Processor 0 of 10

***@thinkpad:~$ sudo tlp-stat
[sudo] password for didik:
--- TLP 0.8 --------------------------------------------

+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
ENERGY_PERF_POLICY_ON_AC=performance
ENERGY_PERF_POLICY_ON_BAT=powersave
DISK_DEVICES="sda sdb"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
RADEON_DPM_STATE_ON_AC=performance
RADEON_DPM_STATE_ON_BAT=battery
RADEON_DPM_PERF_LEVEL_ON_AC=auto
RADEON_DPM_PERF_LEVEL_ON_BAT=auto
WIFI_PWR_ON_AC=1
WIFI_PWR_ON_BAT=5
WOL_DISABLE=Y
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
RUNTIME_PM_ALL=1
RUNTIME_PM_DRIVER_BLACKLIST="radeon nouveau"
USB_AUTOSUSPEND=1
USB_BLACKLIST_WWAN=1
RESTORE_DEVICE_STATE_ON_STARTUP=0

+++ System Info
System = LENOVO ThinkPad Edge E420s 44014EA
BIOS = 8JET23WW (1.05 )
Release = Ubuntu 16.04 LTS
Kernel = 4.6.2 #1 SMP Sat Jun 25 09:19:53 WIB 2016 x86_64
/proc/cmdline = BOOT_IMAGE=/@/boot/vmlinuz-4.6.2 root=UUID=92521783-0211-4b1d-8f66-b9a62c16fc89 ro rootflags=subvol=@ quiet splash acpi=force vt.handoff=7
Init system = systemd

+++ System Status
TLP power save = enabled
power source = AC

+++ Processor
CPU Model = Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/intel_pstate/min_perf_pct = 27
/sys/devices/system/cpu/intel_pstate/max_perf_pct = 100
/sys/devices/system/cpu/intel_pstate/no_turbo = 1

x86_energy_perf_policy: program for your kernel not installed.

/proc/sys/kernel/nmi_watchdog = 0

+++ Undervolting
PHC kernel not available.

+++ Temperatures
CPU temp = 59 [°C]
/proc/acpi/ibm/fan = 0 [/min]

+++ File System
/proc/sys/vm/laptop_mode = 0
/proc/sys/vm/dirty_writeback_centisecs = 1500
/proc/sys/vm/dirty_expire_centisecs = 1500
/proc/sys/vm/dirty_ratio = 20
/proc/sys/vm/dirty_background_ratio = 10
/proc/sys/fs/xfs/age_buffer_centisecs = (not available)
/proc/sys/fs/xfs/xfssyncd_centisecs = (not available)
/proc/sys/fs/xfs/xfsbufd_centisecs = (not available)

+++ Storage Devices
/dev/sda:
Model = HITACHI HTS723232A7A364
Firmware = EC2ZB70B
APM Level = 254
Status = active/idle
Scheduler = deadline

SMART info:
4 Start_Stop_Count = 4477
5 Reallocated_Sector_Ct = 0
9 Power_On_Hours = 4422 [h]
193 Load_Cycle_Count = 291070
194 Temperature_Celsius = 35 (Min/Max 18/52) [°C]


+++ SATA Aggressive Link Power Management
/sys/class/scsi_host/host0/link_power_management_policy = max_performance
/sys/class/scsi_host/host1/link_power_management_policy = max_performance
/sys/class/scsi_host/host2/link_power_management_policy = max_performance
/sys/class/scsi_host/host3/link_power_management_policy = max_performance
/sys/class/scsi_host/host4/link_power_management_policy = max_performance
/sys/class/scsi_host/host5/link_power_management_policy = max_performance

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = default (using bios preferences)

+++ Intel Graphics
/sys/module/i915/parameters/powersave = (not available)
/sys/module/i915/parameters/enable_rc6 = 1 (enabled)
/sys/module/i915/parameters/enable_fbc = -1 (use per-chip default)
/sys/module/i915/parameters/lvds_downclock = (not available)
/sys/module/i915/parameters/semaphores = -1 (use per-chip default)

+++ Wireless
bluetooth = off (software)
wifi = off (software)
wwan = none (no device)

wlp7s0(iwlwifi) : not connected, power management = off

+++ Audio
/sys/module/snd_hda_intel/parameters/power_save = 0
/sys/module/snd_hda_intel/parameters/power_save_controller = N

+++ Runtime Power Management
device classes = all
device blacklist = (not configured)
driver blacklist = radeon nouveau

/sys/bus/pci/devices/0000:00:00.0/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:02.0/power/control = on (0x030000, VGA compatible controller, i915)
/sys/bus/pci/devices/0000:00:16.0/power/control = on (0x078000, Communication controller, mei_me)
/sys/bus/pci/devices/0000:00:1a.0/power/control = on (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:00:1b.0/power/control = on (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:00:1c.0/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.1/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.2/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.3/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1d.0/power/control = on (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:00:1f.0/power/control = on (0x060100, ISA bridge, lpc_ich)
/sys/bus/pci/devices/0000:00:1f.2/power/control = on (0x010601, SATA controller, ahci)
/sys/bus/pci/devices/0000:00:1f.3/power/control = on (0x0c0500, SMBus, no driver)
/sys/bus/pci/devices/0000:07:00.0/power/control = on (0x028000, Network controller, iwlwifi)
/sys/bus/pci/devices/0000:0c:00.0/power/control = on (0x088000, System peripheral, sdhci-pci)
/sys/bus/pci/devices/0000:0c:00.2/power/control = on (0x080501, SD Host controller, no driver)
/sys/bus/pci/devices/0000:11:00.0/power/control = on (0x020000, Ethernet controller, r8169)

+++ USB
autosuspend = enabled
device whitelist = (not configured)
device blacklist = (not configured)
wwan blacklist = enabled

Bus 002 Device 003 ID 064e:c219 control = auto, autosuspend_delay_ms = 2000 -- Suyin Corp. (uvcvideo)
Bus 002 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)

+++ ThinkPad Extended Battery Functions
tp-smapi = inactive (kernel module 'tp_smapi' not installed)
tpacpi-bat = inactive (kernel module 'acpi_call' not installed)

+++ Battery Status
/sys/class/power_supply/BAT0/manufacturer = SMP
/sys/class/power_supply/BAT0/model_name = 42T4929-42T
/sys/class/power_supply/BAT0/cycle_count = (not supported)
/sys/class/power_supply/BAT0/energy_full_design = 46400 [mWh]
/sys/class/power_supply/BAT0/energy_full = 34320 [mWh]
/sys/class/power_supply/BAT0/energy_now = 29470 [mWh]
/sys/class/power_supply/BAT0/power_now = 0 [mW]
/sys/class/power_supply/BAT0/status = Unknown

+++ Suggestions
* Install tp-smapi kernel modules for ThinkPad advanced battery functions
Post by Martin Weinberg
I've seen many Thinkpads running 14.04 through 16.04 with out any
battery issues. I'm familar with both an X220 and an T440s and they
both work correctly. Specifically, the indicator-power panel app does
what it should.
The "Unknown" state is not necessarily a problem; for newer Thinkpads,
the acpi module isn't able to determine the state from the reported
battery info. For my X220, setting the thresholds (with tlp) causes acpi
to report "Unknown" when the charging stops at the desired threshold. I
suppose that acpi module determines that the battery is not full, but
the charge is not increasing and calls it "Unknown". Newer kernels seem
to call this "Unknown (threshold effective)", the last bit, I assume, to
provide a clue to the user about the cause of the "Unknown".
I suggest trying the laptop in a variety of states, ac plugged,
unplugged, discharging, recharging to make sure that you really have a
problem.
I also recommend looking at the output of "acpi -V" rather than "acpi"
Also, the output of "sudo tlp-stat" may provide some clues.
Post by Didik Setiawan
Dear All,
$ acpi
Battery 0: Unknown, 30%
The battery was normal if i switch to Windows. It could be charged using Thinkpad app on Windows. But, problem occured again when I using Ubuntu.
I have searched through google, found some cases with same problem but none of them have an obvious solution.
So, I want to ask question, the problem when I using Ubuntu come from userspace or kernelspace?
As information, I've even tried to use vanilla kernel v4.6.2, but the result is nothing. How can I try to fix them?
Thanks.
Didik Setiawan
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubun
Bob
2016-07-18 06:56:25 UTC
Permalink
** Reply to message from Didik Setiawan <***@didiksetiawan.com> on Mon, 18 Jul
2016 13:16:50 +0700
Post by Didik Setiawan
Thank you for the answer.
I've tried turn laptop on in variety of states, ac plugged-unplugged,
discharging-recharging but battery still not charging. The only way
to make it charging is boot on Windows and boot again using
Ubuntu. But still, after I restart the laptop after using Ubuntu,
I face the same problem again.
Yesterday I was out with my laptop (a thinkpad T60) and noticed a problem with
the battery behavior that I have not noticed before (Ubuntu 16.04).

I had the computer turned on for a while and I noticed the battery icon had
turned red so I plugged the computer into the mains to charge it up. The
battery icon changed to white with a small symbol in it that I think was 0% (it
was too small for me read). The computer was still running an hour later but
the battery icon had not changed and the battery was 100% charged. So it
appears there is a problem with the battery icon display but not the
functionality.
<snip>
--
Robert Blair


A government which robs Peter to pay Paul can always depend on the support of Paul. -- George Bernard Shaw
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Teresa e Junior
2016-07-18 07:19:42 UTC
Permalink
Post by Didik Setiawan
I've tried turn laptop on in variety of states, ac plugged-unplugged,
discharging-recharging but battery still not charging. The only way
to make it charging is boot on Windows and boot again using
Ubuntu. But still, after I restart the laptop after using Ubuntu,
I face the same problem again.
Batteries on newer Lenovo laptops can be configured on a software
available for Windows platforms. It is set to 60% by default, in order
to prolong the battery life. For Thinkpad users on Linux, TLP can change
the battery charge thresholds:
http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html

My Lenovo is not a Thinkpad, though, but a Lenovo G40-80 (Lancer 4A1),
so I still haven't figured out how to solve this problem myself! Some
users just reset the CMOS to enable full charges, as in
http://askubuntu.com/questions/486595/lenovo-y510p-battery-wont-charge-past-60
, but I'd rather keep the health of the battery if possible!
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Colin Law
2016-07-18 07:32:45 UTC
Permalink
Post by Didik Setiawan
Thank you for the answer.
I've tried turn laptop on in variety of states, ac plugged-unplugged,
discharging-recharging but battery still not charging. The only way
to make it charging is boot on Windows and boot again using
Ubuntu. But still, after I restart the laptop after using Ubuntu,
I face the same problem again.
How do you know it is not charging?

Colin
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Didik Setiawan
2016-07-18 08:54:59 UTC
Permalink
I've tried to use my laptop discharging of its battery until the battery
capacity reaches near 0%. Then, the alarm goes off before the laptop
forced shutdown. It can only turned out after I plug in ac power. After
waiting for a long time, the indicator remain unchanged. Using acpi
command, it just displays status unknown. The unity tray icon just
displays information "estimating... 0%".
Post by Colin Law
Post by Didik Setiawan
Thank you for the answer.
I've tried turn laptop on in variety of states, ac plugged-unplugged,
discharging-recharging but battery still not charging. The only way
to make it charging is boot on Windows and boot again using
Ubuntu. But still, after I restart the laptop after using Ubuntu,
I face the same problem again.
How do you know it is not charging?
Colin
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Colin Law
2016-07-18 11:00:38 UTC
Permalink
Post by Didik Setiawan
I've tried to use my laptop discharging of its battery until the battery
capacity reaches near 0%. Then, the alarm goes off before the laptop
forced shutdown. It can only turned out after I plug in ac power. After
waiting for a long time, the indicator remain unchanged. Using acpi
command, it just displays status unknown. The unity tray icon just
displays information "estimating... 0%".
Please don't top post, it is the convention on this list to insert
replies at appropriate points in previous message.
Back to your problem, if, after leaving it for a long time as you have
described above, if you boot into windows does the battery show as
still virtually flat? If it shows that it is now at least partially
charged then the problem is not that it is not charging running
Ubuntu, it is just that the indicator is not showing correctly.

Colin
Post by Didik Setiawan
Post by Colin Law
Post by Didik Setiawan
Thank you for the answer.
I've tried turn laptop on in variety of states, ac plugged-unplugged,
discharging-recharging but battery still not charging. The only way
to make it charging is boot on Windows and boot again using
Ubuntu. But still, after I restart the laptop after using Ubuntu,
I face the same problem again.
How do you know it is not charging?
Colin
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Didik Setiawan
2016-07-18 12:11:41 UTC
Permalink
I'm sorry for the inconvenience.
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.
So, my temporary solution is let the Windows partition stay on my laptop.
Although, I just use it to charge my battery when I need to recharge.
Post by Colin Law
Please don't top post, it is the convention on this list to insert
replies at appropriate points in previous message.
Back to your problem, if, after leaving it for a long time as you have
described above, if you boot into windows does the battery show as
still virtually flat? If it shows that it is now at least partially
charged then the problem is not that it is not charging running
Ubuntu, it is just that the indicator is not showing correctly.
Colin
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Colin Law
2016-07-18 12:17:56 UTC
Permalink
Post by Didik Setiawan
I'm sorry for the inconvenience.
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.
So, my temporary solution is let the Windows partition stay on my laptop.
Although, I just use it to charge my battery when I need to recharge.
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
Post by Didik Setiawan
Post by Colin Law
Please don't top post, it is the convention on this list to insert
replies at appropriate points in previous message.
Back to your problem, if, after leaving it for a long time as you have
described above, if you boot into windows does the battery show as
still virtually flat? If it shows that it is now at least partially
charged then the problem is not that it is not charging running
Ubuntu, it is just that the indicator is not showing correctly.
Colin
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Karl Auer
2016-07-18 12:34:51 UTC
Permalink
Post by Didik Setiawan
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.

Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (***@biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Ralf Mardorf
2016-07-18 12:43:30 UTC
Permalink
Post by Karl Auer
Post by Didik Setiawan
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.

;)
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Peter Silva
2016-07-18 13:02:54 UTC
Permalink
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.

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.


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.
Post by Ralf Mardorf
Post by Karl Auer
Post by Didik Setiawan
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.
;)
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Colin Law
2016-07-18 13:34:33 UTC
Permalink
Post by Peter Silva
OK, lets fix power usage first... (not worrying about indicator for now.)
Better to find out whether it is actually charging first.

Colin
Post by Peter Silva
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.
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.
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.
Post by Ralf Mardorf
Post by Karl Auer
Post by Didik Setiawan
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.
;)
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Peter Silva
2016-07-18 14:35:56 UTC
Permalink
OK, to determine if really charging, then try this in a terminal:

upower -i /org/freedesktop/UPower/devices/battery_BAT0

Look at energy rate...
Post by Colin Law
Post by Peter Silva
OK, lets fix power usage first... (not worrying about indicator for now.)
Better to find out whether it is actually charging first.
Colin
Post by Peter Silva
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.
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.
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.
Post by Ralf Mardorf
Post by Karl Auer
Post by Didik Setiawan
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.
;)
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Colin Law
2016-07-18 14:40:35 UTC
Permalink
Post by Peter Silva
upower -i /org/freedesktop/UPower/devices/battery_BAT0
Look at energy rate...
Please don't top post. Thanks.
Much simpler for the OP who seems to be having difficulty with
understanding just to run it for two hours, switch to Windows, and see
if it is charged.

Useful command though, so thanks for that.

Colin
Post by Peter Silva
Post by Colin Law
Post by Peter Silva
OK, lets fix power usage first... (not worrying about indicator for now.)
Better to find out whether it is actually charging first.
Colin
Post by Peter Silva
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.
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.
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.
Post by Ralf Mardorf
Post by Karl Auer
Post by Didik Setiawan
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.
;)
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Peter Silva
2016-07-18 15:08:15 UTC
Permalink
I don't know how to bottom post. I googled and it doesn't seem
possible with gmail, which forces top posting. any ideas (other than
not using gmail which is impractical for me.)
Post by Colin Law
Post by Peter Silva
upower -i /org/freedesktop/UPower/devices/battery_BAT0
Look at energy rate...
Please don't top post. Thanks.
Much simpler for the OP who seems to be having difficulty with
understanding just to run it for two hours, switch to Windows, and see
if it is charged.
Useful command though, so thanks for that.
Colin
Post by Peter Silva
Post by Colin Law
Post by Peter Silva
OK, lets fix power usage first... (not worrying about indicator for now.)
Better to find out whether it is actually charging first.
Colin
Post by Peter Silva
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.
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.
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.
Post by Ralf Mardorf
Post by Karl Auer
Post by Didik Setiawan
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.
;)
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Liam Proven
2016-07-18 15:32:08 UTC
Permalink
Post by Peter Silva
I don't know how to bottom post. I googled and it doesn't seem
possible with gmail, which forces top posting. any ideas (other than
not using gmail which is impractical for me.)
I am using Gmail. It's trivial to bottom-post.

Press Ctrl-A to select all. Edit the quoted text. Reply below it.
--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: ***@cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: ***@hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Cell/Mobiles: +44 7939-087884 (UK) • +420 702 829 053 (ČR)
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https
Gene Heskett
2016-07-18 15:38:03 UTC
Permalink
Post by Peter Silva
I don't know how to bottom post. I googled and it doesn't seem
possible with gmail, which forces top posting. any ideas (other than
not using gmail which is impractical for me.)
Are you saying that you cannot quote the whole message in your reply,
then use the keyboard arrows to negotiate the cursor to where you should
insert your reply and then type in your reply there?

I can feel a gentle pull on my leg. :)

That wasn't a problem when I was using pop.gmail.com or on the extremely
rare occasions when I logged in with a browser to do some
troubleshooting. But gmail started playing games with the login needed
for fetchmail, and after making it work again 3 times over a months span
3 years ago only to have it fail again the next day, is when I bailed
out. That however was just the straw that broke this camels back. The
need to have two subscription so that you could post from one account,
and see the echo on the other account, because your message to a mailing
list was, on being returned from the list server, a duplicate and was
deleted. So if you only had one account, you had no feedback to prove
your message actually made it to the list. To keep Miriam on the good
side I'll just say that is a heck of a way to run a train. I do use more
colorfull language on occasion.

I also assume that google wasn't getting the revenue from their sig
advertisements tagged onto every mail that they expected so they made
life difficult for pop3 users until we went away. So I suspect most of
us found a mail server that worked. And life goes on...

I'm guessing of course, but having experienced their my way or the hiway
attitude over the phone several times, I no longer care what google
does.

Since I went off on a google rant, I'll snip the rest.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Karl Auer
2016-07-18 13:03:22 UTC
Permalink
Post by Ralf Mardorf
Post by Karl Auer
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.
d) is a specific case of b). Let's keep it simple to start with.

Colin's simple test will determine whether the indicator is accurately
tracking actual charge. It either is or it isn't.

Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (***@biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Gene Heskett
2016-07-18 13:13:34 UTC
Permalink
Post by Ralf Mardorf
Post by Karl Auer
Post by Didik Setiawan
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.
;)
While I suppose thats possible Ralf, I have serious doubts that this is
the case.

But we'll likely never know, because the OP, Didik Setiawan, continues to
top post despite requests that he not do that, and has yet to answer a
single question posed by the members of this list who are trying to help
him find the problem. So this OP shouldn't be surprised that his
indicator problem remains unfixed since the list, after making the
effort to help, and getting no answers to the questions the list has
asked, not be surprised to find he will be left to stew in his own
juices.

I am still amazed at the number of people who post to a list, using good
English, that apparently never learned to read it well enough to
understand the replies they get.

Making some assumptions about the hardware, which as a C.E.T., I think I
might be qualified to do, I am inclined to think the installer did not
install or set to operating mode, the correct sensor daemon for his
machine. So the indicator button has no source of data.

But that is just a SWAG on my part based on the statement that when
plugged in, it was still running hours later, ergo it had to be
charging. And most of us know what a SWAG is I'm sure.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Ralf Mardorf
2016-07-18 16:05:33 UTC
Permalink
Post by Gene Heskett
Post by Ralf Mardorf
d) It's charging when using Ubuntu, but some software needs that much
resources, that the consumption is higher than the charging.
;)
While I suppose thats possible Ralf, I have serious doubts that this
is the case.
Hi Gene,

I agree with you, this unlikely is an issue for a laptop. It's a
common issue for tablet PCs.

Regards,
Ralf
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Gene Heskett
2016-07-18 17:08:14 UTC
Permalink
Post by Ralf Mardorf
Post by Gene Heskett
Post by Ralf Mardorf
d) It's charging when using Ubuntu, but some software needs that
much resources, that the consumption is higher than the charging.
;)
While I suppose thats possible Ralf, I have serious doubts that this
is the case.
Hi Gene,
I agree with you, this unlikely is an issue for a laptop. It's a
common issue for tablet PCs.
Regards,
Ralf
And I'm rather old school at my age, I haven't been able to justify the
purchase of something that wants to convince people its a real computer.
They have to convince me first.

In fact, my next computer buy will likely be a Dell 745 sans HD so the
dealer can keep the windows license. I just bought a much bigger lathe,
a 64 yo 11x36 Sheldon that has badly worn screws and I'll need to have a
computer to run it with when the conversion is complete with a pair of
new .001" accurate ball screws and motors to turn the screws with.
Since this isn't exactly an engine swap simple thing, I am making the
parts to do this conversion on a smaller lathe or on one of my cnc
controlled milling machines. Essentially I have to make everything but
the ball screws and bearings. Suitable motors and driver stuff I can
source, but all the hardware to make them fit comes straight from my
brain to gcode in an editor to carve it. And its slow when its one piece
at a time. Fortunately, much of this is lights out manufacturing, where
you start the job and verify its running ok, its going to take 14.7
hours to run, so you turn out the lights, close the shop door and go get
a nights sleep. ;-) It wasn't quite done this morning, so I've been
sawing and nipping up into fire pit fitting pieces, a dying lilac bush
about 15 feet tall that I took down last week. But a thunderstorm just
went marching by, so everything including yours truly is wet as I had to
pick up the electric saw & put it away before I could come in.

I'll dry, I did the first time and many times since.

Such is a day in the life of a genuine senior citizen who has quite a
list of BTDT things. :)

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Martin Weinberg
2016-07-18 15:28:23 UTC
Permalink
Post by Didik Setiawan
I'm sorry for the inconvenience.
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.
So, my temporary solution is let the Windows partition stay on my laptop.
Although, I just use it to charge my battery when I need to recharge.
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 . . .)

--M
Post by Didik Setiawan
Post by Colin Law
Please don't top post, it is the convention on this list to insert
replies at appropriate points in previous message.
Back to your problem, if, after leaving it for a long time as you have
described above, if you boot into windows does the battery show as
still virtually flat? If it shows that it is now at least partially
charged then the problem is not that it is not charging running
Ubuntu, it is just that the indicator is not showing correctly.
Colin
--
Martin Weinberg
6 Grass Hill Rd
West Whately, MA
01039-9610
W Scott Lockwood III
2016-07-18 15:14:18 UTC
Permalink
Post by Peter Silva
I don't know how to bottom post. I googled and it doesn't seem
possible with gmail, which forces top posting. any ideas (other than
not using gmail which is impractical for me.)
Gmail does not force top posting. You can in fact post under something
sent to you via Gmail, I do this all the time.

Other things you can do include using an email program like eM Client,
which allows for free licensed use, or Thunderbird which is open source.
Peter Silva
2016-07-18 15:26:35 UTC
Permalink
bottom posting... ok figured it out... why do you have to expand first?
anyways... will conform in future.


On Mon, Jul 18, 2016 at 11:14 AM, W Scott Lockwood III
Post by Peter Silva
I don't know how to bottom post. I googled and it doesn't seem
possible with gmail, which forces top posting. any ideas (other than
not using gmail which is impractical for me.)
Gmail does not force top posting. You can in fact post under something sent
to you via Gmail, I do this all the time.
Other things you can do include using an email program like eM Client, which
allows for free licensed use, or Thunderbird which is open source.
--
ubuntu-users mailing list
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Liam Proven
2016-07-18 15:33:02 UTC
Permalink
Post by Didik Setiawan
Dear All,
I have installed Ubuntu 16.04 64 bit on my Thinkpad laptop. Everything worked fine out of the box, except for the battery. The battery indicator on tray icon shows that battery working, but after wait for amount of time, it does not add the percentage of its capacity.
Have you checked that the laptop's firmware is up to date?
--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: ***@cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: ***@hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Cell/Mobiles: +44 7939-087884 (UK) • +420 702 829 053 (ČR)
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ub
Didik Setiawan
2016-07-19 05:42:04 UTC
Permalink
Post by Colin Law
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.
Post by Colin Law
Post by Karl Auer
Post by Didik Setiawan
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.
Post by Colin Law
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
Post by Colin Law
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.

***@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--
Post by Colin Law
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.

***@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
Post by Colin Law
upower -i /org/freedesktop/UPower/devices/battery_BAT0
Look at energy rate...
***@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'
Post by Colin Law
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.
Post by Colin Law
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.
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Didik Setiawan
2016-12-28 17:38:08 UTC
Permalink
Post by Didik Setiawan
Post by Liam Proven
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.
First, I'm sorry for my very late feedback.
After a few months I search, I've found the solution by upgrade BIOS to latest
version, just like Liam said. I upgrade it using Windows. Then, after I power
off or hibernate my laptop, the battery percentage keep increase. The indicator
is not stuck again.
For conclusion, there is no critical flaw with Ubuntu, just problem with my
laptop's firmware.
And for the interesting part, now I'm free from Windows. I was use it for
getting my battery charging after I turn of my laptop.

Thanks for all your helps.
(Sorry for my top post and bad english).
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Continue reading on narkive:
Loading...