Battery drains too fast on X240 Thinkpad RHEL 6.5 platform
-
dexterous_21
- Posts: 4
- Joined: Sat Jan 10, 2015 5:03 am
- Location: Manila, Philippines
Battery drains too fast on X240 Thinkpad RHEL 6.5 platform
I'm having an issue with the battery of my X240 Thinkpad. It is a newly issued TP and I noticed that the battery won't last more than 2 hours upon full charge. I asked my colleagues who use X240 but on a Windows platform, and they said their battery lasts about 5-6 hours.
Is this a bug on Linux? I am using RHEL 6.5 OS with Windows 7 KVM.
I would appreciate your help and insights on this.
Thanks!
Is this a bug on Linux? I am using RHEL 6.5 OS with Windows 7 KVM.
I would appreciate your help and insights on this.
Thanks!
-
RealBlackStuff
- Admin
- Posts: 17490
- Joined: Mon Sep 18, 2006 5:17 am
- Location: Mt. Cobb, PA USA
- Contact:
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platfo
Please don't double-post, thank you.
-
ajkula66
- SuperUserGeorge

- Posts: 15733
- Joined: Sun Feb 25, 2007 11:28 am
- Location: Brodheadsville, Pennsylvania
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platfo
Welcome to the forum!dexterous_21 wrote:I'm having an issue with the battery of my X240 Thinkpad. It is a newly issued TP and I noticed that the battery won't last more than 2 hours upon full charge. I asked my colleagues who use X240 but on a Windows platform, and they said their battery lasts about 5-6 hours.
Is this a bug on Linux? I am using RHEL 6.5 OS with Windows 7 KVM.
I would appreciate your help and insights on this.
Thanks!
You can expect a significantly worse battery life under almost any *nix flavour when compared to Windows, at least in my experience.
...Knowledge is a deadly friend when no one sets the rules...(King Crimson)
Cheers,
George (your grouchy retired FlexView farmer)
AARP club members:A31p, T43pSF
Abused daily: R61
PMs requesting personal tech support will be ignored.
Cheers,
George (your grouchy retired FlexView farmer)
AARP club members:A31p, T43pSF
Abused daily: R61
PMs requesting personal tech support will be ignored.
-
dexterous_21
- Posts: 4
- Joined: Sat Jan 10, 2015 5:03 am
- Location: Manila, Philippines
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platfo
Thanks for the reply ajkula66.
My old X230 lasts 5 hours with RHEL 6.5 and Windows 7 KVM on top. As per Lenovo, battery performance of X240 should be better than X230.
Any thoughts?
Thanks again!
My old X230 lasts 5 hours with RHEL 6.5 and Windows 7 KVM on top. As per Lenovo, battery performance of X240 should be better than X230.
Any thoughts?
Thanks again!
-
ajkula66
- SuperUserGeorge

- Posts: 15733
- Joined: Sun Feb 25, 2007 11:28 am
- Location: Brodheadsville, Pennsylvania
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platfo
You're very welcome.dexterous_21 wrote:Thanks for the reply ajkula66.
I've never worked for Lenovo so I can't speak for them BUT the only way to test the battery life properly as per Lenovo's guidelines would be to install a Windows OS of some kind and check how the battery behaves there. Behaviour in an "alternate" OS is not something they would care about one iota.My old X230 lasts 5 hours with RHEL 6.5 and Windows 7 KVM on top. As per Lenovo, battery performance of X240 should be better than X230.
Any thoughts?
Is there a way of telling the battery wear (in percents) through some utility in RHEL?
...Knowledge is a deadly friend when no one sets the rules...(King Crimson)
Cheers,
George (your grouchy retired FlexView farmer)
AARP club members:A31p, T43pSF
Abused daily: R61
PMs requesting personal tech support will be ignored.
Cheers,
George (your grouchy retired FlexView farmer)
AARP club members:A31p, T43pSF
Abused daily: R61
PMs requesting personal tech support will be ignored.
-
dexterous_21
- Posts: 4
- Joined: Sat Jan 10, 2015 5:03 am
- Location: Manila, Philippines
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platfo
My colleagues who use X240 with Windows 7 OS would say their batteries last 5-6 hours and I have verified it.
Battery info from battery icon in RHEL shows excellent status upon full charge, but only lasts 2 hours.
Battery info from battery icon in RHEL shows excellent status upon full charge, but only lasts 2 hours.
-
RealBlackStuff
- Admin
- Posts: 17490
- Joined: Mon Sep 18, 2006 5:17 am
- Location: Mt. Cobb, PA USA
- Contact:
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platfo
Try your battery in that friend's X240 and see how long yours lasts there...
Lovely day for a Guinness! (The Real Black Stuff)
Check out The Boardroom for Parts, Mods and Other Services.
Check out The Boardroom for Parts, Mods and Other Services.
-
ajkula66
- SuperUserGeorge

