]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Revert "ACPI: battery: negate current when discharging"
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jul 2025 10:54:55 +0000 (12:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:25:03 +0000 (18:25 +0200)
commite0098a11933bd5d9136df6e1d44d99a07c31c302
treedf2acec18e6567cbab83aaf00eed778c7d64c2b4
parent18d58a467ccf011078352d91b4d6a0108c7318e8
Revert "ACPI: battery: negate current when discharging"

commit de1675de39aa945bad5937d1fde4df3682670639 upstream.

Revert commit 234f71555019 ("ACPI: battery: negate current when
discharging") breaks not one but several userspace implementations
of battery monitoring: Steam and MangoHud. Perhaps it breaks more,
but those are the two that have been tested.

Reported-by: Matthew Schwartz <matthew.schwartz@linux.dev>
Closes: https://lore.kernel.org/linux-acpi/87C1B2AF-D430-4568-B620-14B941A8ABA4@linux.dev/
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/battery.c