acpi_dock and devd question
Vladimir Grebenschikov
vova at fbsd.ru
Mon Feb 4 02:00:30 PST 2008
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 at fbsd.ru
More information about the freebsd-mobile
mailing list