Short circuit a little earlier when not in the right state
Support the battery in an h6 netbook
use posix conditions