From 5beb5f2d952ce87b3eee93996d028cf87523c164 Mon Sep 17 00:00:00 2001 From: thompsa Date: Wed, 17 Dec 2008 19:12:30 +0000 Subject: Add /etc/devd/ and move hardware specific configuration there. This makes it easier to maintain custom rules for non-system things like ACPI hotkeys. /etc/devd.conf is already set up to check this directory, no change needed there. --- etc/devd/Makefile | 9 +++++++++ etc/devd/asus.conf | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 etc/devd/Makefile create mode 100644 etc/devd/asus.conf (limited to 'etc/devd') diff --git a/etc/devd/Makefile b/etc/devd/Makefile new file mode 100644 index 0000000..f2bb184 --- /dev/null +++ b/etc/devd/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +FILES= asus.conf + +NO_OBJ= +FILESDIR= /etc/devd +FILESMODE= 644 + +.include diff --git a/etc/devd/asus.conf b/etc/devd/asus.conf new file mode 100644 index 0000000..7671bd1 --- /dev/null +++ b/etc/devd/asus.conf @@ -0,0 +1,52 @@ +# $FreeBSD$ +# +# ASUS specific devd events + +# The next blocks enable volume hotkeys that can be found on the Asus EeePC +notify 0 { + match "system" "ACPI"; + match "subsystem" "ASUS-Eee"; + match "notify" "0x13"; + action "mixer 0"; +}; + +notify 0 { + match "system" "ACPI"; + match "subsystem" "ASUS-Eee"; + match "notify" "0x14"; + action "mixer vol -10"; +}; + +notify 0 { + match "system" "ACPI"; + match "subsystem" "ASUS-Eee"; + match "notify" "0x15"; + action "mixer vol +10"; +}; + +# Enable user hotkeys that can be found on the Asus EeePC +# The four keys above the keyboard notify 0x1a through to 0x1d respectively +#notify 0 { +# match "system" "ACPI"; +# match "subsystem" "ASUS-Eee"; +# match "notify" "0x1a"; +# action ""; +#}; +#notify 0 { +# match "system" "ACPI"; +# match "subsystem" "ASUS-Eee"; +# match "notify" "0x1b"; +# action ""; +#}; +#notify 0 { +# match "system" "ACPI"; +# match "subsystem" "ASUS-Eee"; +# match "notify" "0x1c"; +# action ""; +#}; +#notify 0 { +# match "system" "ACPI"; +# match "subsystem" "ASUS-Eee"; +# match "notify" "0x1d"; +# action ""; +#}; -- cgit v1.1