Package: battery-stats
Version: 0.5.4-1
Severity: normal

Hi!

I found that my system is not hibernating after installing battery-stats, so
I looked at the logs and saw....

Running hook /usr/lib/pm-utils/sleep.d/20_battery-stats hibernate hibernate:
cat: '/sys/class/power_supply/BAT*/charge_now': Non hai tal ficheiro ou 
directorio
/usr/lib/pm-utils/sleep.d/20_battery-stats hibernate hibernate: Returned exit 
code 1.

Sáb Mai 28 22:52:32 CEST 2016: Inhibit found, will not perform hibernate

There is no /sys/class/power_supply/BAT* directory on my system when there is
no battery installed (when I'm plugged) and thus it fails.

Checking if the battery exists before will solve the issue.

Regards.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (101, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=gl_ES.UTF-8, LC_CTYPE=gl_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages battery-stats depends on:
ii  gzip       1.6-5
ii  logrotate  3.8.7-2

Versions of packages battery-stats recommends:
pn  gnuplot            <none>
pn  libtext-csv-perl   <none>
ii  python             2.7.11-1
pn  python-matplotlib  <none>

battery-stats suggests no packages.

-- no debconf information

Reply via email to