- Posts: 15733
- Joined: Sun Feb 25, 2007 11:28 am
- Location: Brodheadsville, Pennsylvania
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platfo
Does it show battery condition as in wear level or anything along those lines?dexterous_21 wrote:
Battery info from battery icon in RHEL shows excellent status upon full charge, but only lasts 2 hours.
...Knowledge is a deadly friend when no one sets the rules...(King Crimson)
Cheers,
George (your grouchy retired FlexView farmer)
AARP club members:A31p, T43pSF
Abused daily: R61
PMs requesting personal tech support will be ignored.
Cheers,
George (your grouchy retired FlexView farmer)
AARP club members:A31p, T43pSF
Abused daily: R61
PMs requesting personal tech support will be ignored.
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platfo
It looks like powertop will tell you how many watts each process is using. Probably need to run 'yum install powertop'.
T60p sxga+ FlexView
R50p uxga FlexView
T42 sxga+ FlexView
R50p uxga FlexView
T42 sxga+ FlexView
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platfo
TP batteries usually perform about 20% less in stock Linux compared to Windows in my experience. You can reduce it by installing TLP & deps if older an older CPU or laptopmodetools if the last 2 Gen Intel CPU's. Then install Thinkfan and powertop.
Run Su Powertop --html, view the printout and change the power settings as required.
Then configure Thinkfan and TLP/LMT as required, googling will help as will archwiki which is a good starting place for that but be prepared to know how to edit text files as root. Thinkfan in particular needs plenty of work to optimise fan speeds. As your running whats considered a server OS then optimise what modules you want to run and shut off those that are not needed.
Also my general rule of thumb is if your CPU temp is approaching 50C under office type loads - not surfing flash websites - then you may need to clean the fan assy and re-apply paste on the heatsinks. I wouldnt expect it your case but if you live with a pack of shedding pets that are heavy smokers you never know
Run Su Powertop --html, view the printout and change the power settings as required.
Then configure Thinkfan and TLP/LMT as required, googling will help as will archwiki which is a good starting place for that but be prepared to know how to edit text files as root. Thinkfan in particular needs plenty of work to optimise fan speeds. As your running whats considered a server OS then optimise what modules you want to run and shut off those that are not needed.
Also my general rule of thumb is if your CPU temp is approaching 50C under office type loads - not surfing flash websites - then you may need to clean the fan assy and re-apply paste on the heatsinks. I wouldnt expect it your case but if you live with a pack of shedding pets that are heavy smokers you never know
Arch//Openbox R61//GNOME 3 X201i/X230 Tablet //Spectrwm T61/X61/X61 Debian 9/X32
Work - Win7/X220T BunsenLabs T43
Retired T60p/T60/X30/X31/X61S RIP T400/T21/X61T/X200T
Work - Win7/X220T BunsenLabs T43
Retired T60p/T60/X30/X31/X61S RIP T400/T21/X61T/X200T
-
jaspen-meyer
- Senior Member

- Posts: 631
- Joined: Wed May 19, 2010 11:21 pm
- Location: Pardubice, Czech Republic
- Contact:
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platform
If your cpu is always running at it's max frequency that can eat away at your battery.
A 'cpu governor' needs to be running.
Check the files in these directories:
/sys/devices/system/cpu/cpu0
/sys/devices/system/cpu/cpu0/cpufreq
Paths may be different on RHEL.
A 'cpu governor' needs to be running.
Check the files in these directories:
/sys/devices/system/cpu/cpu0
/sys/devices/system/cpu/cpu0/cpufreq
Paths may be different on RHEL.
T420 Ivy Bridge i7 3612QM, x24 xiphmont led, x60s libreboot, led, T400 libreboot, (in progress testing Q9100)
-
axur-delmeria
- ThinkPadder

