Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Dec 2014 09:28:42 +0100
From:      Dan Lukes <dan@obluda.cz>
To:        Colin Percival <cperciva@freebsd.org>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: ENXIOing non-present battery
Message-ID:  <54840FBA.5050409@obluda.cz>
In-Reply-To: <54840781.70603@freebsd.org>
References:  <54840781.70603@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Colin Percival wrote:
> it seems like not attaching a non-present battery would be a good idea.  This shouldn't be the default behaviour, since
> there are plenty of systems where a non-present battery might be inserted at
> a later time; but I see nothing wrong with adding an option.
> 
> The attached patch adds a acpi.cmbat.hide_not_present loader tunable which,
> as the name suggests, hides non-present batteries; this is done in the probe
> code by returning ENXIO

> Any objections to me committing this?

No, but it may be more useful to create more generalized interface.

A remember broken ACPI with issues related to ghost floppy drive when no
real floppy drive has been present.

Not only battery, but any device should be considered non-attachable
upon administrator request.

Just my $0.02

Dan




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54840FBA.5050409>