[Bug 260214] acpi_battery: Should provide current/max battery charge in Wh (wine expects them)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 24 Dec 2021 14:16:46 UTC

--- Comment #4 from georg.lastname@web.de ---
(In reply to Damjan Jovanovic from comment #2)
"when I successfully open it as non-root user with O_RDONLY, the ioctl() gets:
ioctl: Operation not permitted"

This is commented in sys/dev/acpi.c (line 4000)
     * Core ioctls are not permitted for non-writable user.
     * Currently, other ioctls just fetch information.
     * Not changing system behavior.
    if ((flag & FWRITE) == 0)
        return (EPERM);


Just delete the if statement? xD

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