Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Feb 2008 14:33:02 +0300
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
Cc:        mobile@FreeBSD.org
Subject:   Re: acpi_dock and devd question
Message-ID:  <1202124782.1491.28.camel@localhost>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

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



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