Poweroff Patch in Ubuntu

I’ve been trying to get an orderly shutdown in Ubuntu. I added a battery as described here: http://www.element14.com/community/community/knode/single-board_computers/next-gen_beaglebone/blog/2013/08/10/bbb--rechargeable-on-board-battery-system#comment-25616 . When I use sudo shutdown -h now , the sys_5V power stays on and the PMIC doesn’t turn on when I add AC power. There was a patch posted to this board previously: https://groups.google.com/forum/#!searchin/beagleboard/power$20down$20battery/beagleboard/K7DuusrJ6G4/WqgYqwoH9gkJ that seems ideal. Will this patch work for Ubuntu? If it will work, can you help a n00b install the patch? I’m confused as to how to apply it.

Thanks much,
Arthur

Not for "3.8" as the patch uses the non-existent board file:
arch/arm/mach-omap2/board-am335xevm.c

But maybe for '3.2' if your NOT using the beaglebone black..

Regards,

That’s too bad-- I am using the Beaglebone Black. Do you know of any way in your Ubuntu kernal of shutting down the computer followed by a complete shutdown of the PMIC all while under battery power? I have an embedded project and designed it badly with a hard shutdown. The hard shutdowns corrupt the USB hosts quite quickly.

Thanks for your help and for the fantastic kernal!
Arthur