Why Is Linux Notebook Battery Life Still Poor?
Ganty writes "I recently purchased a Lenovo W500 notebook, and after 'downgrading' to XP and creating a dual partition, I found that I had a battery life of nearly three hours using the long-life battery, at this point I was a happy camper because it means that I can watch a DVD during a flight. I then tried various Linux distributions and found the battery life under FOS to be very disappointing, with an average of 45 minutes before a warning message. After settling on Ubuntu I then spent three days trying various hardware tweaks but I only managed to increase the battery life to one and a half hours. Unwanted services have been disabled, laptop mode has been enabled, the dual core CPU reduces speed when idle and the hard drive spins down when not needed. Obviously Apple with their X86 hardware and BSD based OS have got it right because the MacBooks last for hours, and a stock install of MS Windows XP gives me three hours of life. Why is battery life on notebooks so poor when using Linux? Some have suggested disabling various hardware items such as bluetooth and running the screen at half brightness but XP doesn't require me to do this and still gives a reasonable battery life."
Is your screensaver running SETI?
Probably not a good idea if you want to conserve battery life.
Linux is a popular choice for netbooks, where battery life is paramount. Does windows still have an advantage there?
Give me Classic Slashdot or give me death!
I may sound like a jerkwad here, but why waste all that battery power watching a dvd when you could watch the divx version off local storage?
ever heard of power management?
it's on by default in windows.
maybe you should figure out what your settings are for linux?
I don't know how you can expect us to fix your problems when you won't even take the time to read the documentation provided with the release.
In order to solve your problem, you need to set the RANDOMLY_DISCHARGE_BATTERY flag in the kernel source to "0" at compile time. Ubuntu, as well as other "desktop" distributions, set this flag to "1" by default for some reason, but simply installing the source packages and recompiling your kernel will fix the issue.
Honestly, a simple well-tailored Google search and a few measly days of sifting through the docs would have given you this answer without having to waste everyone else's time.
I get about 4 hours on my notebook running ubuntu. Sounds like something isn't configured properly on your notebook, I've never had any such problems.
The summary writer describes trying various Linux distributions and concludes that results under FOSS are poor. But FOSS comprises more than just Linux.
I was able to get my X41 tablet to have good battery life (a bit better than windows actually), but it took some doing. Powertop is a godsend, it pointed me to the i915 intel drivers as the culprit. Disabling DRI made a huge difference.
If you're running on an Intel platform, try running powertop. I can easily gain over an hour of battery life by disabling the services it recommends and reducing the screen brightness.
Here's some concrete evidence. Take a look at http://event.asus.com/eeepc/comparison/eeepc_comparison.htm in which Asus compares their different eee netbooks. Go to the battery life column and observe how, unfortunately, XP consistently outperforms Linux :(
And I have plenty of anecdotal evidence that power management works really well with whatever OS the computer was intended to run, and is alright-to-crappy with any other OS.
My MacBook Pro runs decently in OSX, and drains quickly in WinXP.
My HP Compaq laptop runs really long in Vista, though its still alright in Linux. (haven't done a comparison, though... But Linux still whines when battery #1 is almost dead, even if I have battery #2 available, installed, and at 100%)
The crux of the problem is that Linux is *rarely* the "intended OS" for any of these platforms, so the hardware manufacturer never invests any effort to make sure Linux power management drivers work correctly on them.
He only wasted you time and informed me and about everyone else who didn't know this. Thanks eln!!
Have you tried PowerTop? Discussed here. I haven't tried it myself, since my linux laptop is an ancient PPC. I have noticed a somewhat short battery life on my linux laptop though. Not sure why.
Gentlemen! You can't fight in here, this is the war room!
Linux is a popular choice for netbooks, where battery life is paramount.
You mean "was", until Microsoft decided to keep Windows XP alive in the North American market for a few more years at bargain-basement prices per copy.
This really is an issue, and hardware support varies. Your notebook seems to include an ATI graphics card. That's probably your problem. Last I looked neither the open source, nor the ATI graphics drivers supported power savings on the ATI cards. I have an Asus F8Sv, which actually gets longer battery life in Linux, about 10 minutes, even though when running Linux, I have an external hard drive connected. It's got an Nvidia Geforce 8600 graphics card, with Nvidia's drivers. (Mind you, this is with OpenGL composting enabled, under Kubuntu (both 9.04 and 9.10) The other big one is Intel cards, which are supported for most of their power management features under the driver Intel helped write.
I dragged my old 15" Powerbook (1Ghz G4) out of retirement to have a look at Ubuntu, and while this may be a totally unfair comparison since the PPC build is hardly going to be the major focus of their optimising, but the PB did run much hotter under Ubuntu than it did under 10.4, and fan control was much less precise. It's not surprising, since Apple made the thing and obviously designed OS X around all the various controllers and sensors in it and Ubuntu has to run on anything you can throw it at, but that would be what I put this down to.
I was not sufficiently experienced at the time to do much to cure it, but I did install some software that had been written to make the fan control better which did help a little to keep it cool, but I'm not sure it would last long away from the power adapter.
My xps1330 gets 4-6 hours of battery life. You're doing something wrong.
This is just the same problem Noted in XKCD.
Good battery life is not cool. Open source software, especially a mutt like linux, is all about cool.
Good battery life requires annoyingly huge amounts of microoptimizations and chipset-dependent tricks. Which is most definatly NOT cool.
Test your net with Netalyzr
You can run $sudo powertop and follow the suggestions there. Have you tried that ?
Not sure what you are doing. I own a T500 with debian running on it. I easily get three hours of battery life with WLAN running and the LCD at unnecessarily high brightness level. If I disable everything I get six or more hours depending on workload...
Not sure what would happen if I tried to play a dvd, never did that without ac connection.
Oh btw, check you are using intel grafics. I recall to have read bad things about ATI card powermanagement.
I use a Compaq F756NR, and get about an hour and a half in Vista, and maybe an hour fifteen in Win7. In Arch, I get a minimum of two hours. A fresh install only gets about 45 minutes - there is a power management package you have to install, and configure for how you want it to work. I've got mine set up to automatically scale up if the CPU reaches 80% load, and down once it drops below 50%.
I don't have my laptop with me, or I'd get you the package name. It's been over a year since I installed it, so I've forgotten :(
Learn about Photography Basics.
Perhaps the linux developers need to write more efficient code?
Subscribe, and get a real nickname.
Added bonus: people will stop thinking you're a coward
Use powertop to analyze power consumption.. and try the various things specified on the following site:
http://www.thinkwiki.org/wiki/How_to_reduce_power_consumption/
With recent laptops, I haven't noticed or cared, but I had a netbook before it was called a netbook -- the Sharp Actius MM10. And while I never tried it on Windows, it had one battery that supposedly lasts two and a half hours hours (that I remember lasting 3 hours), and another that supposedly lasts seven and a half hours (that I remember lasting 8-12 hours).
It's worth mentioning that I don't remember half the tweaks I did to this machine. With only a 15 gig hard drive and 256 megs of RAM, I installed Gentoo and used CFLAGS=-Os, custom-compiled my kernel complete with suspend patches and Reiser4 (practically a laptop mode all by itself), and otherwise modded it in every way known to man. I mean, I had a Fluxbox desktop with no menu, only the equivalent of alt+f2; because I didn't have any advanced power management running, I wrote my own Perl scripts to check the battery state, and to respond to ACPI events (lid closing locked it but didn't suspend, power button at various times would hibernate, or display a giant message saying "PLEASE DON'T PUSH THE POWER BUTTON, KTHNX"...
Also worth mentioning that Reiser4 wasn't the only prerelease software I used -- and it was prerelease, at the time. I backed it up frequently.
Still, I'm fairly surprised to learn that Linux battery life sucks on modern notebooks. My current machine was not built for battery life, so I've never actively run a test.
I suppose what's worse than that, though, is how much battery life sucks on modern notebooks, period, including netbooks. I admit the Transmeta chip felt sluggish, but on the other hand, can you buy any laptop today that'll run for nine hours on a charge, to where you can simply leave the power adapter plugged in at home for the day?
Don't thank God, thank a doctor!
Like the submitter, I recently installed Linux on my Laptop. Surprisingly, everything "just works" after a few apt-gets but battery life is very piss-poor compared to XP and there ain't much I can do about it. I boot to Linux to take notes in class -- and get the girlie's stinkboxes wet -- with compiz eye-candy while I can plug it in, but it's still good ol' XP for everything else.
But please do call me when Linux is done playing catch-up to '90s-era technology. And let your 3 friends with good battery life know that most people don't buy laptops to run a full-time CLI.
Yours in trolling,
-- Ethanol-fueled
I don't use ubuntu, but for me, my Arch setup with awesomewm lasts almost 1.5 times as long as windows. YMMV.
I think it's more likely that compiz which comes with ubuntu is the culprit here.
Truth is: Linux is not specifically intended to have laptops as end target, think how bad is the experience with suspend/hibernate in Linux, look how horribly bad the wireless is supported (ok, also Intel's fault, but ever tried get the wireless up and running after your basic installation of many distributions?!). Then what to say of early laptops 'burning' with Linux? And lack of support for proper FAN regulation that makes them tenfolds noisy (ok, because the vendors exchanged their fan specs just with M$ sometimes), and so forth.
In general the FOSS community seems to me more oriented to "as long as is works" and "as long as is as powerful as possible" philosophy (ok, sometimes Power Saving rules are quite much odd, too). Serously, Linux has done many steps forward, but we're not (yet) ready for the desktop, on a laptop. Your mileage may vary depending on the distribution.
I would like to know which version of Ubuntu he has chosen and what other distros he's done. Off the top of my head for distros I'd try:
1) Ubuntu Netbook Remix (Both Gnome and KDE)
2) Moblin
3) Puppy
4) Macpup Opera
5) Xubuntu
6) gOS
7) Damn Small Linux
Yep - either those who target netbooks or those which try to be resource friendly. If one can run on a much older system well then a newer system it should hum, plus not be such a big hit on the battery life.
I call it 'The Aristocrats'
Some have suggested disabling various hardware items such as bluetooth and running the screen at half brightness but XP doesn't require me to do this and still gives a reasonable battery life
Are you sure? My netbook dims the screen when I pull the power cord on both XP and Win7... though it might be the BIOS doing that.
Anyway my suggestion is checking if ACPI works as it should. AFAIK laptops are notorious for buggy ACPI implementations that are only tested with Windows. Linux now pretends to be Windows XP when doing ACPI stuff, before that they noped out some part of the BIOS to make it work with Linux but that wasn't reliable. Look into if you can change how Linux does ACPI and try that.
Perhaps you haven't configured your kernel or power settings fully even on my old Thinkpad 760 (Pentium 166) I got 50% more battery life out of Linux then Windows...
If you check your CPU freq via /proc/cpuinfo does it drop? Perhaps you are using the "performance" instead of the "Ondemand" CPU Freq governor...
Life is but a Beta test...
So it seems the posts here are telling this person to use a different method to watch the movie.
the question remains, why is Linux sucking up batteries at 2,3 times the rate of OS X and even Windows XP ?
I've seen that the Lenovo W500 has a AMD FireGL V5700 discrete graphics card. If you use the proprietary driver from amd (fglrx), you can use aticonfig to switch on power saving for the graphic card. Otherwise it sucks too much energy.
...running a fairly powerful laptop, a Dell Latitude D630 (Core2 Duo T7500 2.2GHz, 4GB RAM, Seagate Momentus 7200rpm 120GB HD, nVidia Quadro NVS135M w/256MB RAM) on Fedora 10. I regularly run it for 4-5 hours on battery.
Comparing a MacBook to a PC is not really fair. Hardware specifically designed for the OS... or an OS designed specifically for the hardware... that's not a fair comparison to Windows or Linux and generic PC hardware. As far as I know, Windows does not tailor it's code to all Dell, Lenovo, Gateway, HP, and Asus laptops. Apple tailors OSX to Mac hardware. Perhaps the hardware manufacturers do, but it should be able to go both ways.
The HP Vista-Linux comparison is better.
I have not yet seen your "plenty of anecdotal evidence," I guess. :)
I think a better explanation is this: Linux's developers are not particularly interested in long battery life.
http://hardware.slashdot.org/comments.pl?sid=1347015&cid=29187931
I'd say though, that this level of customisation of linux in order to get decent battery life in comparison with xp is a barrier to takeup. the Linux kernel dev team, and various package maintainers need to switch on to this.
The hackintosh community has noted that netbooks run hot with Firefox (all versions),
but stay cool when running Safari. This problem is discussed here:
http://mydellmini.com/forum/general-mac-os-x-discussion/6550-my-os-x-mini-gets-pretty-warm.html ... but is not limited to mini9 hackintoshes. Other netbooks with heat issues run
hotter with firefox.
Perhaps firefox has a busy loop for event dispatching somewhere? I did a simple
test running down my battery, and firefox cuts it in half. (!) But that's just one data point.
Anyone know for sure?
kernel developers are smarter than that, and know that would be impossible to support. The real flag is PSEUDO_RANDOMLY_DISCHARGE_BATTERY.
"National Security is the chief cause of national insecurity." - Celine's First Law
Yeah, my Asus Aspire one lasts for about 3 hours on a charge under Linux.
I am using a W500 on Debian right now. Because this laptop has two graphic cards and because the ATI has no open source drivers, I use the intel card on Linux. I read a lot of reports about the ATI card using a *LOT* of power. Try disabling the Switchable Graphics in the BIOS.
We need a -1 TrollFeeder option
"A person is smart. People are dumb, panicky dangerous animals and you know it." - K
Battery is reporting 3 hours 20 minutes runtime. Running Fedora 10. Pretty much the same as it was when running Windows XP.
While I can't say that my Dell laptop's power management has been piss-poor under Windows (I can't really say that I used Windows on THIS particular computer that much, but I did on previous Dell models) and the power management was pretty excellent especially when the Intel speedstep software was running. If it helps, I run Fedora and Fedora and Dell laptops have been getting along fabulously for at least the past 6 or 7 version releases.
But one thing about running Windows that has always been a complaint and that's it's estimation for "time remaining." Whether looking at file transfers or remaining battery life, Microsoft ALWAYS seems to over-estimate "time remaining" or has at least reported the most optimistic figure possible. What I'm getting at is that it is QUITE possible that the Windows battery life you are reading is either untrue or unrealistically optimistic.
I know on my Dell Mini 9 running XP and watching video on battery power initially claims I have like 3 or 4 hours battery remaining, but before the two hour movie is complete, it wants to die.
The biggest source of battery drain on my netbook is CPU processing. No doubt with my other notebook, it would be hard drive usage followed closely by processor/gpu usage. This leads me to the next suggestion when using Linux -- use the graphics driver provided by nvidia or ati. They manage power better because they have the "secrets" that the GPL drivers don't have access to. Remember that a GPU is still a processor and eats power when processing.
Power management on laptops is all about paying attention to everything that draws power and being aware of it. For example, if it generates heat, it's using power... usually lots of it and cooling systems draw even more power as a consequence. Dial that speedstep down WAY low when unplugged.
it is perfectly fair to compare macbooks to a laptop machine, if the os being tested is the one that shipped with the laptop. They ship the device as is, their os choice is not relevant to how you should rate them for battery life
To start with, I'd guess the problem is DFO related. Dumb Fucking Operator. To be cute, he used the word 'downgraded', which is a gentle way of saying he was too ignorant to know that Visa works just fine. Ever influenced by the popular opinion of the uninformed, he installs Windows XP because he's not going to be fooled like the rest of those 'idiots'. Oh the irony.
Couldn't agree more with OP. My GF has a aony vaio VGN-31H to be precise. Around 1h30 of battery life when watching a movie with win XP, around 45min. since she "upgraded" it to ubuntu.
I looked everywhere to find a obvious culprit but there is none. ACPI not being used properly is a hint I found, but the ACPI config files (don't remember exactly what they where) are so difficult to change without messing up that we abandonned the idea.
I will give powertop a try, it'll be nice to make this laptop run a bit cooler.
This is, of course a vast simplification, but it gets the point across. The linked to article also shows how to use laptop mode to address these issues and extend batterly life (although, it seems to me that there is a trade off in the ability of journaled file systems to perform correctly).
It is no use setting sleep mode on the HDD if you leave Syslog running.
Excuse me, but please get off my Pennisetum Clandestinum, eh!
I've had to recalibrate my battery twice in Linux, with limited usefulness, and I suspect you're suffering from the same problem. Specifically, after the indicator shows a completely drained battery, providing I disable auto-shutdown the computer will continue to operate for a significant amount of time. - Run the battery completely dead. - Charge the battery with the computer turned off. - Run the battery completely dead.
XP's default file system is NTFS, and NTFS is journaled, so I don't think Linux gets an easy out there...
Do you leave your battery plugged into the notebook when you have the notebook plugged into the wall?
enjoy dramatically shortened battery life because of the heat killing your battery.
As others have said - check your hardware and hardware drivers, it's quite doubtful that it's your OS causing the issue.
Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
That wouldn't fit with the massive loss seen by TFS. Anecdotal, yes, but my old notebook ran ~3 hours on Windows or FreeBSD (sorry, don't know about Linux), using defaults for windows, and BSD compiled without extra drivers. I would expect FreeBSD to have a similar loss to Linux in that case (journaled file system). Also, the shared partition that both Windows and FreeBSD accessed was EXT3.
Self proclaimed typo king, and inventor of the bear destroying coffee table (patent not pending).
The information you provide is ... well ... sparse. By far not enough to draw the conclusion you draw.
What about your wifi, bluetooth, are they on? At what power level? Is the webcam always on? Is the optical drive doing things it shouldn't?
Nevertheless it should indeed be said that out of the box, Linux battery life sux.
0x or or snor perron?!
When it *is* the intended OS, it's usually a highly customized version/distribution that's optimized perfectly for the hardware, too. My Dell Mini 9, for example, gets about 5.5h of battery life with the Dell-branded Ubuntu installation. When I wiped it and installed another distro of my choice, the battery life dropped to 3h. While I loathe Ubuntu, I ended up going back to their Ubuntu installation because a netbook needs that kind of battery life.
If you believe everything you read, you'd better not read. - Japanese proverb
That is similar to my experience with a ThinkPad T400. I bought it one year ago with Windows Vista pre-installed, moved to Windows 7 as soon as the RC1 came out, and have been using Ubuntu 9.04 as my primary OS for the past 2 months (dual-boot with Windows 7 which I rarely use). Battery life is definitely much more reduced in Ubuntu than in Windows, where I was using the officially supported Lenovo drivers. Powertop seems to help in Ubuntu but changes performed are not permanent, since every time I reboot and run it (using sudo), it gives the same suggestions. Anyone has a good tutorial for fixing this?
Comment removed based on user account deletion
The W500 actually comes with 2 video cards, one discrete and another integrated. It's been found that if you switch from the discrete to the integrated, your battery life jumps up from the ~2.5 hours of battery life to over 5. I'll dig up the link here.
I'm surprised, my experience with Ubuntu 9.04 is very good on similar Thinkpad hardware. After upgrading from a decrepit IBM T42p to a Lenovo T61p (UXGA->WUXGA = similar screen size/power demands to the hi-res W500), I still get ~4:00 out of the Thinkpad extended battery.
Some ideas; perhaps these will be useful: .45A Seagate, and my experience was dramatic: 30-45min more battery time from that change alone. When I upgraded the recent hdd, I made sure to select one with less than .5A consumption.
- There is a bios setting on the Lenovo-era Thinkpads where you can force the screen to high brightness. My Ubuntu install manages this correctly (i.e. turns it on when on line power, off when on battery). However if yours does not kick the brightness to the normal range off line power, it'll kill the battery faster than any other factor. On high display brightness, you will be lucky to get more than 90min on battery.
- Hard drive power consumption does make a significant difference, and for that, Windows does tend to spin down the drive more frequently. With a high-load drive the difference can be pretty dramatic, but a more efficient drive closes the performance gap even if Linux isn't as aggressive with drive power management. For example, with the last upgrade to the T42, I replaced the old 1.1A IBM drive with a
- Check your display drivers. On the T61 with the default Ubuntu installation, the CPU load increased with the open-source video driver, because it's compensating for certain unknowns in the GPU by offloading to the CPU/being more inefficient. Loading the Nvidia driver not only increased performance (a lot), but (again) noticeably reduced power consumption.
In short, optimize, optimize, optimize.... and sometimes that means installing the right driver, not stripping things down.
I think not...(*poof*)
Oddly... I have some anecdotal evidence from a laptop that came with Linux that backs up THAT statement. I use an N Series Dell Laptop that came with an Ubuntu installation and I've always had solid battery life. I did an upgrade of the Ubuntu distro and it continues to be true. So maybe Dell paid some attention this this? Who knows.
Oare we talking notebooks or netbooks? Linux on my netbook had a lot more battery life then XP or OSX on the same netbook. Win 7 may beat it or be close. haven't fully tested it yet. It could also be that the SSD drive is liked more by Linux then XP for me.
But have others have said, are the power saving setting turned on? I thought those were turned off by default. Is it even a fair test? Are both machines the same? Both OS set to turn the same things off?
What do you mean? I just turned on my laptop linux and it always lasts ove
I use Mandriva in my Asus 1000H, with XP the battery is ~4 hrs, with Mandriva ~6hrs.
But never Whiny /Linux.
This isn't a general problem - do you really think people would be running Linux on laptops at all if their battery life went from 3 hours on Windows to 40 minutes on Linux?
I happily get much longer battery life on my Linux laptops, because they're much more configurable. A couple of years ago I watched three movies in a row on my 17-inch Dell laptop on an international flight - this machine gets three hours with a tailwind running Windows and doing much of anything. How did I do it? I loaded the movies into a RAM disk and set the hard drive to power down, shut off syslog, and removed the DVD drive completely. Try that on a Windows box!
Notwithstanding trickery, I also get better life in normal use as well.
Please choose a title like "Why does my laptop get bad battery life on Linux"? And post it on a Linux support board, not on Slashdot.
It's sadly true that almost all Linux applications / distributions have not taken writing-to-disk into account to reduce power. On the other hand, video / 2G / 3G graphics acceleration in hardware makes a huge difference, which is why I would really like to see more companies offering more in terms of stable hardware acceleration.
Why would the manufacturer lie in a way that makes its own product look worse?
I've personally experienced issues with my laptop BIOS. It works properly in Windows, but a lot of the ACPI functions just flat out don't work in Linux. This is due to a compiler that lets the code compile with errors (Mainly functions that don't return a value when they should). This allows the BIOS programmers to be lazy, and write half assed power functions that don't work properly.
You can fix a lot of these issues by following the instructions in one of the links below to decompile that portion of the BIOS, and recompile it using the Intel compiler. It isn't easy, and certainly isn't something an user should ever have to do. It did fix a lot of the power issues with my HP laptop though (Running hot, not booting on battery power unless a key was pressed, hibernation).
See
http://www.osnews.com/thread?230516
http://ubuntuforums.org/showthread.php?t=1036051
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/272247?comments=all
In this instance, you can blame MS's poor compiler for Linux's poor battery life.
Because linux is fucking terrible for desktop use.
The battery life on my desktop is just fine.
The only reason this post is "Informative" is because it links to XKCD.
Look in cron and disable stuff you do not use, especially locate.
Do not use the optical drive and make sure you are quiescing it.
Turn-off access time modifications for the hard disk.
Turn off fsck on boot.
Turn off periodic SMART status checking (on some drives this spins it up).
Tune the time to idle the drives and the periodic disk flusher (you have basically UPS with a laptop anyway).
Turn off swap.
Use a light simple window manager such as fvwm2 instead of something like gnome where lots of files are being accessed all of the time and you have many procs/threads running and the neat effects burn the battery.
Find the docs to your graphics drivers and tweak the tunables to use as little power as possible (this will give you much more than you likely expect).
Turn off bluetooth and wireless when you are not using it.
Don't use any of the crazy sound daemons.
You probably don't need wake-on-magic-packet for a laptop, turn it off, it helps a lot for some NICs.
Do you use multicast for wireless, most likely not, read the docs and figure-out how to get your driver to ignore that, it can conserve more power on some cards.
With some of the older chips USB was very power hungry in sleep (if that's your case tweak what you can so that it does as little as possible, likely turning off the wake on keyboard and mouse since you shutting and opening the lid should handle that).
Install a flash blocker and/or ad blocker and use gnash where you can instead of the adobe version.
Have you looked at your video drivers? Many laptops (sorry, haven't looked up your model) have video acceleration built into the video card that isn't always utilized by open source drivers, usually due to poor hardware documentation.
FWIW, switching to Nvidia blobs increased the battery life of my laptop quite a bit, especially for DVD / movie playback.
I went to eat some animal crackers and the box said, "Do not eat if seal is broken." I opened the box and sure enough..
My experience on my HP notebook is that Ubuntu 8.10, at least, kicks both Vista and XP's ass in battery life.
The world's burning. Moped Jesus spotted on I50. Details at 11.
The OP finds that battery life is poor using Ubuntu but then asserts battery life is poor in free operating systems in general. Spot the elementary mistake...err..that's the mistake of logic, not the choice of OS ha ha ha
Yes the kernel will be tickless by default but that's not really worth anything when multiple services are (in effect) polling continuosly....the wireless never sleeps, the bluetooth never sleeps, the metasearch crawler never sleeps, the CPU and disk are constantly busy...and battery life is woeful...surprise. Ubuntu with its Compiz UI would be better compared to Vista than XP because they are both (Ubuntu and Vista) intrinsically resource hungry. If good battery life is a priority then XP or a distro without all the UI candy and make for a much better choice. Plain old Debian with Gnome or KDE (or Xfce if composited desktop and nice transparency is required) will fare much better than Ubuntu every time, will have better performance all around and has the added benefit of negating the need to ever visit the truly dire Ubuntu Forums.
shocking that P & GP posted as AC
Wah Sig!
Yeah, my Asus Aspire one lasts for about 3 hours on a charge under Linux.
Could you post the distro/tweaks you did to get that? Mine gets about 2 hours with Ubuntu Jaunty Netbook Remix...
No sig for the moment.
As one of those non-techies who enjoys reading /. for the brilliant article summaries, insightful commentary and the sterling sense of humor of many posters, this little tale explains exactly why I am not willing to switch away from a mainstream operating system. I think I'm reasonably tech savy for someone who's never taken a computer programming class, but wow -- none of this makes the slightest degree of sense to someone like me. Can anyone explain why my initial gut sense is an over-reaction? Should my replacement computer (another laptop) be Linux (other than Apple)?
I used to run a slax based distribution on Asus eeePC and It would get better battery life than Windows XP and I got a good few hours on slax without very much tweaking. I think it really comes down to the hardware on the laptops ability to independently save power although I do agree that power management has to come much further in the linux world. P.S. OS X is not based on BSD, its a derivative of the mach microkernel, the precursor to OS X "Nextstep" had parts of FreeBSD incorporated into it.
Powertop is a good tool and a dead easy install to add. I also have a custom Linux remaster that I did that runs openbox and based on the latest ubuntu 9.04 and its focus is on power savings and running on older hardware. It has a utility with a gui that lets you tweak various options and users have reported better battery life. It is called wattOS and is listed on distrowatch. Check it out at http://www.planetwatt.com/ tks.....Ron
Stop feeding the trollfeeders, you trollfeederfeeder!
Making one of your products look better than another of your products doesn't really make any of your products look worse...
There are very few modern models where battery life is given as different from XP. In those cases the difference is rather small (not like what the article poster is experiencing). In at least one of those cases, the Linux hardware configuration is different than the XP hardware configuration. (Different flash drive size, there may be other changes such as a different WLAN card. For example, the Dells that have Ubuntu preinstalled have a different hardware configuration than non-Ubuntu Dells of the exact same model number.)
For example:
1101HA is given as being available with either XP or Linux. Only two battery life numbers are given, one for each possible battery configuration.
The 1002H is XP-only and seems to be one of the worst performers in the 10" class (5 hours)
In my experience, the most common causes of lower battery life under Linux:
NVidia chipsets. The power management in their driver is one of their lowest priorities. If you want games, you're going to have to sacrifice battery life.
Sometimes the "ondemand" cpu speed governor can be a little flaky and step to high speed way too quickly.
Keep in mind that's Asus's own Linux distro which most people regard as not being that hot. It may be missing some power tweaks available to other users. With the exception of Nvidia-graphics based laptops, I've usually been able to get much better real-world battery life on a machine with Linux than Windows. (Exception being that I haven't gotten FSB clock changing working on the Ubuntu partition of my Eee 1000HE yet - downclocking the FSB is the core component of Asus's "Super Hybrid Engine" power management scheme.)
retrorocket.o not found, launch anyway?
The only Linux distro that give me more battery life then Windows is Opensuse 11.1
Have you tried that one already?
Because linux is fucking terrible for desktop use.
The battery life on my desktop is just fine.
Really? Battery life on my desktop sucks. It dies as soon as I remove the power cord.
Hardware specifically designed for the OS...
As far as I know, Windows does not tailor it's code to all Dell, Lenovo, Gateway, HP, and Asus laptops.
Come on, you refute your own argument. Hardware manufacturers do design their laptops to play well with Windows, in general. It is only recently that they have even considered installing linux as a feature. Most of them are probably still way behind on making their hardware play well with Linux. The main complaint I always hear about Linux is about having to do fancy things to make drivers work. So all comparisons are valid.
Well, DUH, it HAS to be perfectly optimized for the hardware.
Battery management requires checking every single pin on your hardware and ensuring that you've set the i/o correctly for sleep mode.
If you have even one pin with a pull-up resistor set as an output, then you'll get lower battery life than the nominal case. If you have just random I/O on unused pins, then you're going to get greater drain than ideal.
I'll qualify that statement by saying I'm an Electrical Engineer with embedded experience. One of the products I worked on was a GPS / VHF tracker with a 12uA standby current. Another was a VHF tracker with an 8uA standby current. Slight modifications to the firmware would bring the standby current up to 50-100 mA. That's more than 1000x more standby current.
My experience dealing with Linux developers (and realistically, software developers in general) is that they're all terrible at determining the link between hardware and software. Look at the derision you get online towards C. Linux devs are worse -- if you're not running their exact hardware on a machine you bought in the last month, then it's your problem, not theirs. "Weird, it works here. Have you tried recompiling the drivers?"
It's fairly easy to map these pins, BTW. All you have to do is set everything to an output, set it to 0, and then turn everything to an input. Everything that's high has a pullup resistor. Do the same with 1 and everything that's low has a pull-down resistor. Now you know which pins must be inputs when you're not using them.
Of course, since you taught yourself programming with Ruby on Rails, you know all this, right? It's not like you'd have to have some low-level knowledge of the hardware in order to effectively make a complete synergistic hardware and software package.~
---
ECHELON is a government program to find words like bomb, jihad, plutonium, assassinate, and anarchy.
I shall put Windows 7 on you . See how you'd like that, cocksucker.
Buy an airline power adapter and quit whining. http://www.buy.com/prod/lind-automobile-airline-laptop-power-adapter-lind-automobile-airline/q/loc/101/10392022.html
Really? I wondered why since most laptops have myriad settings in their BIOS for power management that they say to turn off BIOS power management when using software power management. I always wondered what exactly was the advantage of using software power management at all. I mean why not turn off software power management and use the BIOS settings exclusively? Are these 'microoptimizations' the reason?
...
Just my own experience, but I've never seen differences in battery life that are this extreme. Linux has always been worse, but never more than about 10% on the laptops I've used, with one exception.
The only time I've seen a huge difference is on an HP laptop that I currently use as an SVN/Trac/CUPS server. The machine has a BIOS bug that prevents me from using ACPI in Linux, and HP never released a patch to fix it. The only way to keep the machine stable in Linux is to boot "acpi=off, noapic, nolapic". With no real power management, it drains mighty fast, even with all the hardware that gets disabled booting this way (webcam, wireless, etc).
On the other hand, a few years ago I owned a wonderful Sager laptop. With two double capacity batteries and a regular capacity battery, I could get a full 20 hours of battery life from the three (8 hours for double, 4 for regular) running Linux (Gentoo at the time), which was within 1 hour of the average total when I ran XP.
Linux does have worse battery life, for a number of reasons, but the difference doesn't seem significant on most hardware. It all seems to depend on hardware quirks in your machine.
So maybe it's time for both kernel developers and distribution packagers to focus a little bit more on which hardware users are buying.
Which is not multi (4+) core servers, but rather cheap laptops and netbooks.
And, anyway, lower power consumption and better efficiency will probably also benefit the "big iron".
Maybe Computers will never be as intelligent as Humans.
For sure they won't ever become so stupid. [VR-1988]
The device I work on has received industry recognition on its battery life and it runs Linux. But it's an ARM based handheld consumer electronics device. (I won't name names)
The tremendous amount of work our developers put into cutting every milliamp out of the system in the idle states is how we got the device so low. Out of the box on a random platform the energy saving features of Linux are non-existent. Add to this that on x86 systems there is a mess of different power savings interfaces and standards, some of them pretty badly implemented others just badly defined. You can tweak Linux in about two days to be power efficient on a particular laptop with a little know-how and a compiler. But your effort will be wasted on 90% of the other laptops out there. I blame this on Linus Torvalds for not recruiting a power expert to bring in and merge all the different patches necessary for good power savings on Linux. And on the immaturity of Linux's power infrastructure (doesn't exist). Providing only a primitive way for drivers, kernel subsystems, and userspace to communicate power needs.
The author recounts his own personal experience with poor battery life on a linux laptop, and then asks: "Why is battery life on notebooks so poor when using Linux?"
Well, who says it is? The old notebook on which I replaced XP with Ubuntu 8.10 (and then 9.04) has much better battery life under Linux that it had under Windows (plus it periodically would heat up and crash under Windows, but doesn't do that with Ubuntu.) Unlike the author of the story here, I won't generalize from that and say that Ubuntu is better for notebook performance in general than Windows; I personally think at least part of my experience is likely due to an age-related hardware quirk interacting with something Windows--or something else that was installed on Windows--did which was causing atypically poor performance under Windows. What I will say is that comparing Windows and Linux performance on one hardware setup is not a good basis for generalizing about their relative perforamnce for notebook computers in general.
I have a Thinkpad W500 with the 2.8Ghz Dual Core and the 9 cell battery. I'm able to get more than 5 hours of battery life with linux. Watching a movie I'm still able to get more than 3 hours without any issues. If you would have gone to thinkwiki.org you would have found out that the W500 comes with switchable graphics. It comes with both a discreet ATI graphics card with 512MB and an integrated Intel GMA 4500HD. Probably you main culprit is the dual graphics. If you leave switchable graphics on and run the Intel driver, it will still have the ATI graphics chip running at full speed. If you just enable the ATI graphics and run anything but the FGLRX drivers, it will run the chip at full speed thus killing your battery life. Intel's GMA 4500HD is the best supported right now and it's what I run under Linux. Once you work out the the graphics issues, you should be in much better shape. The Intel GMA 4500HD is also under heavy development and you need to run the latest kernel. I roll my own from kernel.org.
Once you get your graphics sorted out, use powertop from there.
Also, Vista and Windows 7 can use the full extent of the W500. To roll back to XP is a step backwards. Yes, it needs more memory, so give it more memory.
Also, why even post this on Slashdot? If you would have done your home work, and posted in some thinkpad forums, you would have gotten this solved.
To say that Linux's power management is awful compared to XP or Windows Vista is just naive. I have had XP, Vista, and Windows 7 running on this laptop. And Linux gives me the best battery life.
If it's something that technical, I wonder why Remix isn't compiled that way by default? That's way beyond what most users would be capable of figuring out.
Is the user experience that different? Seems strange that Canonical would have overlooked something so obvious. I'm going to give them the benefit of the doubt that something unpleasant happens to the user experience but I have no clue what that could be.
That's our life, the big wheel of shit. - The Fat Man, Blue Tango Salvage
Actually, I expect that more of the people that are paying for Linux support and Linux related services are buying multicore servers than cheap laptops and netbooks.
And I expect that the people paying for Linux support and services are much more important to the people for whom Linux is a business than the people who aren't paying for it. Just because software doesn't have a license fee doesn't mean that it writes and maintains itself for free. People are, in fact, paid to work on Linux, and the money that pays them comes from somewhere, and where that money comes from has an effect on priorities.
Sure, but the approaches that produce lower power consumption and better efficiency with the kind of hardware, applications, and loads that are typical of "big iron" use and the approaches that do so with typical desktop, notebook, or netbook hardware and usage patterns are quite likely very different.
If I understand GP correctly, the problem isn't with FS being journalled - the problem is that when it is, you hit the problem in his point #1 faster.
How will switching to Mac make people think you're not a fag? If anything it'll only reinforce their suspicions.
Actually, default FreeBSD filesystem isn't journaleed - it's using soft updates instead.
On the other hand, NTFS is journalled. So it's not journalling as such - more likely the difference in how it's implemented.
Well, to be complete, you need to run Windows XP and see how the battery life compares. Otherwise you've only got 1/2 a data point.
It is notoriously hard to work with power management features of notebooks, because it is hard to find a really ACPI-compatible BIOS. Most of them are broken in some way, or require undocumented voodoo and magic values to behave. There is really no solution to this unless: a) Manufacturers get their shit together and ship functioning hardware, not hardware that accidentally happens to work under Windows (systemic approach); b) Linux gets more mindshare and those issues get sorted out on a per-device basis (band-aid approach). a) is very unlikely, since shipping functioning hardware brings no obvious reward to the manufacturer. Therefore we can only hope for b).
Note that this is not limited to ACPI. In almost every area, there are hardware products that do not comply with specifications they are supposed to comply with, lie about supported features when probed, have bogus device descriptors, reuse the product ID of a different device, do stupid things when supplied valid commands it doesn't expect, etc.
Those who would give up liberty to obtain working drivers, deserve neither liberty nor working drivers.
.config or GTFO AC also ... you're probably using an ATI card (doesn't support power management) which means you're being and idiot. Stop being and idiot you idiot.
Yes Linux does because, in contrast to NTFS, it doesn't have a lazy FS that is so freaking lazy that NTFS always, no matter how empty it is, fragmentates. What am I talking about? -> Spreading data.
Here be signatures
I have plenty of anecdotal evidence (5 laptops, 3 different people) that linux power management is really great. Maybe you just aren't doing it right?
But if poster can take the same laptop, and the same person, with the only difference being the OS that is installed.... maybe that's a bit more empirical than "5 laptops 3 different people"?
That charts do some explanation on how they get that numbers, linking to http://eeepc.asus.com/global/computing.html, where they explain that they use one test (Battery Mark 4.0.1) for measuring battery life in Windows, and a different one in Linux (JEITA Battery Run Time Measuring Method). Essentially, there you are comparing apples with oranges.
That's nonsense. It doesn't explain why designed-for-linux netbooks like the Linux Eee systems perform as poorly as they do.
I would bet that the problem can be largely attributed to 1) vm.swappiness being set too high and (IMO every laptop user should set vm.swappiness = 0 unless they know a higher metric would help their specific operation behavior) 2) ext3 sucks horribly, 3) linux often defaulting to the 'standard' and ignoring/overriding hardware bugs which might be accounted for in the closed drivers (such as with the BIOS), 4) hard drive power management options/defaults are usually not very good and do not account for/override filesystem settings.
There might be something else to it, too. I've personally never had a laptop that got better battery performance in Linux than in Windows; it's always just been Part of the Deal of running Linux to get worse battery life, despite what I've heard others say.
~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
I actually have completely the opposite results in my testing.
My lappy an old dell with a celeron. I'm running a dual boot setup so I've done the testing out of curiosity, windows xp gives me an hour and a half, with the backup battery in my drive-bay. In Linux, I get well over 2 hours without the drive-bay battery, and just over 4 hours with it. Running Gentoo with e-17. Only things I have setup are acpi, laptop mode, and cpu freq scaling.
My gf's lappy is similar hardware, though newer so it's got better batteries. In XP she got about 2 hours with 2 batteries, Linux gets 5 hours. She's running Gentoo with Gnome / Compiz with the same stuff installed.
Long story short . . . you're doing it wrong.
I'm running a stock Ubuntu install (except Nvidia drivers) and my battery life is great. The sleep mode works, too. The key to running Linux is using compatible hardware and it works very well. Ubuntu really has made the user experience better than Windows. I'm not saying that Linux offers the same breadth of software but on compatible hardware is really is slick. I was at my brothers and wanted to print a file. I plugged the USB cable in and the selected the printer while printing from the application. No downloading drivers, no loading crapware from a CD, just plug in and print.
"Linux is dead, long live Windows 7!"
er, don't know about dead, and I wouldn't say "long live windows 7", but I will admit the battery power options are very impressive on Windows 7. Not only can you change the obvious like cpu speed, but you can go all the way down and adjust how long the CPU fan should be on if you're on battery, and it can change according to which battery profile you choose. It has more options than I've ever seen on any program, even more than NHC.
my karma will be here long after I'm gone
Remember ASUS sleeping with Microsoft under the sheets? Google the deal.
Here be signatures
could we please have a +0.5 Informative Flamebait please?
Ubuntu 9.04 - 64bit with 2.6.28-15 is.
Turn off periodic SMART status checking (on some drives this spins it up).
Sigh. You had me going with that one. That's the only thing I didn't think of when I tried diagnosing why I can't my Thinkpad to keep my Seagate drive spun down. Even with everything off (no syslog, cron, etc.), the little fucker still insists on spinning back up after a few seconds.
I find this interesting. My Dell D620 running Kubuntu 8.04 and the media bay batter rocks about 6.25 hours of battery life with powersave mode enabled.
This compared to only about 3 hours when I boot into windows.
Although, Linux journalled filesystems are generally more concerned with performance and data organization, e.g. skipping the whole disk defrag. As I remember it ext3 had a problem similar to NTFS in it's early iterations.
MFT fragmentation results from NTFS behavior, a behavior that would probably yield better battery life by touching the disk less frequently. So, you can have Fast/Reliable/Efficient... pick two.
I think many of the posters here, who all have great ideas and suggestions, are missing the point of the OP.
Why is an out-of-the-box XP machine performing better than an out-of-the-box Linux machine?
The Linux community shouldn't be saying "try this" or "tweak that" or "install this device driver" or "switch your hardware"... they should be working on building those into the next revs of the OS and making them part of the default configuration (or at least an easy prompt like XP offers).
-David
Nice find. It would seem to me that the vendor has failed to configure Linux properly. As shown in above posts, there is nothing inherent to Linux that mandates a high power drain. I also note that the difference in battery life, while significant, doesn't approach the difference stated in TFA. It could be that Asus is NOT using the "tickless" optimization mentioned in posts above.
So - it is probably safe to say that Linux comes out on the short end of the stick due to lack of hardware (vendor) support.
"Windows is like the faint smell of piss in a subway: it's there, and there's nothing you can do about it." - Charlie Br
I get ~6 hours on Ubuntu 9.04. Beauty is, the battery remembers (I don't know how) to start charging when below 60% and stop charging at 98%. This is the setting I did on Thinkvantage Power Manager under Vista.
"I loaded the movies into a RAM disk and set the hard drive to power down, shut off syslog, and removed the DVD drive completely."
Aren't full-length DVDs something on the order of 8GB? How much RAM does your laptop have?
Well, perhaps it's the distro? Or the hardware. On my Dell Vostro 1000 with a 6 cell battery, I get at absolute maximum 4 hours of battery live on WinXP. On a slightly stipped-down Mandriva Linux I've managed to squeeze 6 hours of use out of it while watching movies. Of course, you could say this isn't an _entirely_ fair test as I was running both the system and the movie from a USB flash drive, but considering I did nothing special in the installer, just told it to install to the flash drive, I'd say it's fair - if you could install Windows to flash that easily I'd run it from one too. Plus with my full version of Mandriva 2009.1 using KDE4 I still get at least as much battery life as I get on XP - and it actually last longer than XP does for gaming (specifically World of Warcraft).
On my Dell Studio 1537 I get about 3h of battery life in Vista Home Basic and just a few minutes less in Ubuntu 9.04, so it seems to be handling the power management fine.
I have an Acer TimeLine. It's all Intel components, Intel CPU, GPU etc. All supported in Linux without any binary drivers. Windows 7 default install gets 7-8 hours of battery life browsing the internet with Firefox, Wireless G or N. Ubuntu 9.04 default install, all update, gets 3-4 hours under the exact same conditions. Things I've noticed and not gotten around to finding a fix for: The CPU (a core-solo ULV) doesn't seem to clock down, at all (but it's ULV and uses about as much power as an atom, and couldn't account for 4 less hours) PowerTop tells me to allow my USB to sleep, however the touchpad, SD-card reader, webcam, and a few other components are all attached to USB internally, and won't allow it to sleep. The screen doesn't dim (tho I easily fixed that with 'xrandr --output LVDS --set BACKLIGHT_CONTROL native) If it weren't for Windows 7 STILL lacking the ability to open an explorer window displaying the contents of a remote SSH connected computer, I'd just put 7 on it and be done. Putty is garbage, and while I can manage files on my web server with the CLI easily enough, I'm lazy and prefer to do it in Nautilus on Gnome. Well, that and the fact that Windows xp and older are archaic, and anything newer are all "comprimised" from all the built in DRM and other garbage, so I avoid them at all costs.
Hey, I'm working on the "Hot Flames" achievement here by getting a "+5 Flamebait".
---
ECHELON is a government program to find words like bomb, jihad, plutonium, assassinate, and anarchy.
I have found that if your kernel wasn't compiled with the correct CPU drivers, the CPU might not be speed stepping. If you are using gnome you can use the gnome CPU applet to see the actual CPU speed. In my case, (HP DV1000, Pentium M 1.73 CPU) with ubuntu Hardy, the CPU steps fine, but having the "correct" CPU voltage and speed values hard coded on the OS kernel prevents me from underclocking and undervolting the laptop under linux (without compiling a custom kernel), which is easily done in windows with software such as Rightmark Clock Utility. So my battery lasts 1:30 hours with Ubuntu and almost 3 hours on XP. Guess which I use the most for school even though I strongly prefer FOSS?
Greetings, programs!
I didn't have to do anything special and Ubuntu works quite well on my EEE laptop. The battery life might be short but not by any noticeable amount.
Watch as this trollfeederfeederfeederer realizes what he just d.... aw crap :(
Making one of your products look better than another of your products doesn't really make any of your products look worse...
But they would have no reason to falsely claim that one of their products was worse than it actually is. Which is the point I was making and you failed to address. This would be like Ford falsely claiming that one of it's cars has 25% less gas mileage than it really does which would make absolutely no sense to do. Secondly, yes it would make it look worse in the eyes of someone who was shopping for a laptop with a keen eye for the battery life.
Doesn't matter.
It's X.
You didn't know that? Obvious.
deleting the extra space after periods so i can stay relevant, yeah.
Mine too. It runs 24/7 and never dies.
Sir Ubuntu netbook remix is your friend. I've tested it in comparison to XP, Vista and Windows 7 and found even with Intel Chipsets it seems to get roughly the same battery life if not better.
Does anyone know if they made significant changes to the power scheme in this distro? Such as setting the RANDOMLY_DISCHARGE_BATTERY flag in the kernel source to "0" :P
Battery life and wireless support are the two main reasons I switched from Linux to Mac, for notebook use anyway.
-fb Everything not expressly forbidden is now mandatory.
Correct, hardware manufacturers do. Windows doesn't. Presumably, Linux should be trying to optimize for hardware, too, right?
Granted, there are some things somewhat out of their control, like ATI or nVidia drivers.
But on the whole, it doesn't really seem like most "Linux geeks" are particularly interested in things like battery life (or, as someone posted in the xkcd comic, full screen flash video... which I realize is also at least partially an Adobe issue...). Self-included; my old laptop running Ubuntu 9.04 essentially has no battery, it dies the moment the AC adapter is unplugged. And I don't particularly care, hehe.
I have an EEE and on an HP DV5, and I get about the same batter life under Windows and Ubuntu, both with the default installations.
Wow, what a trolling article. It claims notebook life is poor, yet the datapoint is quick notifications of low battery.
Gee, perhaps the notification is what is broke, not the battery consumption!
Stupid troll.
I run Ubuntu 9.04 (64 bit) on a W500 and get > 2 hrs battery life with the standard battery (not the extended life). I have not done any specific configuration tweaking to try and extend battery life.
I haven't compared battery meters between Linux and Windows, but I've long suspected the over-estimation issue is a result of modern batteries themselves. A characteristic of earlier batteries was that the output voltage would drop as the battery discharged. One could get a fairly reliable measure of battery charge by simply putting a voltmeter across the battery terminals. (This works well with the lead-acid battery in your car, for example).
An ideal battery, however, should provide a constant output voltage, and successive generations of batteries have improved on this. If you imagine a graph of output voltage over time, modern batteries maintain a fairly horizontal line until very close the end of their charge, at which point the output voltage falls off precipitously.
This presents a new challenge. How do you determine the charge level of a battery when it "appears" to have a good charge right until the end? External measurement won't suffice, you need a "smart" battery that can provide information about its internal state. I think this is what the InfoLithium® battery in my Sony camera is supposed to do.
In Windows, the default warning times can be a killer. I've seen Windows laptops die with no warning at all, only to have the warning message appear after they're plugged in and powered back on. On some laptops I've had to set the warning time to as much as 25 minutes to ensure enough time to get an adapter plugged in before it dies.
Why is an out-of-the-box XP machine performing better than an out-of-the-box Linux machine?
It isn't.
The Linux community shouldn't be saying "try this" or "tweak that" or "install this device driver" or "switch your hardware"...
Actually, "switch your hardware" is a reasonable suggestion. If you try to run software on hardware that's not compatible with it, it won't work. That's also true for Windows and OS X.
This is a critical problem with the topic.
I have anecdotal evidence similar to the parent's post as well.
http://www.maxineudall.com/2010/02/should-economists-be-sued-for-malpractice.html
Really? Battery life on my desktop sucks. It dies as soon as I remove the power cord.
You must be doing something wrong then. I've got a couple of old desktops whose batteries are still not drained after going for more than 10 years on their original charge!
So post instructions on how to do it on the LKML and try to inform the devs of this problem...
Did you look into pdflush? In particular dirty_writeback_centisecs? lsof, iostat, vmstat, and strace in a process of elimination are useful as well. It is too bad linux (I am assuming you are on linux) does not have something like dtrace or at least fs_usage. Did you do the other stuff listed above? In particular you could have some stupid process that writes-out its config at something insane like once a second. There was some notorious Seagate firmware for a while too, but not on the small drives as far as I know. Good luck.
Are you really saying that 3 hours is a "good" thing?
I would consider it poor. (except for some really low-end stuff)
It's incredibly hard to say because the summary doesn't provide enough detail in and of itself to diagnose the problem (e.g. which graphics card, which chipset, which drivers are being used, which version of Ubuntu and so on). The most likely explanation is that hardware is being left on in Linux that other OSes are powering down when on battery. Examples of this:
As you can a myriad of reasons and not nearly enough information to whittle down the cause. Further how do you know each OS is using the same defaults? It could be that Windows says you are running out of battery later than Linux does (I'd imagine that this sort of thing could only account for 10 minutes difference to actual empty battery though) or the display is defaulting to a different brightness - it could be that lots of little things are adding up to the major difference.
A few years ago I had access to a Thinkpad T60 and it would draw two watts less power under Windows XP than under Ubuntu Gutsy. That doesn't mean things don't change over time but nor does it mean that people aren't seeing real problems now. If you know how to constructively help, things can get progressively better on your system but it can take some time and you need to know how to track these things down. Tools like powertop help and developers have been putting together good power management practices for Linux guides. However in all honesty posting to Slashdot is unlikely to help you obtain a solution (and indeed there is no guarantee of a solution even over a long period of time).
It was very difficult to decide whether to mod the parent funny, or to "Whoosh!" you.
Doubly difficult since parent was already +4 Funny and you're an AC.
I have a Toshiba Tecra A9 w/ the extended battery. On a full charge I get about 3 hours running Windows XP. In Linux (Fedora 10 - only using Fedora repo's too) I get about 4 hours to a charge.
Most laptops come with a windows tool that slows the DVD player down, maybe that's a reason. Another thing you can try is to just let it on till it goes off because it's really empty. Maybe the indicator is broken, and it is not using more power.
The Adobe Linux flash devs have seen that comic too and reckon the issue with Linux full screen flash performance is down to graphics card driver capabilities and the difficulty in discovering them.
I own a W500 and use Arch Linux on it. At first I too was disappointed at the short battery life, when I found a BIOS option to enable extra powersaving.
I now enjoy 3+ hours of battery life under normal work conditions.
Were you reading Tron Fanzines?
LOL. I do appreciate the followup, so here's what I discovered since my last post.
I'm using FreeBSD, and have the same or similar tools (dtrace included), but I've never been able to track the problem down without losing interest and patience.
Turns out that stopping cron and syslogd wasn't enough. I modified my mounts to use the noatime option (which worked until I started X), so then I reconfigured /var and /tmp as md (memory) devices and ...
Now my drive stays spun down!
Fucking hell. I use my notebook far more than any desktop system, and I've been putting up with an overly "warm" keyboard and unecessarily spinning drive for years. The CPU I can throttle or adjust dynamically, but the drive? That required me reading a random post on Slashdot to fix.
Can't thank you enough!
I'll have to look into the Firefox issues you mentioned, of course. More importantly, I'll have to find a solution to having the contents of /var disappearing with every boot.
It's because you never need a laptop if you never leave your mom's basement.
There's that fag talk we talked about.
The battery in my desktop keeps running for over 10 years. Maybe you should invest in a ne button cell so you don't have to reset time+date every time you power down your computer.
This reeks of Compiz. If compiz is in use, the GPU may be stepping up to it's max 3D mode clock speed, especially if it is under load. CPU scaling may also be tipping over a threshold.
I'd put some money on this.
The dude also says he is playing a DVD, I would hazard a guess that the DVD software he is chewing more CPU or interfering with power states differently on linux.
From experience desktop effects will chew your battery even if your doing low CPU usage tasks like reading web sites. Your just moving app windows around but this is enough to push your hardware over scaling thresholds and use more power.
A smaller effect my difference in some power saving behaviour. Windows XP more agressively caches data to memory for reducing hard disk access, more likely resulting in HDD spin down more often depending on the timeout. Linux is always very frugal with making use of memory, even if you have a metric assload of ram.
After logging in slashdot still does not take you back to the page you were on. It's been that way for 20 years.
I have a W500 and I periodically do 3.5h train rides to my family. By using the integrated Intel graphics my battery (a 9-cell long-life version, same as yours) lasts enough for me to work throughout the ride. I also managed to watch 2h movies out of the hard drive and still had battery power left.
Article is 100% troll.
If you read "Obviously Apple with their X86 hardware and BSD based OS" and "Windows XP gives me three hours of life ... Linux distributions ... with an average of 45 minutes", you know that this isn't a serious article.
Shame on you, slashdot!
+5 Inciteful
Samsung took back my unlocked bootloader because Google wants me to rent movies. They're both evil.
Not sure if somebody above has said it yet, but you need to install powertop and run it as root.
That'll increase battery performance.
.
So maybe it's time for both kernel developers and distribution packagers to focus a little bit more on which hardware users are buying. Which is not multi (4+) core servers, but rather cheap laptops and netbooks.
Someone's buying those, and it's the people with the money. Con Kolivas ran into the same problem years and years ago.
You should probably qualify your 'embedded experience' before berating 'software developers'. It sounds like you have only worked with micro-controllers.
I also can't believe you used the word 'synergistic' ... that buzz word was so 5 years ago.
Im running an Acer Aspire One with the six cell battery, in dual booting both xp and slackware12.1 (havent gotten around to going to 12.2) and i get significantly more battery life in linux then i do in windows. In windows I get about 4.5 hours or so of constant use, in linux im getting almost 7 hours......plus im not that big of a windows user so I havent done much tweaking, but the main reason why I think i can get better battery life is because I can throttle my cpu down and turn off my wifi card in linux
I never tried to watch a DVD only on battery, because i was always told that this would kill it's life. But, for regular use, my Arch linux does the same than my Vista, about 2hrs life.
It may be your video codec, that is using too much CPU power to decript the DVD under linux, and that eats your battery.
Have you tried to spend even more time (assuming you did spend some) on www.lesswatts.org?
All the tricks are there, even checking for tickless kernel, timer interrupts. Intels 'powertop' utility is my best friend with Linux power management.
So maybe it's time for both kernel developers and distribution packagers to focus a little bit more on which hardware users are buying.
Which is not multi (4+) core servers, but rather cheap laptops and netbooks.
And, anyway, lower power consumption and better efficiency will probably also benefit the "big iron".
Chrome OS to the rescue.
Sadly, I suspect it will be the only rescue.
Did you enable frequency scaling? Under KDE3.5 I use kpowersave. There's a frequency scaling applet under GNOME as well. I just can't remember the name at the moment.
They did not make their own products look any worse than disclosing battery life for Windows and Linux side by side. Same machine, two numbers. All it did is make "battery aware customers" want XP, which, given Microsoft history of lobbying and what not, probably is their doing as well.
The problem is that these paragraphs are directly contradictory. If your hardware is homogenous, then yes, it makes sense to test like that. If, however, you've got to handle a poorly-implemented badly-designed hardware spec, where you don't know if "pulling the pins high" is actually going to do that or, for instance, overwrite something in a random register that could end up bricking the device when someone else runs your test on a version of the model where the manufacturer thoughtfully didn't bump the hardware revision, then treading a little more carefully is indicated.
Do we know that what you suggest has even been thought about? No, not at all. Not even for the cases where it's blatantly obvious that it would be safe. At least, I (as a moderately interested bystander) don't have the confidence that it's been done, but it's only in the last couple of years that sleep mode has worked at all, in my practical experience. I'm happy if energy efficiency is the *next* thing they look at, not annoyed that they haven't done so already.
Reality is the ultimate Rorschach.
Windows has OEM drivers which are [by design] tailored for hardware. Thinkpads, for example, install their own power management service and driver. Evidently, these help battery life. Newer ATI graphic card drivers install with "PowerPlay" thing which idles GPU when not used. Without such drivers OS has no idea how to manage hardware except standard I/O and VESA for graphics output, neither of which are very PM-aware.
I've used Linux for years on a variety of laptops, and generally with recent releases (over the past 5-6 years) I have managed to get very good battery life out of Linux.
Enabling frequency scaling helps, and making sure you don't have processes sucking the processor (and thus forcing the processor to high-performance mode) will certainly help. Dimming the display also helps - most modern distributions should do this automatically.
I've got 3 different Dell laptops here that get 2-3 hours off a battery running openSUSE 11.0/11.1. I have a Thinkpad t42p with an extended life battery that I used to use constantly and I'd get 3-3.5 hours out of that.
If you're only getting 45 minutes out of a battery on Linux, either something's not been configured correctly in your distribution or you've got something driving processor utilization up.
Insanity is a gradual process; don't rush it.
Add this as a kernel boot option:
acpi_os_name="Windows 2006"
and that will fool the BIOS into thinking that Windows Vista is installed. Linux, by default, "spoofs" for "Windows 2001".
So, if this is a serious question, here's the answer:
The USB driver in Linux does some polling that is known to suck lots of power and which Windows doesn't do. It does this because one of the USB device drivers (I think mass storage, don't remember) is broken and needs polling but a person I know is working has a fix and should be soon submitting the patch, I can't disclose who. Then there's another such driver, I don't remember which, that also sucks a whole lot of power unnecessarily and is soon going to be fixed. My employer did some power benchmarking for their product and found our distro used 10.8W while Windows XP sucked only 9.3 and other distros 11 dot something and it should soon be fixed.
Apart from that there may be the GFX drivers as mentioned in other posts, but if you're running the opensource drivers, there's unlikely to be a problem there (even if you don't get as good 3D acceleration as with some proprietary ones).
Personally I've not hit these battery issues on any of my devices yet (I don't have a W500).
You mean with Linux and OpenGL my laptop can actually compost stuff? Cool! Where exactly do I shove in the scraps from my in-flight meal to get it started?
why? Because Linux sucks!
You are mixing terms all over. BIOS is software too, just very pervasive and persistent software. But it is the same kind of code that what you refer to as "software power management" is. Also, BIOS usually only does rudimentary power management, and since two conflicting procedures "power managing" the same hardware through the same port would be a bad idea, one of these is usually disabled - usually BIOS, it being simpler, so that the other one - the more advanced (hopefully, see OP :-) OS power management - can assume the "managing" role. Simplified explanation, but that is how it works. The advantage is again - refined control, including user control. BIOS is not only a black box, it also is a very stoneage UI - Once you set up PM in BIOS, it takes a restart and re-fiddling with its settings to change the PM again. ACPI is what should be used as a PM interface, but in reality it is usually a mix of ACPI and BIOS routines. This is where my knowledge stops unfortunately.
Right, hopefully this will sink in and dispell a few other myths.
One of the ways to get increased battery life is to use PulseAudio. Right, now that some of you are doing the characteristic snorting and thinking up a derisive comment for a reply I'll explain.
Glitch Free mode in PulseAudio is a new technique that disables the audio hardware interrupts and uses kernel-based timers to feed data into the sound card. It's called "glitch free" because if it detects an underrun it will automatically decrease the time it waits before it wakes up again. This has the effect of reducing the power efficiency at the expense of lowering the likelihood of another underrun occurring. By disabling the interrupt and using higher latencies you can massively reduce the CPU wakups and thus increase battery life.
Using this approach you can get much better power efficiency, but it doesn't end there. Applications have to be written with the concept of "latency is good" rather than the "we must have small latency" mindset that is currently quite popular (although quite often totally incorrect) Take a media player for example. You can decode 10seconds of audio and pump it into a large latency system pretty damn quickly (realtime streaming doesn't apply here but buffering is still needed there anyway).
Yes, this approach is new and yes it pushes the ALSA drivers to their limit and exposed many bugs (no other ALSA application has pushed the drivers as hard as PulseAudio and such low level bugs are therefore to be expected). This has lead to some people to be critical of PulseAudio but such people will eventually eat their words (or rather they will change history and claim they never said it was a bad idea, just that it wasn't ready yet etc. etc.).
While I don't want to comment incorrectly, I beleive the default Ubuntu setup disables PA glitch free mode by default. Perhaps you should turn it on?
I'm very happy to hear about your success. I'm a big fan of FreeBSD as well.
Read the syncer man page, there are sysctls that you can tweak to slow down flushing the pagecache so your disk will not spin up as often. If your laptop is very stable you might not worry so much about a panic. The battery should give you enough time for a sync or halt in case of a power outage.
On a laptop, I find I hardly ever care about the stuff in /var after a reboot. Using md was clever.
Judging by the comments here, the situation with Linux power efficiency sounds like it's more or less where printing was, say, 4-5 years ago. That is, it actually works pretty well and gives you a lot of control, but how you set it up and control it is somewhat obscure.
To be honest, I like to think I'm a pretty hardcore Linux user (exclusively Linux on all my machines since 1997) but even now I haven't really messed with power management beyond figuring out how to change the current CPU frequency from the command prompt when I want to (and making some minor tweaks to the default settings in KDE's battery monitor plasmoid. Well, yes, and making sure my kernel was compiled tickless...). I get 4-5 hours out of the battery in the little netbook that is now my current main computer. Arguably, I ought to be able to get that up to 6-7 hours with some agressive modification and obvious things like "remember to turn off bluetooth and wifi when not in use", but why bother? It still beats the crap out of the 1.5 hours I got out of the now-old gigantic Compaq laptop and gives me plenty of off-the-wire time. ("Get off my lawn", etc...)
Anyway, the point is that it looks like there is a decent amount of power-management capability already existing in Linux systems, and what's missing is a simple way to make sure it's turned on and configured the way you want it.
Some links to projects trying to make the "CUPS" of Power Management would be appreciated if anyone knows of any...
Hacker Public Radio is our Friend
There's a diversity of equipment out there that owning a single laptop can't capture. Consumers generally can't accurately make a conclusion about the state of Linux power support; my laptop works equally well on Windows and Ubuntu yet I won't start declaring Ubuntu power management just as good as Windows.
But there's more to this story. Consumers also don't have equipment to measure power demand. Time remaining can be misreported, so at the very least use wall-clocks. It's much better to measure power draw, but your kill-a-watt won't cut it, since laptops generally alter their behavior on AC. What you want is to instrument the battery itself. Not easily done without risking a fire.
I Browse at +4 Flamebait
Open Source Sysadmin
... and then watch yourself go down in flames and being paraded like a moron. Most people don't even bother reporting problems through lkml because of the attitude of the ppl there (linus himself included). I think this is part of the reason why obvious things like this that matter to the end user don't get a lot visibility.
A lot of systems have broken ACPI implementations... Broken in that they don't comply with Intel's documented spec for ACPI, they follow microsoft's specs instead.
Depending on the hardware, linux can have better battery life than windows. My experiences have varied massively depending on the machine.
OSX achieves good battery life because the hardware and software are designed together, from the brief testing i've done linux on my macbook pro has better battery life than windows but not as good as osx.
http://spamdecoy.net - free throwaway anonymous email - avoid spam!
...and I'm up to 3.5h of battery life (battery at 90% health) by using the powertop utility (try it!). Another great tip is that if you have an ATI card and are using the open source radeon driver with it, inserting the line
Option "DynamicClocks" "true"
into your "device" section in your xorg.conf makes it draw up to 2 watts less power (a lot in this context).
Good luck!
Have you checked your apmd settings?
by Mike Buddha -- Someday the mountain might get him, but the law never will.
This guy reports 2.5-5 hours of battery depending on which graphics drivers you're running. Maybe there are some more pointers there.
Why is battery life on notebooks so poor when using Linux?
I wish I could tell you, but, like the above W500 owners, I've only ever gotten perfectly competitive battery life on Linux laptops.
Obviously Apple with their X86 hardware and BSD based OS have got it right because the MacBooks last for hours
Their new ones are better, but I have one of the old MacBook Pros from about a year ago which might get you through a feature-length movie if you're lucky. My Linux netbook completely owns my MacBook in terms of power usage--the Mac seems to be converting a lot of it to heat. The netbook will suspend seemingly forever.
Any time you install an OS on some hardware that didn't ship with it, you're taking a chance that it might not work. Vendors try to make their stuff work with Windows, so you'll probably have good luck there, but even vendors ship with specialized OEM versions of Windows. Trying to install Linux or OSX on machine that didn't ship with it, especially if the hardware is new, is going to be interesting. My advice to those not willing to tinker: leave it to the pros and buy a preinstall.
Patient: Doctor, it hurts when I move my arm like this.
Doctor: Don't move your arm like that.
"After settling on Ubuntu I then spent three days trying various hardware tweaks"
I have the same problem anytime I try to do anything involving Linux and hardware, and after years and years of this sort of thing I got fed up and switched back to Mac.
I know Linux is inherently better from a software freedom perspective. I know it has an uphill battle because of limited support from hardware vendors, unlike Windows. I know they're limited by not having control over the hardware like Apple. This is Slashdot heresy, but quite frankly, I DON'T CARE. I want a computer that does the right thing without being asked, without having to spend days searching forums for answers, without having to learn cryptic kernel commands.
Does that mean I should hand in my geek badge and go home? Maybe, but quite frankly, I'd rather spend my time doing geeky things that I want to do, rather than geeky things that my computer forces me to deal with.
Overall from my experience I can tell that Linux (as a whole) extremely poorly optimized for notebooks.
I have spent at least two weeks cleaning my Ubuntu installation to get any decent battery life. I ended up with essentially stripped down Xubuntu installation.
My approach was simple.
1. Run 'top' to see list of process running. Disable unnecessary services while you at it. Uninstall what can be uninstalled easily.
2. Run 'pidstat' to see which processes write too often to disk. Uninstall what can be uninstalled easily.
3. Turn /tmp and /var/* from directories into tmpfs mounts (you should have spare RAM for that, but most modern PC hardware is oversized anyway). That will save a great deal of disk accesses. Note that some /var/* sub-directories have structure and can't be easily turned into tmpfs mount. Experiment a bit in single user mode.
4. Reconfigure syslog to not to write redundant stuff into the log files: disable markers and configure to ignore periodic messages from daemons.
Worst what I have encountered were gnome-power-manager (which writes every 90 seconds to disk state of battery thus preventive hard drive from *ever* going to sleep) and syslog (finding easy to understand manual on discarding messages was major pain).
If you really into notebooks, I can only recommend Apple. Both standard and 3rd party Mac OS X applications were tuned for laptop workflow eons ago. Also Apple picks hardware which is better suited for the notebooks (that's why you will never get in Apple's laptop higher-end CPUs/GPUs which are pretty common in Wintel notebooks).
Go with Linux only if you know how to work in single user mode, know how to install/deinstall software from command line and how to bring the OS from dead (if some tuning attempt went wrong, e.g. putting /var/* onto tmpfs). And be prepared in the end to say goodbye to many bells and whistles. For example my friend has old Toshiba's subnotebook and manages to get out of it 8 hours - but he works exclusively from command line and uses fvwm for his GUI needs.
All hope abandon ye who enter here.
I believe Linux Ext3 performs 'de-fragging' continuously, and NTFS piles the problem up until you notice the performance hit. That may explain some of the power drain differences. This will increasingly become a bigger issue for Flash drives. There is no need to de-frag an SSD (wears out writes cycles, and does not affect performance).
Oddly enough, I did recently experience Windows killing my desktop due to powerdrain. I had been using Ubuntu only for quite some time prior to this install. During regular usage on Windows, I started smelling something like burning plastic. I immediately turned off the computer of course, couldn't find any obvious damage, and went back to regular use in Ubuntu after it cooled down. After leaving the computer on 24 hours a day in Ubuntu for a few days, I booted back into Windows again and, sure enough, more burning plastic smell and the computer crashes.
It turns out that at some point (a long time ago from the looks of it), the fan inside my PSU had snapped and it was no longer spinning. Apparently, I had run it like this in Linux for quite some time with no problems or damage done. However, around an hours use in windows obviously drained more power and overheated the power supply.
In short, Windows did in fact draw too much power on my desktop and cause it to shut down.
Spooooon!!!!!
Sounds like you are simplifying the situation alot. Yes thats how you do power management on tiny microcontrollers, but that has nothing to do with power management on a typical PC.
Video card have ways to stop clocks in certain areas of the chips, this is the main way power is saved, same with CPU's. These devices don't have I/O pins in the same way microcontrollers do, usually all the buses are tri-state and there is no need at all to 'set' something to input or output or high or low, you simply high impedance the whole bus connection.
What you are talking about has nothing to do with programming on modern computers, you can't just tell your video card what pins to set as output and input, you have to talk to it over a bus, and it runs its own firmware/bios that may have calls that make it disable clocks in certain parts of its chips and high empedance certain bus lines etc. Knowing what these commands are and how to talk to chip when the manufacturer doesn't release any details, just a windows binary driver is the whole problem in the first place.
The W500 has two graphics adapters. An underpowered, integrated, intel(?) chipset and a full blown 3D-accelerated ATI one. You need to set your laptop to use the integrated chipset and not the ATI for max power savings.
--Michael
Linux power management is generally poor due to poor drivers.
While the Linux drivers for most hardware devices are very stable due to their open source nature, many are reverse engineered from windows drivers or written from incomplete specs. Also, paid developer time is scarce for this kind of project, so often only core features get included.
The features which get cut are often power management and additional optimisation - the result, you end up with a system that doesn't perform great, and has poor battery life. Not much you can do about it without changing to different hardware.
My experience is not quite as bad, but I will admit that windowsXP tends to best my battery life in ubuntu 9.04 by about 15 to 20 minutes. I'm pretty sure it's about equal to ubuntu in win7, but I know it wasn't as good as ubuntu in vista. This is on an inspiron 1525. Battery life for laptops I have found is usually a bit worse in linux, but I've never heard that it performs as badly as this post. I'm saying it isn't that bad for you...I'm sure it is. Lets face it, stuff breaks in linux all the time. My intel graphics drivers are the PERFECT example of poor/unpredictable performance in linux.
The Linux OS "spoofs" the OS to be WindowsNT by default, not WindowsXP as has been incorrectly stated above -- just look in acconfig.h to see for yourself. Use "Windows 2006" to spoof it as Vista and see if battery life changes. BTW, if you do want to spoof as WindowsXP, the correct string is "Windows 2001" and "Windows 2001 SP2" for Service Pack2. Look in acconfig.h for all the values. You need the quotes when adding this to the kernel command line. Use the string that matches the version of the OS that the OEM provided with the laptop, or try different valid strings from acconfig.h until the device works properly or no error messages appear in dmesg. Also, if the string does not appear in your ACPI BIOS, the BISO will revert to its default, whatever that is. You'll need to disassemble the ACPI BIOS to determine the specific values permitted, but assume that at least the OS supplied by the OEM is valid.
"I believe in Karma. That means I can do bad things to people all day long and I assume they deserve it." : Dogbert
I've found Flash-based sites such as Youtube to be quite effective at burning the battery. I know this because when I used to run Vista on my laptop, I could watch quite a lot of online vids before draining the battery. Not as long as if I was just simply browsing non-video content, but still a lot longer than the same streaming in Linux.
Now of course, the CPU usage by the Flash plugin is ridiculous in Linux compared to Windows, but at least I had a source for my power problem. No real way to fix it either except to attempt to bypass Flash by sending the URL stream to VLC or whatever, or just put up with it.
This thread reminds me of whats wrong with linux.
Linux is trying to be tops in the server market, the desktop market, the embedded market and now the laptop market? this makes no sense.
Seems to me, something like Darwin or maybe NetBSD might be a better choice for laptops.
o Linux for Desktops.
o FreeBSD for Servers
o OpenBSD for shared computers.
o NetBSD? Darwin? on Laptop?
o (Soon to be) DragonFlyBSD for clustering
No single kernel has to be king on all platforms, they're all unix-ish, you can run much of the same software on each flavor.
Why doesn't linux pick something it's especially good at and stick with it?
Your laptop manufacturer is at fault. They need to consider Linux as an OS they require qualification on for their product and actually test on that platform. They need to give the HW manufacturers their requirements under Linux. OEM's tend to have no standard of quality for Linux and think they are getting things for "free". What ends up happening is that the OEM just ships because Linux it "sort of works" and that's enough. They think they are getting a market segment for free so they don't do work. They also don't require HW vendors to do work by not requiring it part of their bid for sale. The Windows mobile market is a complex ecosystem where OEM's ensure their product is competitive - they have custom software for display switching and power management tools, profiling, etc. Look at the Linux equivalence for shipped software and you'll understand why your laptop doesn't live up to the Windows performance in Linux.
You get more hours with Windows in order to compensate the use of the anti virus, the chance to loose your files from time to time, the time you spend to install all the upgrades, time to read the licenses...
Kinda fair to me.
To reduce -a lot- the disk activity, mount all your FS with the 'noatime,nodiratime' options in fstab.
This will prevent Linux to update the files access time when they are read.
Slashdot, fix the reply notifications... You won't get away with it...
Especially when the product you're making look better is a product someone's getting paid for.
My battery life is great and better than I would get under XP. The root of the problem is ACPI, an intentional free software sabotage (link contains email from Bill Gates, quotes from Linus Torvalds and Intel engineers). XP has very poor power management and gnu/linux can only be worse on the worst of hardware where ACPI is not working at all and APM is not an option. The efficiency of gnu/linux, when it works, should be obvious from the choices Google and IBM make. These things can be obvious on gnu/linux desktops though programs like KPowerSave, which should tell you how well ACPI is working for you. It works for me. If it does not work for you, you now know why.
The next generation of ARM netbooks and tablets will be running GNU/Linux and they are going to have 10 hour battery life, aka better than your iPhone. The sooner makers drop ACPI and other poisoned specs for free software, the sooner we will all enjoy consistent and reliable computing.
Friends don't help friends install M$ junk.
After reading though these comments, all I can think is - yeah, here's an issue where default Linux should do a better job - one on par, at least, with the latest Windows/Mac OS.
Optimize your default distros so us average schmucks don't need to fiddle around under the hood. I have tried repeatedly to use Linux on my netbook - and even setting battery life aside it's always a colossal hassle - ending up (after many steps) with advice about recompiling the kernel, etc.
You really believe competition is good, right? And I'm sure you're fair minded enough to admit that you are not going to win every usability feature just kinda because, right?
Get power usage nailed down tight. It will payoff HUGE in the brave new mobile world.
Sounds like you need a UPS. For the cost of a decent Netbook, you're desktop can easily rival many notebooks in battery life. Try plugging the modem and router into it too. Did you know that your DSL will still work during a power outage?
If you're trying to compare the battery life while using different OS's, like what we're trying to do now - then using different machines is totally worthless as there are just too many variables.
If yes, the problem is it.
ATI driver is a mess.
MacBooks are always using almost-brand-new technology, such as the higher-quality 45nm processors, and they pack all their hardware into the space directly under the keyboard. This allows for a huge battery.
Most really cheap laptops still use the old 65nm processor tech, which is inefficient in terms of power and heat (and heat must be dissipated using fans, which use more power). And then they have cheap integrated graphics cards which cause the CPU to be active for far more than it should be and force it to perform tasks that can be performed much quicker and cheaper on a more advanced GPU.
The hardware in a Mac is an important factor in its life, but software has a huge role as well. For example Windows XP and Windows 7 RC only run for about half as long as OS X on my MacBook. But that's still twice as long as my Dell laptop on ANY operating system.
Macs do certainly get amazing battery life for their size, and their claims of 6-7 hours are not exaggerated--I've attained it while doing mobile web browsing, SSH, and word processing. I could turn off the screen on my Dell, remove the fans and cool with liquid nitrogen instead, run the OS out of RAM and take out the optical drive and hard drive and STILL not reach 7 hours.
Turn off Seti@Home!
Next.
Linux should be trying to optimize for hardware, too, right?
I think you misunderstand the problem. ACPI is the power management standard that all the manufacturers use. It's not a particularly good standard in the first place, and in the second place, most manufacturers make horribly broken non-spec ACPI interfaces. They fail to document them adequately if at all. They then provide customized windows drivers for that broken implementation.
Kernel devs are constantly tweaking the ACPI drivers for all the different hardware out there, but they're at a stark disadvantage.
But on the whole, it doesn't really seem like most "Linux geeks" are particularly interested in things like battery life
Between 2.6.29 and 2.6.30, a span of 78 days saw 7 commits to the ACPI subsystem, for a total of about 800 lines of code added. That's pretty average on a size-per-size basis across the rest of the kernel, and normal for the overall upward trend in kernel development speed. So it seems that just as many "linux geeks" (which i am interepreting strictly to mean kernel developers) care about battery life as care about any other drivers short of network, sound and v4l.
(or, as someone posted in the xkcd comic, full screen flash video... which I realize is also at least partially an Adobe issue..
comics are reliable sources of information aren't they. it is ENTIRELY an adobe issue, however fullscreen flash video has worked fine on linux for 3 or 4 years now.
This comment is fully compliant with RFC 527.
I'd just like to interject for a moment. What you're referring to as Windows 7, is in fact, Windows Vista SP3, or as I've recently taken to calling it, Mojave Experiment 2.0. Windows 7 is not an operating system unto itself, but rather another marketing scheme by Microsoft to trick users into trying Vista, a full OS as defined by Microsoft.
Many computer users run a modified version of Vista every day, without realizing it. Through a peculiar turn of events, the version of Vista which is widely used is often called "Windows 7," and many of its users are not aware that it is basically the Vista system, developed by Microsoft.
There really is a Windows 7, and these people are using it, but it is just part of the system they use. Windows 7 is the Graphical User Interface; the program in the system that lets idiots click on things and think they know how a computer works. The Graphical User Interface is an essential part of an operating system that was made for retards, but useless by itself; it can only appear to have a function in the context of the user not knowing how their OS works. The Windows 7 GUI is normally used in combination with the Vista operating system; the whole system is basically Windows Vista with shinier buttons added. All the so called "Windows 7" users are really users of Windows Vista SP3.
i only read half the posts here but all i can say is:
MSI Wind+windows 7=5.5hrs battery
http://www.thinkwiki.org/wiki/How_to_reduce_power_consumption http://www.lesswatts.org/projects/powertop
But, 5 years ago I had a Asus s5n, i had gentoo and fedora instaled, and the battery lasted more than on windows (I had some tweaks for saving battery then). Same with my current Dell D630 on Ubuntu (default)... so Battery life on linux as always worked well for me
Hence, they're fully aware of any power saving tricks the hardware may provide.
The linux developer(s) may or may not have had that level of support, and many of the drivers have been written without it, some even reverse engineered. Getting the driver to work reliably *at all* was quite likely more relevant than saving power in many cases.
It could simply be one driver in particular chewing the shit out of your battery life, could be all of them...
I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
Is your W500 one of those models with two video cards? I have a T400 and it has 2 video cards: Intel (on MB) and a separate NVIDIA. You can choose from BIOS which card to activate under non-windows OS. I had a similar problem like you until I discovered I need to activate Intel from the BIOS (when selecting AUTO, Intel would still be chosen but NVIDIA is still powered up and consumes a lot of energy).
honestly, I dont get what the fuss is all about, just identify what consumes power, look it up on google or whatever and tweak it down .
hard drives : set ext3/4 commit time very high (mine is about 1hour), same with the variable which control journaling updates in /sys, push up power management and/ord spindown times in hdparm
gpu : if supported enable OnDemandVBlankInterrupts and underclocking/volting, if not you are fucked
screen : low brightness is the way to go
cpu : less useless apps => less wakeups => less power drain. Do you really need all the fancy stuff that comes with gnome or kde? compiz is a power guzzler too
others : pcie aspm, sata alpm, usb autosuspend, modprobe -r everything you dont need (I never use bluetooth, webcam for example), turn off wireless radio if you dont use it
in general read lesswatts.org and listen to powertop advice
This is not my expirience, at work the whole team has an identical laptop (dell latitude 800), the only difference being ofcourse that i'm using linux (ubuntu) while they are all on windows. Now, they are always the first to reach for their powercables while i'm still good.
Try these things: /etc/laptop-mode/conf.d - it contains a bunch of config files, you can get a lot of benefit out of those.
* configure the power manager
* install powertop and check out some of the suggestions it makes
* check out
Sure, by default you probably could get worse battery life compared to windows, and why isn't this done correctly to begin with yadda yadda... it is there, you can fiddle around with it, which for me is good enough at the moment. i'm sure one distro or another will finally get around it and make decent default settings. A year ago, suspend wans't working on my dell either, it does now, and does it very well. You can't tackle everything at once.
Also, don't forget that 'Independent tests show that Red Hat Linux pulls as much as 12% less power than Windows 2008 on identical hardware'
On a long enough timeline, the survival rate for everyone drops to zero.
http://www.bablotech.com/2009/08/25/top-15-linux-distributions-for-netbooks/
You talk absolutely utter rubbish. Just because you don't know of the existance of something, doesn't mean it doesn't exist, such as differences in the vista vs win7 underlying kernel code, like cpu addressing methods or locking primitives. How ignorant you must be to assume that something can't exist without you knowing about it. Maybe I'll just start calling Uranus "Neptune" because I don't know about the differences between the two planets.
Maybe in future you could try posting about things you know about, rather than posting about things you plain don't, it might be a nice experience for us all.
The revolution will not be televised... but it will have a page on Wikipedia
"Maybe you should invest in a ne button cell"
Maybe you should invest in a new 'w' button?
The revolution will not be televised... but it will have a page on Wikipedia
> I can almost guarantee that if ATI would open up their documentation you'd see better battery life just as quickly as folks could code it.
Actually, AMD/ATI has done exactly that, but it's still very hard to get right, since the community just recently got Compiz (barely) running on the resulting open source drivers.
Apparently, it will take some time until they get to the power efficiency tweaking part.
You must be having some hardware compatibility issues. I dual boot Windows XP with an out-of-the-box Ubuntu Hardy installation (newer versions are said to have even better power management), and my battery life under Linux is on par with or better than under Windows XP. Measured battery life, that is, not the overly-optimistic estimate by windows' MIBL (Meaningless Indicator of Battery Life).
The only thing I changed in Linux is disabling the desktop effects but that's only fair; windows XP doesn't have them, and enabling them in Vista when running on battery is said to drain the battery in no time. Oh yeah, I've always been using the proprietary video drivers (in my case ATI); there are conflicting reports on whether this is good or bad for battery life.
I schmell WOOSH.
Note: I was 13 when I wrote most of this. Take with several grains of salt.
Try flipping the switch from "magic" to "more magic". It's not safe to leave it in the wrong position.
Slashdot: where don knuth is an idiot because he cant grasp the awesome power of php
Maybe they are incompetent with Linux. Ironically, just killing the "powermonitor" program (showed the current battery status) would nearly double my EEE's battery life. That program sucked down lots of CPU power. It appears to be fixed in a recent update, or maybe I fixed it myself. Can't remember.
There are probably a lot of things they could have done to improve battery life in Linux. ...and don't get me started on the security problems.
Want to know: See subject-line above - rinse, lather, & repeat...
http://tech.slashdot.org/comments.pl?sid=1327945&cid=29021689
I DO QUESTION YOUR ABILITIES TO RUN & UNDERSTAND LINUX period... why? This:
-----
"Heh. The i-RAM is a finicky chunk of trash." -by ion.simon.c (1183967) on Saturday December 13, @09:55AM (#26102285)
-----
So, since you said that? Well, back it up, vs. these 3 simple questions you now refuse to answer:
-----
1.) Does the IRAM run on Windows reliably? ANSWER = YES...
2.) Does the IRAM run on Linux reliably?? ANSWER (per your sources, YOU, no less) = NO...
3.) Since the IRAM runs on Windows well, but not Linux, well... what is the "piece of trash" here (what is it YOU called the IRAM? A "finicky piece of trash"??)??? ANSWER (obviously) = LINUX...
-----
Funny - That 'piece of trash' (what you called the GIGABYTE IRAM SSD) works FINE on Windows... & yet, it does not on Linux!
(Explain that, & it appears the "finicky piece of junk", IS LINUX, not Windows OR the IRAM... well, it's that or what I am STARTING to lean towards, & that is that YOU DO NOT KNOW WHAT YOU'RE DOING WITH ONE (or, Linux apparently either)).
AND, see that URL readers... as to ion.SIMIAN.c's "alleged expertise" w/ Linux... which clearly, isn't much, nor is his judgement, period. He "bitches" a lot, & nitpicks others, but as you can clearly see, based on HIS OWN STATEMENTS? He is FAR from being an "expert" on any of this material.
APK
P.S.=> Ion.SIMIAN.c - Based on your "assumptions" above where you state "The IRAM is a finicky piece of junk", & yet, it runs FINE on Windows (I have one, alongside a CENATEK "RocketDrive" SSD running right alongside it, on Windows, JUST FINE, mind you)? I'd have to say you're one of the LAST people folks should be listening to, about Linux (or, any other OS or program for that matter)... apk
If Windows works better for you, use it. Use whatever OS makes you happy. If you want to run Linux on a PC designed for Windows, try a live disk first. If it doesn't work how you like it to, consider returning the laptop. I have no problems with battery life on my Dell.
I know the "never assume" thing in IT, but here, I do assume that
...the dual core CPU reduces speed when idle...
means that he is NOT running BOINC or other numbers-crunching software...
No it doesn't, it means the CPU reduces clock speed when idle. If BOINC or other number crunching app is running, then his CPU isn't really going to be idle. If the CPU is never idle, it will never reduce clock speed - there's no contradiction.
"Necessity is the plea for every infringement of human freedom. It is the argument of tyrants; it is the creed of slaves
Although in this case I believe you are correct, just because a capability is present doesn't mean it is used. For example, Windows Vista also uses NTFS, NTFS tracks last accessed time. Except, it doesn't (by default) in Vista in a vain effort to improve performance.
Also keep in mind that these "out of the box" installs are never out of the box wrt to a clean install of the os: they are pre-tweaked (whether with spyware, performance settings or something else).
It doesn't excuse linux when a vendor is pre-installing it, just noting the difference between potential capabilities and what is actually enabled
Wow, the Mexican immigrant leeching off of our tax dollars and taking handouts is using a Free Operating System. I would have thought you would have just paid for XP or Vista with your food stamps just like 71 of your siblings have done. Oh wait, you are full of shit because there is no way that you own anything that flips up besides the pizza box that you and 981 of your family members live in. You know I bet you Mexico isn't that bad or why not go fuck with Canada. Why must you fuck with the United States? It's not your land, it hasn't been for over 100 years. Your bullshit justifications fall on it's flat Mexican face. I bet you, you don't even know Mexican history and the coyote prick who ferried you over told you to use that as an excuse to get voting rights. Really man, go back to Mexico.
some of the most popular gui toolkits on linux are very heavy on cpu load.
that may be part of the problem . ????
I've a Dell 1420 running Ubuntu 9.04 and I still get 4.5 hours. It's an Intel duo with the optional 9 cell battery - 6 cell was standard.
Thank a veteran -- George
If the disk is powered off for many minutes (for example ten minutes) then the savings compared to the cost of spin up will be substantial (it looks like the pay off starts at around 10 seconds after the hard disk has been put to sleep if you read what is written in Extending Battery Life with Laptop Mode). It may even be possible to sleep the disk for longer if everything the user needs is cached (e.g. listening to music sequentially with a big buffer). The killer is that all all those spin ups and spin downs cause increased wear and tear. As such the problem is knowing when it is safe to spin the disk down such that it won't be immediately spun back up again (this may be solvable by forcing a long writeback time at the risk of bigger data loss). See laptop-mode.txt for some examples.
awesome and very very true to form post. Ive been a linux/Unix user since 1996. the same trend continues. I still really like Linux, but I'm a programmer with LOTS of patience. ;)
with Ubuntu 9.04, I get almost the same amount of battery life when compared to Vista. Just a thought that all windows has to do is call particular API's provided by the OEM to make power adjustments such as processing speeds, fan speeds and ..... If the same information is available to any Linux developer, Linux could provide the same features too...... so its nothing innovative that M$ is doing in Win 7, its just implemented the usage of API's that it got hold of long before they were/weren't made Public.
and observe how, unfortunately, XP consistently outperforms Linux :(
I went through the first 10 entries which support both OS's and found 8 were exactly the same and two were longer under Windows XP. Is that what you call "Consistently outperforming"?
The problem here is that you have a laptop that doesn't work properly with GNU/Linux. It is that simple. If you buy a laptop designed for GNU/Linux you'll probably get competitive battery life to MS Windows and/or Mac. The problem is MS Windows can't be optimized as easily and GNU/Linux just doesn't have a ton of players doing the optimization. Apple has the better battery life usually because they control everything. So to conclude depending on the hardware GNU/Linux may get better battery life than MS Windows or Mac notebooks. The problem is few if anybody sells optimized notebooks with GNU/Linux.
and observe how, unfortunately, XP consistently outperforms Linux :(
I went through the first 10 entries which support both OS's and found 8 were exactly the same and two were longer under Windows XP. Is that what you call "Consistently outperforming"?
I take you know what they say about half truths. But just in case you're interested in the whole truth, then here it is:
Out of the 28 machines that are listed in http://event.asus.com/eeepc/comparison/eeepc_comparison.htm, there are exactly 22 that have both a Linux and XP configuration; the remaining 6 machines are either exclusively Linux, or exclusively XP, which means their battery life under the two OSes can't be compared.
From within the 22 machines that can be compared, 11 (=50%) have longer battery life under XP, and 11 have exactly the same battery life under both OSes.
So yes. This is what I call consistently outperforming.
The tickless/dynticks Linux kernel patches first appeared in 2.6.21 for the x86 platform. amd64 tickless patches appeared a bit later in 2.6.24. It isn't just a matter of changing the HZ either - it looks at what timers are set to go off and idles until the soonest timer is set to go off or an interrupt arrives rather than firing wakeup events and then realising there is nothing to do (so it's not just switching between fixed frequencies).
There may have been issues using tickless kernels with virtualisation solutions but that might have been when using tickless kernels as hosts rather than guests (it's not something I've looked at) and in all likelihood the problem has been solved by now.
Thanks. I haven't looked at the graphics cards in all those, but from some of the other posts, it appears that the ATI cards have bugs and that, interestingly, only MS and ATI know what they are and they do not document them. It would be interesting to see if those which are slower use those graphic chipsets.
+5 Insightful...I'm proud and saddened at the same time.
"A person is smart. People are dumb, panicky dangerous animals and you know it." - K
ChromeOS is Linux.
Maybe Computers will never be as intelligent as Humans.
For sure they won't ever become so stupid. [VR-1988]
I know.
Comment removed based on user account deletion
so many have pushed linux on n00bs claiming its ready for mainstream. these folks have done such a disservice to both the os and the folks they hoisted this upon. until such basics are worked out, its just not ready for grandma
i've read a lot of comments here and true to form, most of them are typical /. comments. a lot remains to be done by mainline distributions, very true. however it's just common sense for you as the user to shut off devices you're not using, lower the brightness unless you really want it running at max. same goes for the cpu. there -are- linux tools for managing your resources, i know kde has them, i know gentoo has them, i know other distributions and desktops have them. it doesn't take a whole lot of effort and time to do a few simple things that can significantly improve battery life. tools like powertop that tell you exactly how to change things. tools like cpufreqd. most distributions have software categories. gentoo alone has 28 tools in sys-power, and in just one category. gentoo is one of the youngest and has one of the smallest sets of software packages available. i've played with a lot of distributions and i've seen several tools that gentoo doesn't yet have.
stop being childish and blabbering about with nonsense, spreading FUD. stop being a typical slashdot crowd and better yourself. put your energy into getting ATI and Nvidia to do something better. i'm a power user and i can tune my system to last longer than windows with ease. the difference is that i am usually doing something power hungry that you wouldn't do on a windows laptop. so my battery life is usually a bit less than windows might be.
so stop yammering about "linux is stupid, it eats batteries for lunch!" and learn just a pinch about linux. you might figure out that you already have the means to significantly improve your system. go exploring to see what is already installed on your system, or what is available to be installed. stop being a tool and start using the tools.
-david
For some strange reason, I've had similar issues with Ubuntu's Hardy Heron on my Thinkpad R500. On Ubuntu Jaunty, though the battery life is as good as what I get on Windows. It maybe has got something to do with the kernel version, but I'm not sure.
Not in India, it won't. When power goes out, the Internet connection dies too. I know because we have a generator and while the modem and router stay up, the DSL connection dies. Airtel FTL.
My laptop gets at least 30min more battery on my Gentoo build than on XP.
Oh My Goodness!
nar
batterieswholesale.net Well, i think Windows XP is more perfect and flexible than Ubuntu linux because it has a tweak program that actually configures the system and if u have ubuntu linux just closed some the application that are not needed coz it uses more memory that's why you need it to closed the application....