Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Dec 2021 14:05:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260214] acpi_battery: Should provide current/max battery charge in Wh (wine expects them)
Message-ID:  <bug-260214-227-J5d0qsBFf3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260214-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260214

--- Comment #5 from georg.lastname@web.de ---
Or maybe we can calculate the remaining time even when charging. I'm not sure
whether it would result in a bogus output. Maybe remove the second condition
here:

In src/sys/dev/acpi_battery (line 238):
        */
         * If the queried battery has no discharge rate or is charging,
         * report that we don't know the remaining time.
         */
        if (valid_rate == 0 || (battinfo->state & ACPI_BATT_STAT_CHARGING))
            battinfo->min = -1;
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260214-227-J5d0qsBFf3>