Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 Voltage at 0 Volt causes floating point exception

open
nobody
None
5
2010-03-28
2009-11-05
Anonymous
No

My laptop has a dead battery which is no longer charging (or maybe something else is broken): acpi reports 0 Volt which leads to divisions by zero in some places.

I added 3 lines in acpi.c to set back the voltage value to -1 (unknown state) in that case.

Discussion

  • patch to set back voltage to -1when no valid voltage value is returned

     
  • Michael Meskes
    Michael Meskes
    2010-03-28

    • status: open --> closed
     
  • Michael Meskes
    Michael Meskes
    2010-03-28

    This was already fixed in 1.4 I think.

     
  • Michael Meskes
    Michael Meskes
    2010-03-28

    Oops, it was just fixed in git, will release 1.5 with this patch real soon.

     
  • Michael Meskes
    Michael Meskes
    2010-03-28

    • status: closed --> open