You are not logged in.
I wanted to configure power management, on my thinkpad yoga 14, I just installed TLP, followed the wiki, installed acpi_call nothing big, the battery stats are showing some weird output.
On AC:
sudo tlp-stat -b
[sudo] password for marouane:
--- TLP 0.8 --------------------------------------------
+++ ThinkPad Extended Battery Functions
tp-smapi = inactive (kernel module 'tp_smapi' not installed)
tpacpi-bat = active
+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer = SMP
/sys/class/power_supply/BAT0/model_name = 00HW001
/sys/class/power_supply/BAT0/cycle_count = (not supported)
/sys/class/power_supply/BAT0/energy_full_design = 56020 [mWh]
/sys/class/power_supply/BAT0/energy_full = 58800 [mWh]
/sys/class/power_supply/BAT0/energy_now = 57390 [mWh]
/sys/class/power_supply/BAT0/power_now = 0 [mW]
/sys/class/power_supply/BAT0/status = Unknown (threshold effective)
tpacpi-bat.BAT0.startThreshold = 96 [%]
tpacpi-bat.BAT0.stopThreshold = 100 [%]
tpacpi-bat.BAT0.forceDischarge = 0On battery:
sudo tlp-stat -b
--- TLP 0.8 --------------------------------------------
+++ ThinkPad Extended Battery Functions
tp-smapi = inactive (kernel module 'tp_smapi' not installed)
tpacpi-bat = active
+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer = SMP
/sys/class/power_supply/BAT0/model_name = 00HW001
/sys/class/power_supply/BAT0/cycle_count = (not supported)
/sys/class/power_supply/BAT0/energy_full_design = 56020 [mWh]
/sys/class/power_supply/BAT0/energy_full = 58800 [mWh]
/sys/class/power_supply/BAT0/energy_now = 57390 [mWh]
/sys/class/power_supply/BAT0/power_now = 3461 [mW]
/sys/class/power_supply/BAT0/status = Discharging
tpacpi-bat.BAT0.startThreshold = 96 [%]
tpacpi-bat.BAT0.stopThreshold = 100 [%]
tpacpi-bat.BAT0.forceDischarge = 0The battery is not charging, as you see status shows Unknown, I am not sure what's the problem.
EDIT1:
acpid is not installed could that be a problem ? I will install it and see, meanwhile here is what's happening during boot, the 4 last lines don't look good. ![]()
$ dmesg | grep acpi
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[ 0.157387] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.625009] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[ 0.625125] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
[ 0.665410] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 3.213679] systemd[1]: acpid.service: Cannot add dependency job, ignoring: Unit acpid.service failed to load: No such file or directory.
[ 4.609724] thinkpad_acpi: ThinkPad ACPI Extras v0.25
[ 4.609727] thinkpad_acpi: http://ibm-acpi.sf.net/
[ 4.609728] thinkpad_acpi: ThinkPad BIOS JFET43WW(1.20), EC unknown
[ 4.609730] thinkpad_acpi: Lenovo ThinkPad S3 Yoga 14, model 20DMCTO1WW
[ 4.610005] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
[ 4.610176] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
[ 4.610177] thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
[ 4.613132] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[ 4.613830] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
[ 4.613879] thinkpad_acpi: Console audio control enabled, mode: monitor (read only)
[ 4.614586] acpi PNP0C0B:00: Failed to change power state to D0
[ 4.614617] acpi PNP0C0B:00: Setting initial power state
[ 4.615954] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input5
[ 4.634247] acpi PNP0C0B:00: Cannot transition from (unknown) to D3hotLast edited by elaich (2015-12-20 19:14:19)
Offline
Can someone please tell me where I should start looking ?
Offline
Kind of odd:
/sys/class/power_supply/BAT0/energy_full_design = 56020 [mWh]
/sys/class/power_supply/BAT0/energy_full = 58800 [mWh]
/sys/class/power_supply/BAT0/energy_now = 57390 [mWh]The last full and present state both report greater energy than the battery was designed for.
If you allow it to discharge for a while, does energy_now reported decrease? If it does, I would not expect it to try to charge until it gets to 57.39Wh * 96% (the start threshold) after which it might start to take a charge. It might declare the state as "Unknown" as it does not know how to interpret the reported values -- it does not make sense that the reported current state represents more energy than the battery is designed to hold.
Last edited by ewaller (2015-12-20 19:15:33)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Thanks for this reply, I guess you are right for the state "Unknown", I let the battery discharge for a bit, bellow 96% and plugged the laptop, the state changed to Charging, until energy_now reached energy_full.
Last edited by elaich (2015-12-20 19:17:00)
Offline
Did you notice the hint after "unknown"?
/sys/class/power_supply/BAT0/status = Unknown (threshold effective)
Last edited by linrunner (2015-12-26 10:27:04)
Offline