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! -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/838543 Title: False battery warning +suspend Status in “gnome-settings-daemon” package in Ubuntu: Confirmed Bug description: I pulled the plug on my laptop with it's battery full: ubuntu@ubuntu:~$ cat /proc/acpi/battery/BAT1/state present: yes capacity state: ok charging state: charged present rate: 0 mA remaining capacity: 7200 mAh present voltage: 11100 mV ubuntu@ubuntu:~$ ubuntu-bug -w ubuntu@ubuntu:~$ cat /proc/acpi/battery/BAT1/info present: yes design capacity: 7200 mAh [...] And suddenly got a dialog saying that it was critically low (while the icon top-left appears, properly, as full) and the laptop did suspend shortly after that. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: gnome-control-center 1:3.1.5-0ubuntu4 ProcVersionSignature: Ubuntu 3.0.0-9.15-generic 3.0.3 Uname: Linux 3.0.0-9-generic x86_64 Architecture: amd64 CasperVersion: 1.280 Date: Thu Sep 1 02:26:17 2011 ExecutablePath: /usr/bin/gnome-control-center LiveMediaBuild: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110831) SourcePackage: gnome-control-center UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/838543/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

