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:
parent
514c68e92c
commit
487f6bb895
@ -162,6 +162,7 @@ distribution:
|
|||||||
${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
|
${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
|
||||||
.endif
|
.endif
|
||||||
${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
|
${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
|
||||||
|
${_+_}cd ${.CURDIR}/devd; ${MAKE} install
|
||||||
${_+_}cd ${.CURDIR}/gss; ${MAKE} install
|
${_+_}cd ${.CURDIR}/gss; ${MAKE} install
|
||||||
${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
|
${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
|
||||||
${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install
|
${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install
|
||||||
|
@ -277,29 +277,6 @@ notify 0 {
|
|||||||
action "mixer vol +10";
|
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
|
/* EXAMPLES TO END OF FILE
|
||||||
|
|
||||||
# The following might be an example of something that a vendor might
|
# The following might be an example of something that a vendor might
|
||||||
|
9
etc/devd/Makefile
Normal file
9
etc/devd/Makefile
Normal 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
52
etc/devd/asus.conf
Normal 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 "";
|
||||||
|
#};
|
@ -28,6 +28,8 @@
|
|||||||
..
|
..
|
||||||
defaults
|
defaults
|
||||||
..
|
..
|
||||||
|
devd
|
||||||
|
..
|
||||||
gnats
|
gnats
|
||||||
..
|
..
|
||||||
gss
|
gss
|
||||||
|
Loading…
x
Reference in New Issue
Block a user