From owner-freebsd-mobile@FreeBSD.ORG Mon Feb 4 10:00:30 2008 Return-Path: Delivered-To: mobile@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CBFB16A41A for ; Mon, 4 Feb 2008 10:00:30 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 4269513C455 for ; Mon, 4 Feb 2008 10:00:28 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id m14A0OSD005252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Feb 2008 13:00:26 +0300 (MSK) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JLy7j-000En0-Pc; Mon, 04 Feb 2008 13:00:23 +0300 From: Vladimir Grebenschikov To: Mitsuru IWASAKI In-Reply-To: <20080202.034730.41627476.iwasaki@jp.FreeBSD.org> References: <1201865504.3428.7.camel@localhost> <20080202.034730.41627476.iwasaki@jp.FreeBSD.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Mon, 04 Feb 2008 13:00:23 +0300 Message-Id: <1202119223.1491.20.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: mobile@FreeBSD.org, freebsd-mobile@vbook.fbsd.ru Subject: Re: acpi_dock and devd question X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 10:00:30 -0000 On Sat, 2008-02-02 at 03:47 +0900, Mitsuru IWASAKI wrote: > Hi, > > > Is there any way to get devd events on dock plug/unplug ? > > Please try paches at: > > http://people.freebsd.org/~iwasaki/acpi/acpi_dock_devd.diff cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror /usr/src/sys/dev/acpica/acpi.c cc1: warnings being treated as errors /usr/src/sys/dev/acpica/acpi.c: In function 'acpi_ReqSleepState': /usr/src/sys/dev/acpica/acpi.c:2199: warning: implicit declaration of function 'devctl_process_running' /usr/src/sys/dev/acpica/acpi.c:2199: warning: nested extern declaration of 'devctl_process_running' *** Error code 1 > and you can write a statement in devd.conf like this. > > notify 10 { > match "system" "ACPI"; > match "subsystem" "DOCK"; > action "/etc/acpi_dock $notify"; > }; > > ($notify=0x00 is undocked, 0x01 is docked) > > Thanks > -- Vladimir B. Grebenschikov vova@fbsd.ru