Date: Mon, 16 Aug 2010 18:32:37 +0400 From: Alexandr Matveev <amatveev@masterhost.ru> To: Eitan Adler <lists@eitanadler.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: enabling the "fn-f7" switch monitor functionality Message-ID: <4C694C05.5010705@masterhost.ru> In-Reply-To: <AANLkTinDA7x16UTQ2%2BmqO5i-oc8iokO66_9q_i0x%2BFCU@mail.gmail.com> References: <AANLkTinDA7x16UTQ2%2BmqO5i-oc8iokO66_9q_i0x%2BFCU@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Eitan Adler wrote:
> I have a key which is meant to switch between the built in and an
> external monitor. This key is activated by fn-f7. xev does not report
> any activity when it is pressed.
> How get I run a script when it is pressed? I think this key is
> supposed to report some sort of ACPI event.
>
> % uname -rms
> FreeBSD 8.1-RELEASE i386
> Laptop model is Lenovo G530.
>
>
Add
acpi_ibm_load="YES"
to your /boot/loader.conf (or compile this module into the kernel)
Add
notify 0 {
match "system" "ACPI";
match "subsystem" "IBM";
match "notify" "0x07";
action "/full/path/to/script";
};
to /etc/devd.conf
--
Alexandr Matveev
.masterhost
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C694C05.5010705>
