From owner-freebsd-mobile@FreeBSD.ORG Mon Feb 4 11:33:08 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 2774A16A417 for ; Mon, 4 Feb 2008 11:33:08 +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 9B68A13C4CE for ; Mon, 4 Feb 2008 11:33:07 +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 m14BX3fh015808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Feb 2008 14:33:05 +0300 (MSK) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JLzZP-000NUD-64; Mon, 04 Feb 2008 14:33:03 +0300 From: Vladimir Grebenschikov To: Mitsuru IWASAKI In-Reply-To: <1202119223.1491.20.camel@localhost> References: <1201865504.3428.7.camel@localhost> <20080202.034730.41627476.iwasaki@jp.FreeBSD.org> <1202119223.1491.20.camel@localhost> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Mon, 04 Feb 2008 14:33:02 +0300 Message-Id: <1202124782.1491.28.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: mobile@FreeBSD.org 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 11:33:08 -0000 On Mon, 2008-02-04 at 13:00 +0300, Vladimir Grebenschikov wrote: > 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 Forgot to say, I've tried to build it against RELENG_7, patch applied ok. > > 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