Sounds like a race where HAL realises it's low on battery before it realises that it's on AC. Can you open an upstream bug please.
-- Critical-power shutdown should happen only when on battery https://launchpad.net/bugs/52345 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
