From owner-freebsd-questions@FreeBSD.ORG Mon Aug 16 14:59:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C656106566C for ; Mon, 16 Aug 2010 14:59:15 +0000 (UTC) (envelope-from amatveev@masterhost.ru) Received: from csmtp-2.masterhost.ru (csmtp1.masterhost.ru [83.222.22.203]) by mx1.freebsd.org (Postfix) with SMTP id 815CC8FC20 for ; Mon, 16 Aug 2010 14:59:13 +0000 (UTC) Received: (qmail 35272 invoked from network); 16 Aug 2010 14:32:31 -0000 Received: from unknown (HELO pc209.office.masterhost.ru) (amatveev@masterhost.ru@87.242.97.5) by csmtp1.masterhost.ru with SMTP; 16 Aug 2010 14:32:31 -0000 Message-ID: <4C694C05.5010705@masterhost.ru> Date: Mon, 16 Aug 2010 18:32:37 +0400 From: Alexandr Matveev User-Agent: Thunderbird 2.0.0.24 (X11/20100613) MIME-Version: 1.0 To: Eitan Adler References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: enabling the "fn-f7" switch monitor functionality X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 14:59:15 -0000 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