From nobody Sat Dec 25 14:05:07 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AD87A191345E for ; Sat, 25 Dec 2021 14:05:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JLm0M33dRz3n3Z for ; Sat, 25 Dec 2021 14:05:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4891F18738 for ; Sat, 25 Dec 2021 14:05:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BPE57GF037255 for ; Sat, 25 Dec 2021 14:05:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BPE57Uo037254 for bugs@FreeBSD.org; Sat, 25 Dec 2021 14:05:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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) Date: Sat, 25 Dec 2021 14:05:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: georg.lastname@web.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640441107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bxi+GX46oJz26VEsJGMntuow9UhY4eBaStIyrWUNMMk=; b=fazMJVcqGbi0s4R1aUtO1CE3OYz3EXaS6SzG9uNlItAFv+oS/xzWKC1J3TKf56GIQAMwoo KnEATE5j+7oDzVzfN05eib3wiP0ua/FQmYMOGk6vQQCCxzKCgwyEUhJmrd9dA6a12Ndd0G rBNCoSNUf6lk6seDVLdQyND/vXhwWefkjE2qx5LMFpLTvX7f3O9cwj1conliSNV/IPnL7y 791dd48jpH1MioWlY4IjiwgOz1ljL+TVSRDl6y68JHBL7I3qNpvPFd3me1iRNpifllr1fF 2c36MdiRoQw3qLtn14aXSMbbL9/iO3QHCvMRL8n+CK3OC4KlJ8Dwh2QVudI6lQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640441107; a=rsa-sha256; cv=none; b=lRroW9nGvCoVM9sS4iAyS9zt13ZArOVHTGMRzPE9WrL9gljQvMo80p2gsRqaSmEAxBUyY0 o51nF7kdJ3LrJpDlioOqkxHv2QBubynrYy3drLj9ynkemoSBeAZlImtUr9Pj1wVvDPNIFe nq+mxdocpz7HgvGForrmjHKxvzUTaVcQ9D6qA3hByE17WQTLzH6jtM+cAdnnbvHNI2Q6y2 AFLOtM64XcLDbogm7byIczCkGK5a13qi93Pml1TSYwLVdDr06xlYlGhIKwfMbvIQSokfLZ +mPiQ6Rc134H+mEeNAGUQOFQN1C/4RhOkIUtkZFdeDz//HZsbQ5wQ24JMefOfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260214 --- Comment #5 from georg.lastname@web.de --- Or maybe we can calculate the remaining time even when charging. I'm not su= re 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 =3D=3D 0 || (battinfo->state & ACPI_BATT_STAT_CHARGI= NG)) battinfo->min =3D -1; } --=20 You are receiving this mail because: You are the assignee for the bug.=