One main advantage of using a laptop computer — as opposed to a desktop computer — is that you can use it anywhere, provided that you have an adequate power source This power source may be a fully-charged battery or an outlet for your HP AC adapter. If you’ve plugged your computer into an outlet, but notice it isn’t charging, or if your computer shuts itself down while it’s plugged in, you may have a faulty AC adapter.
Plug your AC adapter into a different outlet and see if your laptop charges. If your laptop fails to charge when plugged in, a faulty power outlet rather than the adapter itself is likely to blame.
Remove the battery from your laptop and attempt to use the computer with the AC adapter plugged in. If your computer still functions, your AC adapter works fine. If your battery won’t charge, the problem is with the battery, not with the AC adapter.
Plug your IBM AC adapter into another laptop of the same make and model to see if the computer functions and to see if the battery charges. If the second laptop functions properly, your laptop is likely the root of the problem.
Purchase a new Sony laptop AC adapter and see if your laptop functions properly with it. If your laptop won’t power or stay on, the problem is with the computer itself. If the battery still doesn’t charge, replace your battery.