Page MenuHomeFreeBSD

Manual for ACPI battery subsystm
ClosedPublic

Authored by takawata on Nov 26 2019, 8:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 13 2024, 12:10 PM
Unknown Object (File)
Feb 3 2024, 5:05 AM
Unknown Object (File)
Jan 4 2024, 6:15 AM
Unknown Object (File)
Dec 20 2023, 1:20 AM
Unknown Object (File)
Dec 3 2023, 2:39 PM
Unknown Object (File)
Dec 3 2023, 2:39 PM
Unknown Object (File)
Dec 3 2023, 2:39 PM
Unknown Object (File)
Dec 3 2023, 2:39 PM

Details

Summary

ACPI battery subsystem was lack of document.
So I write man page for it.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27776
Build 25964: arc lint + arc unit

Event Timeline

Thank you for writing the man page!
I've found a typo. Can you run textproc/igor and "mandoc -Tlint" over the man page and see if they turn up any warnings?

share/man/man4/acpi_battery.4
68

s/Retruns/Returns/

Fix errors: typo and mandoc -Tlint.

Forget to change description from acpi_thermal.4, which was based.

danfe added inline comments.
share/man/man4/acpi_battery.4
43

You should get confirmation from the native speaker, but it looks like the is missing before one and AML.

98

Ditto before the ACPI.

110

Apparently missing word between units (used?) by the battery...

121

Is a really needed here before capacity and rate (below)?

140

by, not in?

145

Maybe just notification is sent to the system (without leading a)?

149

Shouldn't it be spelled as .Va low and .Va warning so they stand out? Ditto below for warning and full.

159

Hmm, in string does not look grammatically correct to me (here and below).

168

... given by the ACPI _BST ..., perhaps?

224

life of battery sounds a bit weird, as if the battery would really die after it discharges. :-) Even battery life is better, if it's hard to avoid using file altogether.

241

Shouldn't the the be moved to the right? That is, Note that notifications are supported only by the CMB

Thank you for your comment. I've updated it following your advice.

I found two instances of superfluous spaces. I think once they are fixed, we can go ahead and commit the man page.

share/man/man4/acpi_battery.4
121

There is an extra space here between "that" and "capacity".

122

and here is another extra space.

Looks good, thanks for writing this! Some suggestions inline. Please also bump .Dd before you commit this.

share/man/man4/acpi_battery.4
43

"The former is accessed by AML"

48

"an" or "the" SMBus interface perhaps?

49

"both in" can be removed

53

as -> as the

57

for -> for the

68

number of the -> number of

125

The battery's

137

Secondary

144

Remove "to"

152

Missing space between warning and .

161

These two lines should be joined, e.g. ".Va full ."

193

depends

240

Either "via the devd(8) interface" or " via devd(8)" (with the .Xr markup that's already there)

Update to reflect comments.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 10 2019, 2:19 AM
This revision was automatically updated to reflect the committed changes.