I have just investigated the issue further and found out that matchbox still relies on the old /proc/acpi interface in mb-applet-battery.c:

#define ACPI_PREFIX "/proc/acpi"
#define BAT_PREFIX "battery/BAT0"
#define AC_PREFIX "ac_adapter/AC0"
...
f = fopen(ACPI_PREFIX "/" BAT_PREFIX "/info", "r");

However I fear that things are not as easy as to replace /proc/ACPI/... with /sys/class/... as I have just noticed that the reference is BAT1 instead of BAT0 on another notebook from me:

    cat /sys/class/power_supply/BAT1/status
    Full / Discharging
    cat /sys/class/power_supply/BAT1/capacity
    96 ... means 96% charged
    cat /sys/class/power_supply/ADP1/online
    1 ... if ac adapter is plugged
    0 ... if ac adapter is unplugged

I have also filed an upstream bug at:
https://github.com/coreos/matchbox/issues/744


On 27.04.19 12:09, Debian Bug Tracking System wrote:
Thank you for filing a new Bug report with Debian.

You can follow progress on this Bug here: 928064: 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928064.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
  Moray Allan <mo...@debian.org>

If you wish to submit further information on this problem, please
send it to 928...@bugs.debian.org.

Please do not send mail to ow...@bugs.debian.org unless you wish
to report a problem with the Bug-tracking system.


Reply via email to