LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-29-2018, 12:48 PM   #1
Linux questions
LQ Newbie
 
Registered: Aug 2018
Location: Hungary
Distribution: Deepin Linux, elementary OS.
Posts: 8

Rep: Reputation: Disabled
What is the best tool to extend battery life on Linux laptop?


I'm using elementary OS 4.1 Loki with the latest updates on a Lenovo IdeaPad 720. I have made a test on battery life: I plugged in my external hard drive and start a movie from there on full brightness with WiFi and without Bluetooth. On Windows 10 Pro after 2 hours the battery shows 68%. With elementary OS in the same situation this is only 50%. I have ran powertop and it showed 15w power useage.
 
Old 08-30-2018, 05:49 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
You need to find out what uses that battery. It can be even the player. I don't think you can install a software which will magically extend the battery life.
 
Old 08-30-2018, 05:59 AM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
You could always try out tlp.
 
1 members found this post helpful.
Old 08-30-2018, 06:43 AM   #4
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 279

Rep: Reputation: 100Reputation: 100
Mainly, two big differences are :
- Linux can easily have a lot of services running in background which are useless in this situation while Windows do not and provide much less services by default.
- Hardware, especially your graphic card. Most often drivers for Windows are provided and supports all optimization and options. On Linux your graphic card is maybe supported by default/generic drivers. And even officials drivers on Linux have less optimization and options.
 
Old 08-30-2018, 07:52 AM   #5
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
1st hit

https://www.omgubuntu.co.uk/2016/04/...ery-life-linux

2nd hit

https://askubuntu.com/questions/400/...-and-notebooks

Since ElementaryOS is just a Ubuntu spinoff.

https://itsfoss.com/speed-up-ubuntu-1310/

Last edited by rokytnji; 08-30-2018 at 07:54 AM.
 
Old 08-30-2018, 10:58 AM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,490

Rep: Reputation: Disabled
Turn off your wifi if you're not using it, as well as bluetooth, (also you could spin down your disks too, if using HDD, & maybe switch off power to your USB).

Last edited by fatmac; 08-30-2018 at 11:00 AM.
 
Old 08-30-2018, 11:04 AM   #7
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Quote:
Originally Posted by hydrurga View Post
You could always try out tlp.

This would be my number one recommendation. TLP is pretty good out of the box with optimizations on battery.
 
Old 08-30-2018, 11:55 AM   #8
Linux questions
LQ Newbie
 
Registered: Aug 2018
Location: Hungary
Distribution: Deepin Linux, elementary OS.
Posts: 8

Original Poster
Rep: Reputation: Disabled
I have installed and configured tlp and indicator-cpufreq and here is the result in powertop: https://pasteboard.co/HBAQXhX.jpg
 
Old 08-30-2018, 12:24 PM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
probably you need to try another player, like VLC.
 
Old 08-30-2018, 01:11 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Linux questions View Post
I have installed and configured tlp and indicator-cpufreq and here is the result in powertop: https://pasteboard.co/HBAQXhX.jpg
video playback eats power, that's normal on all operating systems.
using a lighter media player (mpv is my rec.) or a lighter system altogether may help.
less GUI, more hotkeys.
 
Old 08-30-2018, 01:56 PM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
but also may depend on the video driver (if acceleration was available)
 
Old 08-30-2018, 02:01 PM   #12
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Use a conservative cpu governor.
Code:
cpupower frequency-set -g conservative
 
Old 08-31-2018, 12:10 AM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by pan64 View Post
but also may depend on the video driver (if acceleration was available)
yes, i should have specified; software (cpu) decoding might take even more power than hardware (gpu) decoding, but in my experience it is a power hog in any case.

apart from things like gaming of course, and physically copying large amounts of data.

PS:
OP, you might want to show us if your laptop is set up properly:
Code:
lspci -k | grep -iEA5 'vga|3d|display'
and if you can, check which video output your current media player uses.

Last edited by ondoho; 08-31-2018 at 12:12 AM.
 
Old 08-31-2018, 11:17 AM   #14
Linux questions
LQ Newbie
 
Registered: Aug 2018
Location: Hungary
Distribution: Deepin Linux, elementary OS.
Posts: 8

Original Poster
Rep: Reputation: Disabled
I've set the CPU governor to powersave.

Here is the output of
Code:
lspci -k | grep -iEA5 'vga|3d|display'
Code:
00:02.0 VGA compatible controller: Intel Corporation Device 5917 (rev 07)
	Subsystem: Lenovo Device 3979
	Kernel driver in use: i915
	Kernel modules: i915
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
	Subsystem: Lenovo Sunrise Point-LP USB 3.0 xHCI Controller
--
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 699f (rev c0)
	Subsystem: Lenovo Device 3804
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
And here is the output of
Code:
glxinfo | egrep "OpenGL vendor|OpenGL renderer"
Code:
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2)
I've also installed mpv.

After these "tweaks" I've made my test, and my battery is now at 57%.
 
Old 08-31-2018, 12:29 PM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
so you mean it is now better. You may want to start over, check again the actual situation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Laptop Mode Tools 1.68.1 Is Out to Extend Your Laptop's Battery Life LXer Syndicated Linux News 0 09-28-2015 02:54 AM
Gateway VTX-400 extend battery life (Jupiter v. TLP) mathman48 Linux - Laptop and Netbook 2 01-24-2014 11:50 PM
Laptop Battery life.. Does Distro affect battery life?? jeevanism Linux - Hardware 6 07-09-2011 02:16 AM
best long battery life laptop for linux grubber33 Linux - Laptop and Netbook 1 10-01-2007 01:21 PM
LXer: Intel and PowerTOP extend Linux laptop battery life LXer Syndicated Linux News 0 05-17-2007 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration