Slashdot Mirror


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."

21 of 907 comments (clear)

  1. RTFM by eln · · Score: 5, Funny

    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.

    1. Re:RTFM by Rhaban · · Score: 2, Funny

      it hasn't?

    2. Re:RTFM by Shakrai · · Score: 2, Funny

      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.

      Recompile the kernel? You n00b. Just add this to your rc.local file:

      echo 0 > /proc/sys/kernel/randomly_discharge_battery

      --
      I want peace on earth and goodwill toward man.
      We are the United States Government! We don't do that sort of thing.
    3. Re:RTFM by Khyber · · Score: 2, Funny

      If you actually bothered to THINK about it - all operations of a computer are random power discharges.

      therefore, it's not an option on compile - the compiler automatically puts it in without you needing to say so! That's the POWER OF LINUX!

      --
      Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
  2. hah! by neo · · Score: 4, Funny

    He only wasted you time and informed me and about everyone else who didn't know this. Thanks eln!!

  3. Re:power saving tip: disable the optical drive by Yvan256 · · Score: 5, Funny

    Go a step further - read a book.

  4. Re:power saving tip: disable the optical drive by Anonymous Coward · · Score: 5, Funny

    Jerkwad.

  5. Re:power saving tip: disable the optical drive by Shakrai · · Score: 5, Funny

    Go a step further - write a book.

    --
    I want peace on earth and goodwill toward man.
    We are the United States Government! We don't do that sort of thing.
  6. No... by msauve · · Score: 5, Funny

    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
    1. Re:No... by Anonymous Coward · · Score: 2, Funny

      PSEUDO_RANDOMLY_DISCHARGE_BATTERY

      ermmmm.... you mean sudo PSEUDO_RANDOMLY_DISCHARGE_BATTERY?

  7. Re:power management by Anonymous Coward · · Score: 3, Funny

    Oh, hey, I know you. You're the tech support guy from A&TT I spoke with last week. When I asked why my cell phone didn't turn on anymore, you asked me to turn it on and go to the configure screen. When I responded that It wouldn't turn on. You asked me why.

  8. No problems by mgichoga · · Score: 5, Funny

    What do you mean? I just turned on my laptop linux and it always lasts ove

  9. Re:Well duh by Tubal-Cain · · Score: 5, Funny

    Because linux is fucking terrible for desktop use.

    The battery life on my desktop is just fine.

  10. Re:Poor choice for screensaver? by Anonymous Coward · · Score: 1, Funny

    Thanks for that 3 year old article about an experimental kernel patch.

    PS: this kind of absolutely useless advice is the reason the linux community eats big black shits

  11. Re:Well duh by rock217 · · Score: 1, Funny

    shocking that P & GP posted as AC

    --
    Wah Sig!
  12. Re:Ditch Linux by PouletFou · · Score: 2, Funny

    Stop feeding the trollfeeders, you trollfeederfeeder!

  13. Re:power saving tip: disable the optical drive by IgnitusBoyone · · Score: 2, Funny

    Ok, now everyone knows it takes far more energy to create a resource then it does to use a resource, We are trying to save ener

    --
    Momento Mori
  14. Re:Well duh by Anonymous Coward · · Score: 5, Funny

    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.

  15. Re:power saving tip: disable the optical drive by ThatsNotPudding · · Score: 2, Funny

    Once you ripped the movie to a file

    And if you're returning to the US from overseas, kindly ask the nice TSA people to charge up your laptop before taking you off to MPAA Prison.

  16. Re:Poor choice for screensaver? by Goaway · · Score: 4, Funny

    Good old Linux community, where posting "I have this problem..." gets you the response "YOU DO NOT HAVE A PROBLEM! POST PROOF OR RETRACT!"

  17. Re:Poor choice for screensaver? by darthwader · · Score: 4, Funny

    I have no idea what you are talking about. I don't have problems getting support on Linux from the Linux community.. Debian Ubuntu has the greatest and friendliest support people in the world.

    Can you prove you got poor or non-existing support for Linux? Show us screen-shots, chat logs, and e-mail exchanges, or we won't believe you.

    You want to hear about poor support? Try calling Microsoft tech support. They completely suck. I once called Microsoft tech support and I was on hold for 13 hours, and then I got connected to some loser who can't speak English. Of course I only called to swear at him, so I yelled abuse at him and hung up. But I had to wait 13 hours first. That sucks. If you want to yell abuse at a Linux support person, you can call Linus himself any time of the day or night, and he'll thank you for your suggestion.

    The Linux community is great. I think you don't have any problems getting support for Linux, or if you do, it is because you are rude, stupid, and useless.

    --
    I hate it when I make a joke and I get modded "+5 insightful". Mod the stupid comments "funny", not "insightful", pleas