There's a Known Issue with false "battery unavailable" Black X reports in OS X 10.4x 10.5x For some resetting PMU seems to do the trick, removing the battery and putting back again seems to solve the problem for others.
See this from Apple.
I have had this problem with my MacBook Air and have not identified why it occurs, and then, suddenly goes away.
I think this is good procedure:
- Plug in the power adapter and fully charge your PowerBook's battery until the light ring or LED on the power adapter plug changes to green and the onscreen meter in the menu bar indicates that the battery is fully charged.
- Allow the battery to rest in the fully charged state for at least two hours. You may use your computer during this time as long as the adapter is plugged in.
- Disconnect the power adapter while the computer still on and start running the computer off battery power. You may use your computer during this time. When your battery gets low, the low battery warning dialog appears on the screen. SOMETIMES IT DOESN"T!! OR IT"S VERY BRIEF.
- At this point, save your work. Continue to use your computer; when the battery gets very low, the computer will automatically go to sleep.
- Turn off the computer or allow it to sleep for five hours or more.
- Connect the power adapter and leave it connected until the battery is fully charged again.
FWIW There is a minimal charge level on these batteries, and if the charge level ever gets below that line, its impossible to recharge the battery again. I have seen this happen within the first 2-3 cycles on a new battery... not from iFixit, but with Chinese batteries.
If this Answer is helpful please remember to return and mark it Accepted.