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



_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to