On Fri, Apr 25, 2014 at 08:53:42AM +0200, Alessandro DE LAURENZIS wrote: > Some other debug here, and this time with (I hope) more useful info.
Thanks! > First of all, I confirm that the debug messages triggered by the added > printf instructions are *NOT* logged by dmesg (and /var/log/*), but are > instead visible on the screen (it takes a while to find out that, > 'cause this laptop has an almost totally broken LCD, as I said > previously). > > Now: > > 1) after a "halt -p" command, the bge_activate function is triggered > with value 5: > > BGE WOL DEBUG > bge_activate:5 Great. This means we're missing the POWERDOWN case. Can you try adding this 'case' block to the switch (act) statement in bge_activate? case DVACT_POWERDOWN: rv = config_activate_children(self, act); if (ifp->if_flags & IFF_RUNNING) bge_stop(sc); #ifndef SMALL_KERNEL bge_wol_power(sc); #endif break;