Skip to content

Instantly share code, notes, and snippets.

Created December 26, 2012 15:45
Show Gist options
  • Save anonymous/4380991 to your computer and use it in GitHub Desktop.
Save anonymous/4380991 to your computer and use it in GitHub Desktop.
Apple Mac Mini G4 automatic power-on upon power failure (FreeBSD 9.0)
[jps@sol ~]$ uname -a
FreeBSD sol 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Wed Jan 4 08:17:39 UTC 2012 [email protected]:/usr/obj/usr/src/sys/GENERIC powerpc
[jps@sol ~]$ dmesg | grep cpu
cpu0: Motorola PowerPC 7447A revision 1.2, 1250.28 MHz
cpu0: Features 9c000000<PPC32,ALTIVEC,FPU,MMU>
cpu0: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>
cpulist0: <Open Firmware CPU Group> on nexus0
cpu0: <Open Firmware CPU> on cpulist0
dfs0: <Dynamic Frequency Switching> on cpu0
[jps@sol ~]$ sysctl -a | grep pmu
device pmu
dev.pmuextint.0.%desc: Apple PMU99 External Interrupt
dev.pmuextint.0.%driver: pmuextint
dev.pmuextint.0.%pnpinfo: name=extint-gpio1 compat=keywest-gpio1
dev.pmuextint.0.%parent: macgpio0
dev.pmu.0.%desc: Apple PMU99 Controller
dev.pmu.0.%driver: pmu
dev.pmu.0.%pnpinfo: name=via-pmu compat=pmu
dev.pmu.0.%parent: macio0
dev.pmu.0.server_mode: 0
[jps@sol ~]$ sudo sysctl -w dev.pmu.0.server_mode=1
dev.pmu.0.server_mode: 0 -> 1
[jps@sol ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment