I am running Ubuntu 10.10 on Core i5 Vaio E series and was facing similar problem for more than an year now. But David's fix worked for me and my ubuntu doesn't go for suspend when the charger gets disconnected accidently while in middle of charging.
I am running Ubuntu 10.10 on Core i5 Vaio E series and was facing similar problem for more than an year now. But David's fix worked for me and my ubuntu doesn't go for suspend when the charger gets disconnected accidently while in middle of charging.
Thanks David!