I am running Ubuntu (not Xubuntu) and am using Xfce4 on my laptop. When my laptop battery is critically low, Ubuntu/Xfce4 performs some action (perhaps hibernate?) which causes my laptop to shut down.

However when I start it again, it never comes up. I don't even get BIOS or anything on the screen, it is completely black. The only way to get it back up is to take it apart, remove the internal CMOS battery as well as the main battery, wait a few minutes, and put it back together.

Obviously this is not optimal.

**How do I disable all actions when the battery is critically low?** I would rather have it run out of power, than ending up in this error condition.