Re: battery info: apm cannot attach to mainbus: compiling kernel error

Mouse <[email protected]> Mon, 16 May 2016 13:08:25 -0400 (EDT)
Newsgroups gmane.os.netbsd.devel.general
Message-ID <[email protected]>
> Having some difficulty adding getting battery information from my
> laptop, [...]

> [...] an alternative to solution to accessing battery information
> such as via acpibat

If envstat shows you the information you want, you could either use it
or write your own program that reads from the same underlying
mechanisms.  (I did the latter with my own laptop.)  Since you say
acpibat reports presence at autoconfig time, I suspect envstat may well
work for you.

You also don't say what NetBSD version(s) you're running, and that may
matter for at least some possible answers.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		[email protected]
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B