Alienware M17xR3 continues running off battery when adapter is re-plugged
If the power source is removed from the laptop at any time while my computer is running, and then re-plugged back in, the laptop fails to recognize the source and continues to run off the battery.
The problem did not exist in Ubuntu until the latest kernel and nvidia driver update (lucid-backports, kernel version 3.0.0-21-generic). However, going back to an older kernel does not fix the issue.
1. If the power source is unplugged, the indicator does not switch to the "battery state" immediately, and only does so after about 4 seconds.
2. If, however, it does change to show the "battery" icon, it never switches back to "charging" when plugged back in.
3. The only way to get the battery to start charging again is to remove the battery when the laptop is plugged in (laptop switches off of course) and then boot back in.
4. If the power source is reconnected before the power icon switches to the battery icon, the system continues running like nothing ever happened, and continues charging.
5. When the battery has fallen into the non-charging state, even a regular power cycle will not get it to charge. Also, when in this state, the battery does not charge in Windows either (Windows however shows that a power source has been connected, but won't charge the battery). However, after doing the remove battery when plugged in trick, and booting into Windows, Windows properly recognizes when the adapter is plugged / unplugged and starts / stops charging accordingly.
Update: Couple more usage scenarios:
1. If the battery is charging, even though unplugging / replugging did not show that the adapter was disconnected / reconnected, putting the computer to sleep and then waking it makes the adapter function normally.
2. However, after the computer has been resumed from sleep, as soon as a webpage with flash content is opened (such as youtube), it stops working again!!.
3. This is also the case when the Android emulator is running. If the computer is put to sleep and then resumed with the emulator is still running, the adapter doesn't work even after resuming.