OpenBSD battery state - BSD
Users browsing this thread: 1 Guest(s)
|
|||
you can echo the percentage like this:
battatm=$(sysctl -n hw.sensors.acpibat0.amphour3 | sed s/.A.*//) battfull=$(sysctl -n hw.sensors.acpibat0.amphour0 | sed s/.A.*//) load=`echo "${battatm} / ${battfull} * 100" | bc` echo ${load} |
|||
Messages In This Thread |
OpenBSD battery state - by bsdkeith - 27-04-2015, 07:51 AM
RE: OpenBSD battery state - by z3bra - 27-04-2015, 05:46 PM
RE: OpenBSD battery state - by bsdkeith - 28-04-2015, 05:26 AM
RE: OpenBSD battery state - by jvarg - 10-07-2015, 06:06 PM
RE: OpenBSD battery state - by Mafia - 11-07-2015, 01:16 AM
RE: OpenBSD battery state - by bsdkeith - 11-07-2015, 05:10 AM
|