[arch-general] Power Management on Thinkpad 5W30
I can't get power management working on my laptop. I have tlp-stat installed and it's showing a 1.9% capacity, but I don't think that's an accurate figure. This is a fairly new install. It worked fine under windows. I've been trying a lot of things, but at this point it feels more like I'm just going to do more damage trying things than actually making any progress on my own. One thing I don't know about is if this model supports the thinkpad_ec kernel module, because I cant get it to load. I'm also running the hardened kernel, and don't know if that's supported either. I'm not sure at this point that thats even the right direction to be going in. But this https://wiki.archlinux.org/title/Laptop/Lenovo#W_series says that power management is supported, and this https://www.thinkwiki.org/wiki/Tp_smapi#W_series seems to indicate that tp_smapi -doesn't- work with this model, but that's a little unclear to me, especially since that page was last updated in 2016. But simply setting the thresholds manually hasn't given me very good results at all. -- __ _ ____ _ ____ ____ _ _ _ __ _ ____ | \| |--| | |___ |--| |\/| | | \| |===
On 13/02/2022 01:06, naicam|ne via arch-general wrote:
I can't get power management working on my laptop.
I might be missing something in the original post, but I can't see anything specific about what sort of problem you're having, or what indicates power management doesn't work. (Or how you have configured your laptop etc.)
I'm also running the hardened kernel
Always worth trying the standard kernel, and the LTS kernel, so you have a good comparison and can rule out the various customisations in Hardened and Zen.
On 2/13/22 01:42, Jonathon Fernyhough via arch-general wrote:
I might be missing something in the original post, but I can't see anything specific about what sort of problem you're having, or what indicates power management doesn't work.
It is showing a low battery capacity, at 1.9% and not being fully charged. It only runs for about 5 mins. I'm not really sure what specific details about the config are needed. I run LXDE, and the hardened kernel, 5.15.21-hardened1-1-hardened x86_64. I have tlp 1.5.0-4 tlp-rdw 1.5.0-4 acpi_call-dkms 1.2.2-1 and tp_smapi-dkms 0.43-4 installed, as well as tpacpi-bat 3.1-3. I also had installed powertop and that wont run. This is the error from that: modprobe cpufreq_stats failedFailed to mount debugfs! -- __ _ ____ _ ____ ____ _ _ _ __ _ ____ | \| |--| | |___ |--| |\/| | | \| |===
On 13/02/2022 02:04, naicam|ne via arch-general wrote:
I run LXDE, and the hardened kernel, 5.15.21
As I say, a more standard kernel would be worth trying, `linux` for 5.16 and `linux-lts` for 5.15.
I have tlp 1.5.0-4 tlp-rdw 1.5.0-4 acpi_call-dkms 1.2.2-1 and tp_smapi-dkms 0.43-4 installed
Given the age of the W530, acpi_call is the one you want, tp_smapi is for older models.
I also had installed powertop and that wont run. This is the error from that: modprobe cpufreq_stats failedFailed to mount debugfs!
Does the hardened kernel let you mount debugfs to get power usage information?
simply setting the thresholds manually hasn't given me very good results at all
Have you tried with _not_ setting charging thresholds, and _not_ using TLP? Does the battery charge when in the BIOS, or booted into the archinstall image?
On 2/13/22 03:17, Jonathon Fernyhough via arch-general wrote:
As I say, a more standard kernel would be worth trying, `linux` for 5.16 and `linux-lts` for 5.15.
I've installed the 'linux' kernel package and 'linux-headers'. That did allow me the ability to run powertop.
Given the age of the W530, acpi_call is the one you want, tp_smapi is for older models.
I thought so, but wasn't sure. Thanks for clearing that up.
Have you tried with _not_ setting charging thresholds, and _not_ using TLP? Does the battery charge when in the BIOS, or booted into the archinstall image?
When I first installed linux over a few days the capacity had dropped from near 50% down to where it is now. It's hard to say now which packages were missing at that point, and in the very beginning I wasn't monitoring capacity bc I hadn't had any issues yet. The first thing I noticed was from the first day my runtime was cut in half after switching to linux and decreased pretty dramatically. Last night, when I read your reply, I tested it with the bios. This is the output of tlp-stat -b afterward: --- TLP 1.5.0 -------------------------------------------- +++ Battery Care Plugin: thinkpad Supported features: charge thresholds, recalibration Driver usage: * natacpi (thinkpad_acpi) = active (charge thresholds) * tpacpi-bat (acpi_call) = active (recalibration) Parameter value ranges: * START_CHARGE_THRESH_BAT0/1: 0(off)..96(default)..99 * STOP_CHARGE_THRESH_BAT0/1: 1..100(default) +++ ThinkPad Battery Status: BAT0 (Main / Internal) /sys/class/power_supply/BAT0/manufacturer = LGC /sys/class/power_supply/BAT0/model_name = 45N1011 /sys/class/power_supply/BAT0/cycle_count = 0 (or not supported) /sys/class/power_supply/BAT0/energy_full_design = 93600 [mWh] /sys/class/power_supply/BAT0/energy_full = 1740 [mWh] /sys/class/power_supply/BAT0/energy_now = 1740 [mWh] /sys/class/power_supply/BAT0/power_now = 0 [mW] /sys/class/power_supply/BAT0/status = Full /sys/class/power_supply/BAT0/charge_control_start_threshold = 96 [%] /sys/class/power_supply/BAT0/charge_control_end_threshold = 100 [%] tpacpi-bat.BAT0.forceDischarge = 0 Charge = 100.0 [%] Capacity = 1.9 [%] -- __ _ ____ _ ____ ____ _ _ _ __ _ ____ | \| |--| | |___ |--| |\/| | | \| |===
On 13/02/2022 13:30, naicam|ne via arch-general wrote:
/sys/class/power_supply/BAT0/energy_full_design = 93600 [mWh] /sys/class/power_supply/BAT0/energy_full = 1740 [mWh] /sys/class/power_supply/BAT0/energy_now = 1740 [mWh] /sys/class/power_supply/BAT0/power_now = 0 [mW] ... Charge = 100.0 [%] Capacity = 1.9 [%]
This drop in capacity normally indicates the battery has reached (or in this case, gone well past) the end of its serviceable life. How old is the battery, how many charge/discharge cycles has it seen, and has it been allowed to overheat at any point (e.g. the laptop put into a bag while still running)?
On 2/13/22 13:48, Jonathon Fernyhough via arch-general wrote:
This drop in capacity normally indicates the battery has reached (or in this case, gone well past) the end of its serviceable life.
Yah I pretty much figured the battery is probably toast at this point. I just want to make sure that power management is working before I throw parts at it and replace the battery, just to have it do the same thing to the new one.
How old is the battery, how many charge/discharge cycles has it seen, and has it been allowed to overheat at any point (e.g. the laptop put into a bag while still running)?
This decrease in life happened quickly but it was in terms of a couple of weeks, not a couple of days. I couldn't say how many cycles it's been through. I bought the laptop refurbished, and I dont know the condition of the battery at that time, other than I got about 2.5 hrs of usage from it on windows 10. -- __ _ ____ _ ____ ____ _ _ _ __ _ ____ | \| |--| | |___ |--| |\/| | | \| |===
On 13/02/2022 14:03, naicam|ne via arch-general wrote:
This decrease in life happened quickly but it was in terms of a couple of weeks, not a couple of days. I couldn't say how many cycles it's been through. I bought the laptop refurbished, and I dont know the condition of the battery at that time, other than I got about 2.5 hrs of usage from it on windows 10.
Yeah, this is the problem when batteries fail. From my experience, you'll see capacity decrease in a large chunk when one of the cells fail, so for a three-cell power pack you'd see a ~33% capacity drop very quickly when one cell fails. A battery starting at 50% capacity is an indication it's already old, and I'd suspect at least one cell has failed. This said, it still might be worth checking for a BIOS update if you haven't already as these also include fixes for battery controllers.
Sounds good. Thanks for your help. -- __ _ ____ _ ____ ____ _ _ _ __ _ ____ | \| |--| | |___ |--| |\/| | | \| |===
participants (2)
-
Jonathon Fernyhough
-
naicam|ne