config root man

Current Path : /usr/src/etc/devd/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/etc/devd/apple.conf

# $FreeBSD: release/9.1.0/etc/devd/apple.conf 232677 2012-03-08 01:10:23Z jhibbits $
#
# PowerPC Apple specific devd events

# Keyboard power key
notify 0 {
	match "system"		"PMU";
	match "subsystem"	"Button";
	action			"shutdown -p now";
};


# PowerBook and iBook lid close.
notify 0 {
	match "system"		"PMU";
	match "subsystem"	"lid";
	match "type"		"close";
	action			"shutdown -p now";
};


# The next blocks enable brightness hotkeys that can be found on Apple laptops
notify 0 {
	match "system"		"PMU";
	match "subsystem"	"keys";
	match "type"		"brightness";
	match "notify"		"down";
	action			"sysctl dev.backlight.0.level=\
		$(expr `sysctl -n dev.backlight.0.level` - 10)";
};

notify 0 {
	match "system"		"PMU";
	match "subsystem"	"keys";
	match "type"		"brightness";
	match "notify"		"up";
	action			"sysctl dev.backlight.0.level=\
		$(expr `sysctl -n dev.backlight.0.level` + 10)";
};


# The next blocks enable volume hotkeys that can be found on Apple laptops
notify 0 {
	match "system"		"PMU";
	match "subsystem"	"keys";
	match "type"		"mute";
	action			"mixer 0";
};

notify 0 {
	match "system"		"PMU";
	match "subsystem"	"keys";
	match "type"		"volume";
	match "notify"		"down";
	action			"mixer vol -10";
};

notify 0 {
	match "system"		"PMU";
	match "subsystem"	"keys";
	match "type"		"volume";
	match "notify"		"up";
	action			"mixer vol +10";
};

# Eject key
notify 0 {
	match "system"		"PMU";
	match "subsystem"	"keys";
	match "type"		"eject";
	action			"camcontrol eject cd0";
};



Man Man