[ltp] Re: ACPI sleep loses battery info - until KDE logout

Dimitris Kogias linux-thinkpad@linux-thinkpad.org
Wed, 25 Apr 2007 12:26:10 -0700


Dimitris Kogias wrote:
> Hi all,
> 
> This is on a brand new X60 1709-CTO (BIOS is 2.09 - latest), Debian
> unstable, Debian 2.6.20-1 kernel (which is based on 2.6.20.7).
> 
> I put the system to sleep (Fn-F4) while logged in to a KDE session.
> After I wake the system back up, the KLaptop icon shows no battery info
> and sure enough, there is nothing under /proc/acpi/battery.

After a little experimentation, this behavior correlates perfectly with
a running ksysguardd.  When the ksysguard applet is present, ksysguardd
has /proc/acpi/{battery,fan,thermal_zone} open.  I suspect that this
causes problems to the battery module [un]loading through the
suspend/resume scripts, as suggested by some of the log messages (see my
original message in this thread).

Stopping ksysguardd by removing the applet makes this problem go away.
I'll keep looking for workarounds.

D.