Comment 10 for bug 384304

Revision history for this message
Martin Pitt (pitti) wrote : Re: devicekit-power fails to realize I'm on battery

Can you please do the following: Start with the battery fully charged, so that dk-p does not see it. Now do

   sudo killall devkit-power-daemon
   sudo /usr/lib/devicekit-power/devkit-power-daemon --verbose 2>&1 | tee /tmp/dkp.log

in one Terminal, and

   devkit-power --dump > /tmp/dk-dump.txt

in another, then go back to the first with the devkit-power-daemon output, press control-c, and attach /tmp/dkp.log and /tmp/dk-dump.txt . Now let the battery discharge for a while (the situation where dk-p does see it), and to the same set of commands again.

With those I get some more detailled information and can also compare the output when it does and when it doesn't see the battery. Thank you!