- Posts: 1269
- Joined: Mon May 28, 2012 5:49 am
- Location: Metro Manila, Philippines
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platform
Maybe RHEL 6.5 isn't a good match for your X240. I mean, the kernel is old (2.6.32), among other things.
And as others have suggested, TLP and other power management tools help a lot.
And as others have suggested, TLP and other power management tools help a lot.
Daily driver: X220 4291-P79 i5-2520M
In reserve: X61 T7500, X60 T2300
In pieces: X60s CS U1300 [board only], two retired but working X61Ts
RIP: 760XD 9546-U9E
In reserve: X61 T7500, X60 T2300
In pieces: X60s CS U1300 [board only], two retired but working X61Ts
RIP: 760XD 9546-U9E
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platform
You need to install TLP or other power management as someone already mentioned, Linux distributions don't include them by default or at least I haven't ever seen one that does. With TLP your battery life should be as long as in Windows 7.
My T430 with GTX 560 Ti (Now with GTX 670)
T430: i5-3320m, 8 GB, SSD + HDD, 1600x900.
T430: i5-3320m, 8 GB, SSD + HDD, 1600x900.
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platform
x240 should last for a bit less than 2 hours when under maximum load and maximum brightness.
2 hours means there is either something stressing the laptop to near its limits all the time, or there is something wrong with the batteries (it should have 2 batteries, one internal, and another removable).
2 hours means there is either something stressing the laptop to near its limits all the time, or there is something wrong with the batteries (it should have 2 batteries, one internal, and another removable).
===
-
axur-delmeria
- ThinkPadder

