Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Terrible battery level prediction since 10.10 - Any fixes?

  1. #1
    Join Date
    Apr 2006
    Location
    Leeds, England
    Beans
    173
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Angry Terrible battery level prediction since 10.10 - Any fixes?

    Hi Guys,

    Ubuntu battery prediction is terrible with my laptop. Upon power-up, Ubuntu frequently reports one minute of battery power remaining, yet the hardware LED is happily glowing green.

    I know that my laptop is OK with Linux - Ubuntu 10.10 & earlier work fine. I have been using Ubuntu for years (since Breezy).

    My laptop is a Lenovo 3000 0769-B4G

    I have tried various suggestions in the past without success & I am now at the stage where I have forgotten what I have tried!

    I am trying very hard, but I'm starting to get a little disheartened with the new changes.

    Does anyone know of a fix that works?

    Many thanks.
    The Ubuntu Counter Project - User number # 6435

  2. #2
    Join Date
    Oct 2005
    Location
    Syracuse, NY
    Beans
    659
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Terrible battery level prediction since 10.10 - Any fixes?

    How old is your current battery? That model came out over 4.5 years ago, so if it's an original battery it's probably shot and will be reporting weird #'s. Usually you get 2.5-3 years off a battery. Sometimes more, sometimes less.

  3. #3
    Join Date
    Apr 2006
    Location
    Leeds, England
    Beans
    173
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Terrible battery level prediction since 10.10 - Any fixes?

    The battery is fine (I have 2). Discount any hardware problem.

    I have dual boot on my laptop & the other OS has reasonable prediction.

    The problem started since Unity. I can roll back to 10.10 & it all works fine.
    The Ubuntu Counter Project - User number # 6435

  4. #4
    Join Date
    Oct 2005
    Location
    Syracuse, NY
    Beans
    659
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Terrible battery level prediction since 10.10 - Any fixes?

    What's the other OS? Is it another Linux-based?

    Did you ever try 11.04? If not then most likely it's a regression in the kernel from the 2.6 to 3.0 change. Unity is just a desktop environment and it's battery indicator is just reporting what the ACPI in the kernel tells it to. You can see the information yourself by:

    cat /proc/acpi/battery/BAT1/state

    When you're on battery it'll show the remaining capacity and the current discharge rate. That's how it calculates the time remaining.

  5. #5
    Join Date
    Apr 2006
    Location
    Leeds, England
    Beans
    173
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Terrible battery level prediction since 10.10 - Any fixes?

    Quote Originally Posted by xyzzyman View Post
    What's the other OS? Is it another Linux-based?
    Windows, but other than "battery prediction works on another OS" I'm not sure that its pertinent.

    Quote Originally Posted by xyzzyman View Post
    Did you ever try 11.04? If not then most likely it's a regression in the kernel from the 2.6 to 3.0 change. Unity is just a desktop environment and it's battery indicator is just reporting what the ACPI in the kernel tells it to. You can see the information yourself by:
    Yes, I tried 11.04, but it was badly broken for my laptop due to graphics card issues & freezing. I had to revert to 10.10 & wait for 11.10. You may be right about the kernel. I'm not necessarily blaming Unity, it's just that my problems started in the Unity timeframe.

    Quote Originally Posted by xyzzyman View Post
    You can see the information yourself by:

    cat /proc/acpi/battery/BAT1/state

    When you're on battery it'll show the remaining capacity and the current discharge rate. That's how it calculates the time remaining.
    Ahh... This is one of the things I remember doing now.. Here are some results:


    cat /proc/acpi/battery/BAT1/info

    present: yes
    design capacity: 5100 mAh
    last full capacity: 5100 mAh
    battery technology: rechargeable
    design voltage: 11100 mV
    design capacity warning: 420 mAh
    design capacity low: 156 mAh
    cycle count: 0
    capacity granularity 1: 264 mAh
    capacity granularity 2: 3780 mAh
    model number: PA3465U
    serial number: 3658Q
    battery type: Li-Ion
    OEM info: COMPAL

    cat /proc/acpi/battery/BAT1/state

    present: yes
    capacity state: ok
    charging state: discharging
    present rate: 0 mA
    remaining capacity: 4437 mAh
    present voltage: 11100 mV

    cat /proc/acpi/battery/BAT1/alarm

    alarm: unsupported

    It's clearly reporting badly at a discharge rate of 0mA! Typically Ubuntu reports 10 minutes of battery life upon power-on, but increases to 45 minutes or so after some time.

    Cheers
    The Ubuntu Counter Project - User number # 6435

  6. #6
    Join Date
    Apr 2006
    Location
    Leeds, England
    Beans
    173
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Terrible battery level prediction since 10.10 - Any fixes?

    An additional note:

    I booted to 10.10 live CD & running the previous commands gives the same results.

    Strange that 10.10 was absolutely fine at predicting the battery.
    The Ubuntu Counter Project - User number # 6435

  7. #7
    Join Date
    Oct 2005
    Location
    Syracuse, NY
    Beans
    659
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Terrible battery level prediction since 10.10 - Any fixes?

    Have you performed a BIOS upgrade since you originally ran 10.10 or changed a BIOS setting? Something has changed your ACPI and assuming there isn't a hardware failure, it's not compatible with the kernel. I'm willing to bet that even a livecd of Fedora would give you the same results.

  8. #8
    Join Date
    Apr 2006
    Location
    Leeds, England
    Beans
    173
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Terrible battery level prediction since 10.10 - Any fixes?

    It isn't hardware. Really, its not.

    Battery prediction still works fine on 10.10 & also Windows.

    I need to move forward with a fix for 11.10, or hope that 12.04 has a fix.
    The Ubuntu Counter Project - User number # 6435

  9. #9
    Join Date
    Jan 2008
    Location
    Spain
    Beans
    1,185
    Distro
    Ubuntu

    Re: Terrible battery level prediction since 10.10 - Any fixes?

    Perhaps your problem is ralated to this known kernel issue, which is there since Ub 11.04.

    There is a fix, which (hopefully) will be applied in 12.04 Precise. In the meanwhile, and according to comment 242 in the above link, the fix for 11.10 Oneiric is to install linux kernel 3.0.20 from this ppa.

    Hope it helps.

    EDIT: I'm using that kernel right now. Not measued properly yet, but I'd the feeling of battery life being much better.
    UPDATE: Tested properly, seems to work fine. Please see #6 here
    Last edited by JC Cheloven; February 14th, 2012 at 12:32 AM.
    What's even more important than free software? - OPEN FORMATS.

  10. #10
    Join Date
    Apr 2006
    Location
    Leeds, England
    Beans
    173
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Terrible battery level prediction since 10.10 - Any fixes?

    Tried the new kernel, but it did no good.

    Just upgraded to 12.04 beta yesterday. First impressions appear that prediction is OK with 12.04.

    Using the cat commands as described in earlier posts produces the same results, so it must be how 11.04 & 11.10 was interpreting the results.

    Cheers guys.
    The Ubuntu Counter Project - User number # 6435

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •