[Bug 262018] x11/lumina-core: Patch battery monitoring for non-x86 systems

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 17 Feb 2022 15:35:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262018

            Bug ID: 262018
           Summary: x11/lumina-core: Patch battery monitoring for non-x86
                    systems
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: lbartoletti@FreeBSD.org
          Reporter: jwb@freebsd.org
          Assignee: lbartoletti@FreeBSD.org
             Flags: maintainer-feedback?(lbartoletti@FreeBSD.org)

Created attachment 231894
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231894&action=edit
Patch to fix battery monitoring on non-x86

The lumina battery monitoring is currently implemented by shelling out "apm"
commands.  The apm command does not exist on arm, powerpc, or riscv.  The
patches attached switch to a sysctl() interface to directly query acpi_battery,
so they should work on any platform as well as being more efficient.

I would hold off on committing them, though, pending review from upstream:

https://github.com/lumina-desktop/lumina/issues/765

If there are no major issues, then maybe we can patch the port until these
changes make it into the upstream dist.

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