NetBSD Problem Report #43680

From  Wed Jul 28 11:00:34 2010
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 72F6663BB29
	for <>; Wed, 28 Jul 2010 11:00:34 +0000 (UTC)
Message-Id: <20100728110027.82F4DF890@marx.bitnet>
Date: Wed, 28 Jul 2010 14:00:27 +0300 (EEST)
From: Jukka Ruohonen <>
Sender: a b <>
Subject: acpibat(4) should strip invalid characters
X-Send-Pr-Version: 3.95

>Number:         43680
>Category:       port-i386
>Synopsis:       acpibat(4) should strip invalid characters
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gutteridge
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 28 11:05:00 +0000 2010
>Last-Modified:  Tue Apr 26 00:52:48 +0000 2022
>Originator:     Jukka Ruohonen
>Release:        NetBSD 5.1_RC2


It seems that the strings coming from ACPI may contain all kinds of garbage.
From the dmesg of David H. Gutteridge's LG X110:

acpiec0 at acpi0 (EC, PNP0C09): io 0x62,0x66
acpiacad0 at acpi0 (ADP1, ACPI0003): ACPI AC Adapter
acpibat0 at acpi0 (BAT1, PNP0C0A-1): ACPI Battery
acpibat0: MSI Corp.
 rechargeable battery 
acpibat0: model number MS-N021
, serial number 

acpibat0: granularity: low->warn 0.001 Ah, warn->full 0.001 Ah
acpilid0 at acpi0 (LID0, PNP0C0D): ACPI Lid Switch




If someone has a system like this, please do some pretty printing.
Maybe add a small utility function for this to acpi_util.c.



Responsible-Changed-From-To: port-i386-maintainer->gutteridge
Responsible-Changed-When: Tue, 26 Apr 2022 00:52:48 +0000
I can look at this. I still have the hardware (still an issue, last I checked).


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.