Date: Fri, 24 Dec 2021 14:16:46 +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-pKMjAvs9WY@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-260214-227@https.bugs.freebsd.org/bugzilla/> References: <bug-260214-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260214 --- 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() ge= ts: 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) =3D=3D 0) return (EPERM); ... Just delete the if statement? xD --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260214-227-pKMjAvs9WY>