Problems:
1. Occasionally, "shutdown -h now" seemed to shut down the system, but the power was not cut off automatically, and I would have to hold the hardware power button for seconds to truely cut off the power.
2. The XFCE power manager was not able to show battery information at all. The XFCE power manager always showed a static power plug icon and would not change to show a battery icon with battery life when the AC power cable was plug off.
Hardware: AMD Turion X2 laptop made in 2010.
System: Slackware 14.2 32bit, only with packages from the official ISO, without any package from on-line official mirror or third-party repositories.
Code:
root@slack14:~# modinfo battery
filename: /lib/modules/4.4.14-smp/kernel/drivers/acpi/battery.ko
license: GPL
description: ACPI Battery Driver
author: Alexey Starikovskiy <astarikovskiy@suse.de>
author: Paul Diefenbaugh
alias: acpi*:PNP0C0A:*
depends:
intree: Y
vermagic: 4.4.14-smp SMP mod_unload PENTIUMIII
parm: cache_time:cache time in milliseconds (uint)
file under /proc showed showed the correct info (at least it correctly reflected whether the AC power was unplugged, or the remaining battery capacity when running on battery):
Code:
$ cat /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: charging
present rate: 337 mA
remaining capacity: 316 mAh
present voltage: 11000 mV
upower command gave errors:
Code:
root@slack14:~# upower -e
(upower:2326): libupower-glib-WARNING **: Couldn't enumerate devices: Launch helper exited with unknown return code 127
(upower:2326): UPower-WARNING **: failed to enumerate: Launch helper exited with unknown return code 127
Any suggestion to solve the problems ?