NetBSD Problem Report #42236
From www@NetBSD.org Mon Oct 26 16:14:06 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id E1FCE63B902
for <gnats-bugs@gnats.netbsd.org>; Mon, 26 Oct 2009 16:14:06 +0000 (UTC)
Message-Id: <20091026161406.B581263B8B6@www.NetBSD.org>
Date: Mon, 26 Oct 2009 16:14:06 +0000 (UTC)
From: hashikaw@biology.tohoku.ac.jp
Reply-To: hashikaw@biology.tohoku.ac.jp
To: gnats-bugs@NetBSD.org
Subject: cannot start apmd if kernel configured APM device as apm1
X-Send-Pr-Version: www-1.0
>Number: 42236
>Category: kern
>Synopsis: cannot start apmd if kernel configured APM device as apm1
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 26 16:15:00 +0000 2009
>Last-Modified: Sat Oct 31 11:15:03 +0000 2009
>Originator: Kouichi Hashikawa
>Release: NetBSD-5.0.1/i386
>Organization:
>Environment:
NetBSD fuurin 5.0.1 NetBSD 5.0.1 (HIMAWARI) #2: Mon Oct 26 20:28:16 JST 2009 root@fuurin:/current/netbsd/build/obj/current/netbsd/src/sys/arch/i386/compile/HIMAWARI i386
>Description:
I configure my kernel as:
apm0 at mainbus0 # Advanced power management
...
acpi0 at mainbus0
...
apm* at acpi? # ACPI apm emulation
...
and start this kernel. if device configured as
acpi0 at mainbus0: Intel ACPICA 20080321
...
apm1 at acpi0: Power Management spec V1.2
then /etc/rc.d/apmd cannot start:
cannot open device file `/dev/apmctl'
>How-To-Repeat:
always. cf. /dev/MAKEDEV
apm)
mkdev apm c 21 0 644
mkdev apmctl c 21 8 644
;;
>Fix:
>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, kern-bug-people@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc:
Subject: Re: kern/42236: cannot start apmd if kernel configured APM device as apm1
Date: Mon, 26 Oct 2009 13:48:25 -0400
On Oct 26, 4:15pm, hashikaw@biology.tohoku.ac.jp (hashikaw@biology.tohoku.ac.jp) wrote:
-- Subject: kern/42236: cannot start apmd if kernel configured APM device as
| >Number: 42236
| >Category: kern
| >Synopsis: cannot start apmd if kernel configured APM device as apm1
| >Confidential: no
| >Severity: serious
| >Priority: low
| >Responsible: kern-bug-people
| >State: open
| >Class: sw-bug
| >Submitter-Id: net
| >Arrival-Date: Mon Oct 26 16:15:00 +0000 2009
| >Originator: Kouichi Hashikawa
| >Release: NetBSD-5.0.1/i386
| >Organization:
| >Environment:
| NetBSD fuurin 5.0.1 NetBSD 5.0.1 (HIMAWARI) #2: Mon Oct 26 20:28:16 JST 2009 root@fuurin:/current/netbsd/build/obj/current/netbsd/src/sys/arch/i386/compile/HIMAWARI i386
| >Description:
| I configure my kernel as:
|
| apm0 at mainbus0 # Advanced power management
| ...
| acpi0 at mainbus0
| ...
| apm* at acpi? # ACPI apm emulation
| ...
|
| and start this kernel. if device configured as
|
| acpi0 at mainbus0: Intel ACPICA 20080321
| ...
| apm1 at acpi0: Power Management spec V1.2
|
| then /etc/rc.d/apmd cannot start:
|
| cannot open device file `/dev/apmctl'
Try commenting out the apm0 entry.
christos
From: Kouichi Hashikawa <hashikaw@biology.tohoku.ac.jp>
To: netbsd-bugs@netbsd.org, gnats-admin@netbsd.org, kern-bug-people@netbsd.org,
gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/42236: cannot start apmd if kernel configured APM device as
apm1
Date: Tue, 27 Oct 2009 06:17:14 +0900
> Try commenting out the apm0 entry.
Thank you christos, but I want to know why NetBSD don't prepare
/dev/apm1 or /dev/apmctl1, like another device.
From: christos@zoulas.com (Christos Zoulas)
To: Kouichi Hashikawa <hashikaw@biology.tohoku.ac.jp>,
netbsd-bugs@netbsd.org, gnats-admin@netbsd.org,
kern-bug-people@netbsd.org, gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/42236: cannot start apmd if kernel configured APM device as apm1
Date: Mon, 26 Oct 2009 18:27:04 -0400
On Oct 27, 6:17am, hashikaw@biology.tohoku.ac.jp (Kouichi Hashikawa) wrote:
-- Subject: Re: kern/42236: cannot start apmd if kernel configured APM device
| > Try commenting out the apm0 entry.
|
| Thank you christos, but I want to know why NetBSD don't prepare
| /dev/apm1 or /dev/apmctl1, like another device.
Don't know, I'll have to take a look. This device is special, because
there can be only one in the system. I don't think it makes sense to
have apm1 etc...
christos
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, hashikaw@biology.tohoku.ac.jp
Subject: re: kern/42236: cannot start apmd if kernel configured APM device as apm1
Date: Sat, 31 Oct 2009 13:28:52 +1100
| >Number: 42236
| >Category: kern
| >Synopsis: cannot start apmd if kernel configured APM device as apm1
| >Confidential: no
| >Severity: serious
| >Priority: low
| >Responsible: kern-bug-people
| >State: open
| >Class: sw-bug
| >Submitter-Id: net
| >Arrival-Date: Mon Oct 26 16:15:00 +0000 2009
| >Originator: Kouichi Hashikawa
| >Release: NetBSD-5.0.1/i386
| >Organization:
| >Environment:
| NetBSD fuurin 5.0.1 NetBSD 5.0.1 (HIMAWARI) #2: Mon Oct 26 20:28:16 JST 2009 root@fuurin:/current/netbsd/build/obj/current/netbsd/src/sys/arch/i386/comp
ile/HIMAWARI i386
| >Description:
| I configure my kernel as:
|
| apm0 at mainbus0 # Advanced power management
make this one "apm*" as well and see what happens.
| ...
| acpi0 at mainbus0
| ...
| apm* at acpi? # ACPI apm emulation
| ...
thanks.
From: Kouichi Hashikawa <hashikaw@biology.tohoku.ac.jp>
To: gnats-bugs@netbsd.org
Cc: hashikaw@biology.tohoku.ac.jp, netbsd-bugs@netbsd.org,
gnats-admin@netbsd.org, kern-bug-people@netbsd.org
Subject: Re: kern/42236: cannot start apmd if kernel configured APM device as
apm1
Date: Sat, 31 Oct 2009 20:10:09 +0900
if configure my kernel as:
apm* at mainbus0 # Advanced power management
acpi0 at mainbus0
apm* at acpi? # ACPI apm emulation
then,
acpi0 at mainbus0: Intel ACPICA 20080321
apm0 at acpi0: Power Management spec V1.2
and apmd is started.
# but, I have another problem,
# 1. if suspend, lcd backlight is not turned off.
# 2. after resume, wm0 and auich0 cannot work.
# I use ThinkPad X31 (M/T 2672).
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.