LinuxQuestions.org
Visit Jeremy's Blog.
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 04-17-2010, 08:56 AM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
slackware power management on laptops


I've got a new netbook - Dell Inspiron mini 1011. I have installed slackware 13 on it. According to dell's website its battery should last up to 9 hours:
Quote:
Mini 10 offers up to 9.5 hours of battery life1 to keep you on the go.
I understand that it depends on a variety of factors and these are just testing estimations that will probably never be achieved IRL.

For 95% of the time I don't run X on it. Just emacs (gnus), nethack, elinks. If I do run X, it's fluxbox. The average battery time is 2hrs - 2.5hrs. I understand that Slackware 13 is not designed specifically for netbooks, but 2hrs is way off the 9-hour estimation. Either the battery is faulty, or it's the power management issue.
Before I deal with the battery, I'd like to ask you for some suggestions on improving the power management.
The acpi and acpid are installed on the system. Are there any packages that would improve the battery performance? Or perhaps some config options?
I believe that recompiling the kernel would improve it, wouldn't it? What options I'd have to set/unset?

P.S.Unfortunately, once I checked the netbook is ok, I removed WinXP that came with it, so can't compare with it.

Thank you
 
Old 04-17-2010, 09:01 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Try what happens if you run X for a while... KDE and XFCE come wih a power management daemon which should give you better battery time. If indeed that is what you will see, then at least you know that it is possible. Next step would be to look into tweaking power management from the console. Two hours is way too low, you should be able to get around the same battery time in Slackware 13.0 as with Windows.

Eric
 
Old 04-17-2010, 09:06 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by Alien Bob View Post
Try what happens if you run X for a while... KDE and XFCE come wih a power management daemon which should give you better battery time. If indeed that is what you will see, then at least you know that it is possible. Next step would be to look into tweaking power management from the console. Two hours is way too low, you should be able to get around the same battery time in Slackware 13.0 as with Windows.