- Posts: 1269
- Joined: Mon May 28, 2012 5:49 am
- Location: Metro Manila, Philippines
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platform
Alternatively, some components of his Linux distro is not new enough to properly handle the power management features of a Haswell-based machine.hhhd1 wrote:x240 should last for a bit less than 2 hours when under maximum load and maximum brightness.
2 hours means there is either something stressing the laptop to near its limits all the time, or there is something wrong with the batteries (it should have 2 batteries, one internal, and another removable).
This can be diagnosed by monitoring CPU usage (using top or any other task manager), and power consumption (powertop).
Daily driver: X220 4291-P79 i5-2520M
In reserve: X61 T7500, X60 T2300
In pieces: X60s CS U1300 [board only], two retired but working X61Ts
RIP: 760XD 9546-U9E
In reserve: X61 T7500, X60 T2300
In pieces: X60s CS U1300 [board only], two retired but working X61Ts
RIP: 760XD 9546-U9E
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platform
OP definitely need to update his kernel and distro at this point. At this moment it is like installing Windows 2000 on a brand new machine. Most of CPUs and power-saving features are inactive due to [censored]-old kernel.
T601F 8889-ABG/2007-FBG: T9300(1.0V), 8GB RAM, 256 GB SSD + 1TB HDD/DVD-RW, 1600x1200, NVS140M(0.95V), Intel 802.11agn, WWAN, BT, 1Gb Eth, UltraNav, FPR, 9c+6c
310ED/360CSE/760LD/2x760ED/760XL/A22m/3xA31p/R50p/2xT60 15"SXGA+/T60F/T61 14"SXGA+/T400/X60/X61s/X61 Reserve Edition/X201/X220/L450
310ED/360CSE/760LD/2x760ED/760XL/A22m/3xA31p/R50p/2xT60 15"SXGA+/T60F/T61 14"SXGA+/T400/X60/X61s/X61 Reserve Edition/X201/X220/L450
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platform
IMO, that is unlikely, 2 hours is way to slow, even if power management is not fully enabled.axur-delmeria wrote:Alternatively, some components of his Linux distro is not new enough to properly handle the power management features of a Haswell-based machine.hhhd1 wrote:x240 should last for a bit less than 2 hours when under maximum load and maximum brightness.
2 hours means there is either something stressing the laptop to near its limits all the time, or there is something wrong with the batteries (it should have 2 batteries, one internal, and another removable).
This can be diagnosed by monitoring CPU usage (using top or any other task manager), and power consumption (powertop).
I second the use of software like powertop, because it should display rate of discharge of the battery.
with a battery capacity of 47 Wh, a power usage of 23.5w, should give you 2 hours of runtime.
===
-
evening_hunger
- Sophomore Member
- Posts: 189
- Joined: Thu Nov 26, 2015 2:55 pm
- Location: Rouen, France
Re: Battery drains too fast on X240 Thinkpad RHEL 6.5 platform
Linux distributions have abundance of power-control and power-saving software, especially for thinkpads.
Powertop, exposes more than 40 tunables (to a user with admin rights that is). Show me a M$ software that does it. Now, the problem is that with great power, comes great responsibility. In Windows you have zero power (I mean freedom), but you have nearly zero responsbility, as everything has been done for you. And, I admit, has been done wery well! That goes to show the world is not an adventure built upon binary choices.
Okay, enough philosophy:)
Now to get more down to it, you can try (as first step) obviously:
$acpi -V
which will yield as standard something like this:
That's a prequsite if we're gonna have any serious conversation about battery usage in linux. Then, using tp_smapi (a module available e.g. in Debian) one can get even more knowledge. For example, realtime data of power drain per battery:
and so on. It is also posible to set custom thresholds for battery charging to prolong its life (e.g. avoid charging the battery to 100%, stop at say 90% and only go up to 100% when preparing for a long flight...). tp_smapi also exposes an utter mountain of data concerning the battery (the make, date of first use, software version... )
All in all, there is a bunch of toys and the way is paved.
Powertop, exposes more than 40 tunables (to a user with admin rights that is). Show me a M$ software that does it. Now, the problem is that with great power, comes great responsibility. In Windows you have zero power (I mean freedom), but you have nearly zero responsbility, as everything has been done for you. And, I admit, has been done wery well! That goes to show the world is not an adventure built upon binary choices.
Okay, enough philosophy:)
Now to get more down to it, you can try (as first step) obviously:
$acpi -V
which will yield as standard something like this:
Code: Select all
Battery 0: Unknown, 83%
Battery 0: design capacity 7115 mAh, last full capacity 3528 mAh = 49%
Adapter 0: on-line
Thermal 0: ok, 47.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 99.0 degrees C
Cooling 0: x86_pkg_temp no state information available
Cooling 1: LCD 15 of 15
Cooling 2: intel_powerclamp no state information available
Cooling 3: Processor 0 of 10
Cooling 4: Processor 0 of 10
Cooling 5: Processor 0 of 10
Cooling 6: Processor 0 of 10
Code: Select all
# tail -f /sys/devices/platform/smapi/BAT0/power_now
-10773 mW -906 mA
-10773 mW -906 mA
-10773 mW -906 mA
-10985 mW -922 mA
-10985 mW -922 mA
-10985 mW -922 mA
All in all, there is a bunch of toys and the way is paved.
x220/i7-2620M/8GB/256gb.ssd/ips/debian (main driver)
x230/i5/8GB/500gb.hdd+256gb.m2ssd/tn/debian+win7 (better half)
x230/i5/8GB/500gb.hdd+256gb.m2ssd/tn/debian+win7 (better half)
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Brand New Oem X230 Battery Losing Full Charge Capacity Fast!
by TheMagicT410 » Sat Feb 11, 2017 12:58 pm » in ThinkPad X230 and later Series - 5 Replies
- 826 Views
-
Last post by TheMagicT410
Sat Feb 25, 2017 3:04 pm
-
-
-
SOLD: X240-i7 w FHD, warranty .. ForSale: $350 OBO
by BobA » Thu Feb 23, 2017 7:31 pm » in Marketplace - Forum Members only - 4 Replies
- 1499 Views
-
Last post by BobA
Mon Mar 13, 2017 11:41 pm
-
-
-
FOUND: X240 / X250 with 1366x768 IPS display
by jdk » Sun Mar 12, 2017 3:12 pm » in Marketplace - Forum Members only - 0 Replies
- 1056 Views
-
Last post by jdk
Sun Mar 12, 2017 3:12 pm
-
-
- 2 Replies
- 1106 Views
-
Last post by halap3n0
Wed Mar 15, 2017 8:29 am
Who is online
Users browsing this forum: No registered users and 0 guests




