Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple batteries in FreeBSD / DragonFlyBSD #17

Closed
svartalf opened this issue Feb 28, 2019 · 0 comments
Closed

Support multiple batteries in FreeBSD / DragonFlyBSD #17

svartalf opened this issue Feb 28, 2019 · 0 comments
Assignees
Labels
A-battery Area: battery crate C-enhancement New feature or request O-dragonfly Operating system: DragonFly BSD O-freebsd Operating system: FreeBSD

Comments

@svartalf
Copy link
Owner

Right now implementation for FreeBSD / DragonFlyBSD can handle only one installed battery, this behavior should be fixed.

acpi_battery_get_battinfo function from the freebsd sources can be used as reference.

@svartalf svartalf added C-enhancement New feature or request O-freebsd Operating system: FreeBSD O-dragonfly Operating system: DragonFly BSD A-battery Area: battery crate labels Feb 28, 2019
@svartalf svartalf self-assigned this Mar 9, 2019
svartalf added a commit that referenced this issue Mar 10, 2019
Both battery and battery-ffi are now propagating possible errors to callers.

Supporting multiple devices for FreeBSD and DragonFlyBSD systems (closes #17)
Ignoring Linux devices with scope other than System (closes #18).
svartalf added a commit that referenced this issue Mar 10, 2019
Both battery and battery-ffi are now propagating possible errors to callers.

Supporting multiple devices for FreeBSD and DragonFlyBSD systems (closes #17)
Ignoring Linux devices with scope other than System (closes #18).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-battery Area: battery crate C-enhancement New feature or request O-dragonfly Operating system: DragonFly BSD O-freebsd Operating system: FreeBSD
Projects
None yet
Development

No branches or pull requests

1 participant