Eric
Thanks for your reply. I started X with xfce (I didn't install KDE) Before I unplugged the power cable, I checked and the battery was 100% charged. After unplugging the cable, the battery said: Estimated time left 2hrs 25 minutes.
 
Old 04-17-2010, 09:24 AM   #4
unmonkey
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Rep: Reputation: 0
Hi,
You might look into powertop as a place to start.
 
Old 04-17-2010, 09:46 AM   #5
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
I believe the Xfce or KDE power management daemons will revise their estimate as time goes on, so I would do a full charge, start Xfce, and then use the laptop for while and see if it really runs down at 2:25. I would also recommend powertop to reduce power usage.

Ultimately, the laptop and BIOS manufacturers tweak things specifically for Windows, and Microsoft/Windows has access to proprietary hardware and BIOS information that Linux does not, so there are some software tweaks in Windows that improve battery life. As a result, I have generally found that Windows' battery life is longer than that on Linux and there's not much that can be done unless those manufacturers openly release that same info.
 
Old 04-17-2010, 12:48 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by sycamorex View Post
Thanks for your reply. I started X with xfce (I didn't install KDE) Before I unplugged the power cable, I checked and the battery was 100% charged. After unplugging the cable, the battery said: Estimated time left 2hrs 25 minutes.
I am beginning to think that your battery actually is lasting for 2.5 hours only after a full charge. The web site may be incorrect about the battery - you can check the capacity which is written on the battery (mAh value) and report that here. Perhaps your netbook is equipped with a smaller-capacity battery than you thought.

Eric
 
Old 04-17-2010, 01:14 PM   #7
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Thanks for all your answers.

Quote:
I believe the Xfce or KDE power management daemons will revise their estimate as time goes on, so I would do a full charge, start Xfce, and then use the laptop for while and see if it really runs down at 2:25. I would also recommend powertop to reduce power usage.

Ultimately, the laptop and BIOS manufacturers tweak things specifically for Windows, and Microsoft/Windows has access to proprietary hardware and BIOS information that Linux does not, so there are some software tweaks in Windows that improve battery life. As a result, I have generally found that Windows' battery life is longer than that on Linux and there's not much that can be done unless those manufacturers openly release that same info.
After leaving it for a minute or so it actually increased by 10 minutes. I haven't checked the powertop software yet, as I am afraid it wouldn't help much. I borrowed a windows XP CD from my neighbour and installed it along with any drivers/utilities for this netbook from dell's website. It also said 2.5hrs!!!
Quote:
I am beginning to think that your battery actually is lasting for 2.5 hours only after a full charge. The web site may be incorrect about the battery - you can check the capacity which is written on the battery (mAh value) and report that here. Perhaps your netbook is equipped with a smaller-capacity battery than you thought.
I'm afraid it might be the case. The battery says 11.1V Capacity 24Wh, min. 2.1Ah.
The output of acpi -V is as follows:
Quote:
Battery 0: Full, 100%
Battery0: design capacity 1948 mAh, last full capacity 1941 mAh = 99%
What does it mean for me?
 
Old 04-17-2010, 01:29 PM   #8
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
It appears you have the smaller 24 Wh 3 cell battery and 2 to 2 1/2 hrs is about right for those. According to my Google-fu, Dell also sells a larger capacity 56Wh battery that provides about 8 hrs life for that particular model but by default, it ships with the 3 cell battery.
 
Old 04-17-2010, 02:06 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Well, you could turn on CPU frequency scaling.

echo ondemand > /sys/devices/system/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu1/cpufreq/scaling_governor
...

Do it for each CPU you find in /sys/devices/system.

If the cpufreq directories don't exist, then you need to load the appropriate kernel module. It's acpi-cpufreq for Intel's CPUs and powernow-k8 for AMD's.
 
Old 04-17-2010, 02:18 PM   #10
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by chess View Post
It appears you have the smaller 24 Wh 3 cell battery and 2 to 2 1/2 hrs is about right for those. According to my Google-fu, Dell also sells a larger capacity 56Wh battery that provides about 8 hrs life for that particular model but by default, it ships with the 3 cell battery.
Crafty ba...rds!!! I bought it in store and remember the tag did say up to 8 hrs. There was a discount on this netbook, though. Now I know why.

Thanks for your help.
 
Old 04-17-2010, 02:21 PM   #11
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
It is tricky to separate the marketing hype from the truth as I discovered when shopping last year for a netbook for my wife. The "standard" battery is usually a smaller capacity than the advertised optimal specifications. Buyer beware and all that. These days, KDE/XFCE etc with the newer 2.6.x kernels do a much better job if you do a bit of tweaking. On the MSI netbook (Atom CPU, intel GPU) I can get about 70-80% of rated battery life (WinXP or Slack32) and on my work Dell Latitude (Dual core Intel, intel GPU) I average about 2.5-3 hrs (about 70% of rated time). With either laptop, with either OS, to get anywhere near the advertised battery life, I have to turn off bluetooth, turn off wifi, turn off/dim the LCD backlight, and make sure the CPU is throttled back (of turn off one core) and pretty much not use it!.

So when I read the battery specification claims, I just chuckle. In real world usage, you'll be lucky to get 50% of the rated life. Although, to be fair, the MSI netbook does a fair job as it does get 6-7 hrs in use (rated at 9 hrs.).

Just my 2 cents.
 
Old 04-17-2010, 02:29 PM   #12
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by dugan View Post
Well, you could turn on CPU frequency scaling.

echo ondemand > /sys/devices/system/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu1/cpufreq/scaling_governor
...

Do it for each CPU you find in /sys/devices/system.

If the cpufreq directories don't exist, then you need to load the appropriate kernel module. It's acpi-cpufreq for Intel's CPUs and powernow-k8 for AMD's.
Thanks, I have appended it to those file. Upon rebooting the system it doesn't seem to make any difference.
 
Old 04-17-2010, 02:38 PM   #13
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
So when I read the battery specification claims, I just chuckle. In real world usage, you'll be lucky to get 50% of the rated life. Although, to be fair, the MSI netbook does a fair job as it does get 6-7 hrs in use (rated at 9 hrs.).
At work I've got an HP laptop (some business model, don't remember now) running XP - its battery is a real beast - On a few occasions I did almost a full day of work on battery.

Nevermind, I'll go to the store and try to argue the case.
 
Old 04-17-2010, 05:26 PM   #14
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
I have the same computer

The Inspiron 1011 is actually the Mini 10v, not the Mini 10.
If you have the 3-cell battery, then 2 1/2 hours is normal (on both Linux and Windows)

An easy way to tell if you have the 3-Cell battery is your Mini 10v will lay flat when you set it down. The 6-cell battery sticks out a little and acts like a mini stand:
http://mattsshack.com/wp-content/upl.../Profile-2.jpg

Last edited by piratesmack; 04-17-2010 at 05:29 PM.
 
Old 04-17-2010, 05:28 PM   #15
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by piratesmack View Post
I have the same computer

The Inspiron 1011 is actually the Mini 10v, not the Mini 10.
If you have the 3-cell battery, then 2 1/2 hours is normal (on both Linux and Windows)

An easy way to tell if you have the 3-Cell battery is your Mini 10v will lay flat when you set it down. The 6-cell batter sticks out a little and acts like a mini stand:
http://mattsshack.com/wp-content/upl.../Profile-2.jpg
Thanks for the photo. Yep, definitely I've got a 3-cell battery
 
  


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
Power management on Dell Inspiron 5100 and Slackware 13.0 mbbrinker Slackware 8 10-23-2009 01:58 AM
Power Management with Slackware Cotobear Slackware 5 06-22-2009 11:38 PM
Power Management in Slackware JazzItSelf Slackware 1 03-04-2009 11:46 AM
comprehensive laptop power management toolset for slackware duhwhat123 Slackware 10 12-31-2007 09:28 AM
display power management in kde on slackware 9.1 win32sux Slackware 11 02-07-2005 06:58 AM

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

All times are GMT -5. The time now is 10:06 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