LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-29-2012, 10:56 AM   #1
iiClouds
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
Slackware 14 (64-Bit Install) on laptop = Terrible battery life?


First post here. New to the forums. Linux novice.
I just installed Slack on to my laptop this morning while it was charging. I got the install and everything. Played around while it was charging. Now, I take my laptop off the charger and near 30 minutes later, the battery life is nearing 55%. Is battery life an issue with anyone else, or is it something I'm doing?
 
Old 10-29-2012, 11:44 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello iiClouds, welcome to LQ and Slackware,

I have a subnotebook (Lenovo x100e, AMD, 2GB of RAM) with Slackware64-14 and the batterylife is more or less the same like with Windows 7 on the same computer.

Note that I have configured for low CPU-frequency (governor conservative), you'll find a tutorial here: http://docs.slackware.com/howtos:har...quency_scaling

But how about the batterylife on your laptop with Windows? Did you have another Linuxdistribution on the computer before you installed Slackware? And please tell us which Laptop you have (architecture, RAM etc.). Do the functionkeys work? can you configure the brightness of the screen (backlight)?

Markus

Last edited by markush; 10-29-2012 at 12:10 PM.
 
Old 10-29-2012, 12:05 PM   #3
Mobile1
Member
 
Registered: Jun 2006
Location: Sardis, B.C., Canada
Distribution: Slackware64 15 -current
Posts: 248

Rep: Reputation: 70
I too have the same kind of results with battery life, it seems like there is no battery life. I have to run my laptop with AC plugged when using Slackware 14 - Windows I can run for a few hours before it drops to an unusable state.
 
Old 10-29-2012, 12:29 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Would be nice to get some more infos:
- Which hardware are you using?
- Which drivers?
- Is the CPU frequency scaling configured and working?
- Do you have laptop-mode-tools installed and configured?
 
Old 10-29-2012, 03:49 PM   #5
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Actually pm-utils is doing things very well for me.
 
Old 10-29-2012, 04:07 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
pm-utils are a set of tools for setting your system to suspend or hibernate. How does that prevent the battery from draining if the system is running?
 
Old 10-29-2012, 04:59 PM   #7
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 598
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I have a Toshiba z830 running 14.0 at the moment. Under windows it was getting ~5 hours battery life. With a stock Slackware install I would get ~3 hours battery life. Luckily however, I found this page at the linux laptop wiki. Adding the following lines to my lilo kernel boot parameters gives me 5-6 hours battery life in Slackware depending on how aggressive I am with screen brightness.

Code:
append="acpi_osi=Linux acpi_backlight=vendor pcie_aspm=force i915.i915_enable_rc6=1 i915.lvds_downclock=1 elevator=noop vt.default_utf8=0"
 
1 members found this post helpful.
Old 10-29-2012, 05:21 PM   #8
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by TobiSGD View Post
pm-utils are a set of tools for setting your system to suspend or hibernate. How does that prevent the battery from draining if the system is running?
Code:
$ grep power.d /var/log/packages/pm-utils-*
etc/pm/power.d/
usr/lib/pm-utils/power.d/
usr/lib/pm-utils/power.d/pcie_aspm
usr/lib/pm-utils/power.d/hal-cd-polling
usr/lib/pm-utils/power.d/xfs_buffer
usr/lib/pm-utils/power.d/intel-audio-powersave
usr/lib/pm-utils/power.d/harddrive
usr/lib/pm-utils/power.d/sched-powersave
usr/lib/pm-utils/power.d/journal-commit
usr/lib/pm-utils/power.d/laptop-mode
usr/lib/pm-utils/power.d/wireless
usr/lib/pm-utils/power.d/readahead
usr/lib/pm-utils/power.d/disable_wol
usr/lib/pm-utils/power.d/sata_alpm
 
Old 10-29-2012, 07:40 PM   #9
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by iiClouds View Post
First post here. New to the forums. Linux novice.
I just installed Slack on to my laptop this morning while it was charging. I got the install and everything. Played around while it was charging. Now, I take my laptop off the charger and near 30 minutes later, the battery life is nearing 55%. Is battery life an issue with anyone else, or is it something I'm doing?
It's a known issue. Not in Slackware, but in Linux. You usually get about 50 % of the battery life of the pre-installed OS. By fiddling around with powertop and laptop-mode-tools you can get it up to about 70-80 %, if you are lucky.

Use BattStat on the pre-installed OS to look for the time/wattage you are aiming for, then compare the readouts of powertop to it.
 
Old 10-29-2012, 08:25 PM   #10
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
It's going to depend on what hardware/drivers you're using, but on my Intel Core i3 (Sandybridge) laptop with Intel HD 3000 graphics I get a couple more hours of battery life after applying these tweaks:
http://www.phoronix.com/scan.php?pag...15_power&num=1

Now I get around 5-6 hours in Slackware64 14.0, which is the same as I got in Windows.
 
Old 10-29-2012, 10:39 PM   #11
iiClouds
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
My battery life while doing the same stuff in Windows is usually about 2 and a half hours. I'm going to try setting the governor to something different. I'll report back tomorrow with what I get.
 
Old 10-29-2012, 11:17 PM   #12
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306

Rep: Reputation: 47
My setup:

MacBook Pro 8,1 + mountain lion os: about 6 hours
MacBook Pro 8,1 + Slackware 14.0 x86_64: about 3 hours after tweaks to save some power.

Not satisfied for the battery life under slackware!
 
Old 10-30-2012, 12:03 AM   #13
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306

Rep: Reputation: 47
Quote:
Originally Posted by D1ver View Post
I have a Toshiba z830 running 14.0 at the moment. Under windows it was getting ~5 hours battery life. With a stock Slackware install I would get ~3 hours battery life. Luckily however, I found this page at the linux laptop wiki. Adding the following lines to my lilo kernel boot parameters gives me 5-6 hours battery life in Slackware depending on how aggressive I am with screen brightness.

Code:
append="acpi_osi=Linux acpi_backlight=vendor pcie_aspm=force i915.i915_enable_rc6=1 i915.lvds_downclock=1 elevator=noop vt.default_utf8=0"
I just tried your approach because my system has i5 cpu/gpu, it helps a lot. XFCE reported one hour more battery life. I have about 4 hours and 20 minutes battery life!!!
 
Old 10-30-2012, 02:12 AM   #14
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 598
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by kite View Post
I just tried your approach because my system has i5 cpu/gpu, it helps a lot. XFCE reported one hour more battery life. I have about 4 hours and 20 minutes battery life!!!
Glad to help
There is a little bit of info on some of the options in the Phoronix link that Piratesmack linked. I think they're all pretty harmless, I haven't noticed any negative efftects, only a doubling in battery life heh..
 
Old 10-30-2012, 04:51 AM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Keep in mind that a bad battery life can also be caused by using the free drivers if you have a AMD/ATI or Nvidia videochip in your notebook.
 
  


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
Laptop Battery life.. Does Distro affect battery life?? jeevanism Linux - Hardware 6 07-09-2011 02:16 AM
Laptop's battery life Aquarius_Girl General 126 04-05-2011 03:20 AM
Slackware 12.1 & laptop battery life Alstare Slackware 16 07-18-2008 06:15 AM
laptop battery life jb2006 Slackware 6 03-31-2006 08:54 PM
windows, good battery life -> fedora, bad battery life daedalusq1115 Linux - Laptop and Netbook 1 01-17-2005 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:30 PM.

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