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.
This commit is contained in:
Andrew Thompson 2008-12-17 19:12:30 +00:00
parent 514c68e92c
commit 487f6bb895
5 changed files with 64 additions and 23 deletions

View File

@ -162,6 +162,7 @@ distribution:
${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
.endif
${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
${_+_}cd ${.CURDIR}/devd; ${MAKE} install
${_+_}cd ${.CURDIR}/gss; ${MAKE} install
${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install

View File

@ -277,29 +277,6 @@ notify 0 {
action "mixer vol +10";
};
# The next blocks enable volume 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" "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";
};
/* EXAMPLES TO END OF FILE
# The following might be an example of something that a vendor might

9
etc/devd/Makefile Normal file
View File

@ -0,0 +1,9 @@
# $FreeBSD$
FILES= asus.conf
NO_OBJ=
FILESDIR= /etc/devd
FILESMODE= 644
.include <bsd.prog.mk>

52
etc/devd/asus.conf Normal file
View File

@ -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 "";
#};

View File

@ -28,6 +28,8 @@
..
defaults
..
devd
..
gnats
..
gss