Wmacpi battery percentage display stuck.

38 views
Skip to first unread message

ahmad raniri

unread,
Mar 14, 2026, 2:15:28 PM (3 days ago) Mar 14
to wmake...@googlegroups.com
Hello.

Thanks for making this battery display apps. I find something strange for couple years and until now I found a place to report. 

Wmacpi seems to be stuck on displaying battery percentage on my machine. Before blaming my machine, I try wmbattery and it works fine. I try 2.4 version and latest master and they're same. Any clue to fix it ?

The picture I attach is the example, it would report "47 %" forever and the running text never move.

Any clue to fix it ? Thanks.

Best regard
Ahmad
2026-03-14-102018_91x85_scrot.png

Roman Dobosz

unread,
Mar 14, 2026, 3:02:16 PM (3 days ago) Mar 14
to wmake...@googlegroups.com
On Sat, 14 Mar 2026 18:15:24 +0000
ahmad raniri <ranir...@gmail.com> wrote:

> Wmacpi seems to be stuck on displaying battery percentage on my machine.
> Before blaming my machine, I try wmbattery and it works fine. I try 2.4
> version and latest master and they're same. Any clue to fix it ?

I'm using wmacpi with several notebooks already during the time, and
it works for me 10/10. You didn't mention anything of your HW specs,
and my crystal ball is on maintenance right now, hence I'm just
guessing here.

What's inside /sys/class/power_supply/ directory? As it might be the
case, when there are several batteries reported in your system, so
that you'll have to tell wmacpi to use the right one.

--
-^- _ something is grinding the emptiness:
_ /O)_\// Ablaze In Hatred - Therefore I Suffer
(_(|__(_(_) grf.

ahmad raniri

unread,
Mar 14, 2026, 7:39:20 PM (3 days ago) Mar 14
to Window Maker Development
> You didn't mention anything of your HW specs

My machine specs :
Asus Pro36S Series / U36SD.
ACPI version : 20251212

> What's inside /sys/class/power_supply/ ?

ACO and BAT0, inside BAT0 there are some files : 

alarm
capacity
capacity_level
cycle_count
device
energy_full
energy_full_design
energy_now
extensions
hwmon2
manufacturer
model_name
power
power_now
present
serial_number
status
subsystem
technology
type
uevent
voltage_min_design
voltage_now

Roman Dobosz

unread,
Mar 15, 2026, 3:34:30 AM (3 days ago) Mar 15
to wmake...@googlegroups.com
On Sat, 14 Mar 2026 16:39:19 -0700 (PDT)
ahmad raniri <ranir...@gmail.com> wrote:

> > You didn't mention anything of your HW specs
>
> My machine specs :
> Asus Pro36S Series / U36SD.
> ACPI version : 20251212
>
> > What's inside /sys/class/power_supply/ ?
>
> ACO and BAT0, inside BAT0 there are some files :
>
> alarm
> capacity

What content this file have?

> energy_full
> energy_now

and what those?

--
-^- _ enjoying the silence
_ /O)_\//
(_(|__(_(_) grf.

ahmad raniri

unread,
Mar 15, 2026, 4:29:12 AM (3 days ago) Mar 15
to Window Maker Development
> What content this file have?

> > energy_full
> > energy_now

energy_full : 69776000
energy_now : 45178000

> and what those?

Both of them are ASCII text.

Roman Dobosz

unread,
Mar 15, 2026, 1:22:55 PM (2 days ago) Mar 15
to wmake...@googlegroups.com
On Sun, 15 Mar 2026 01:29:12 -0700 (PDT)
ahmad raniri <ranir...@gmail.com> wrote:

> > > energy_full
> > > energy_now
>
> energy_full : 69776000
> energy_now : 45178000

You didn't provided /sys/class/power_supply/BAT0/capacity, which
should have percentage of the battery. By those two (energy_full and
energy_now) it seems you have battery percentage around 64%, the
equation here is:

(energy_now/energy_full) * 100

Also check the /sys/class/power_supply/BAT0/status if battery is
charging or not.

On my laptop /sys/class/power_supply/BAT0/status contain "Not
charging" (as it's fully charged),
/sys/class/power_supply/BAT0/energy_full is 55960000,
/sys/class/power_supply/BAT0/energy_now is 53750000, which gives
96.05%, and /sys/class/power_supply/BAT0/capacity is 96, which align
with the calculated value. As you can see on attachment, wmacpi is
displaying exactly this.

--
-^- _ something is grinding the emptiness:
_ /O)_\// Soijl - Weapon Of Primordial Chaos
(_(|__(_(_) grf.
wmacpi.png

ahmad raniri

unread,
Mar 15, 2026, 5:42:15 PM (2 days ago) Mar 15
to Window Maker Development

> You didn't provided /sys/class/power_supply/BAT0/capacity

I clearly mention it above, it's available. If you need to know what's the content of capacity, it's "71" by now.

Roman Dobosz

unread,
Mar 16, 2026, 3:48:51 AM (yesterday) Mar 16
to wmake...@googlegroups.com
On Sun, 15 Mar 2026 14:42:14 -0700 (PDT)
ahmad raniri <ranir...@gmail.com> wrote:

>
> > You didn't provided /sys/class/power_supply/BAT0/capacity
>
> I clearly mention it above, it's available. If you need to know what's the
> content of capacity, it's "71" by now.

So wmacpi should work. How long did you wait for wmacpi update? Did
you use strace to check if wmacpi do the readings of the battery
status? What OS are you on?

--
-^- _ something is grinding the emptiness:
_ /O)_\// Evoken - Descend the Lifeless Womb
(_(|__(_(_) grf.

ahmad raniri

unread,
Mar 16, 2026, 8:12:16 PM (23 hours ago) Mar 16
to Window Maker Development
I think I just figured how to solve it.
It matters of acpi kernel module, perhaps. I just tried older kernel / 4.19 and wmacpi was no longer stuck / hang.

Reply all
Reply to author
Forward
0 new messages