Manjaro arm + sway - battery indicator broken
#1
Question 
Hi!

I have a pinebook pro, and I'm running manjaro ARM with sway window manager and it's great Big Grin

...except the latest update broke the battery indicator, and I've no idea how to fix it. It now shows 100% all the time, occasionally flipping to 0% now and then.

Sway seems to use WayBar for the status indicators, and I found the manual for that here: https://github.com/Alexays/Waybar/wiki/Module:-Battery. This seems to indicate it uses the values in /sys/class/power_supply/cw2015-battery/ to read the battery level. Doing that myself seems to give me a sensible looking answer (laptop has been on for a couple of hours)

[martin@martin-pinebook ~]$ cat /sys/class/power_supply/cw2015-battery/capacity
88

Is anyone else experiencing the same? anyone know how to fix it..?

Downgrading waybar fixed it, and it looks like someone already opened a bug report.
https://github.com/Alexays/Waybar/issues/966
  Reply
#2
I have no fix but same behaviour on my PostmarketOS
  Reply
#3
I have a possible fix to add support for charge_now status in the kernel, just trying to figure out how to add a kernel patch on manjaro ARM

Big Grin
  Reply
#4
I have the same problem with Manjaro Sway; I am hesitant to use Manjaro with my pinebook pro as I can't make sure whether it is the indicator or the power management itself. I have had similar (or related) problems with Manjaro Xfce and KDE; that is a reason I think it may be a problem more serious than the power manager indicator. After a Manjaro update or two power manager or network manager breaks...
  Reply
#5
(01-24-2021, 05:02 PM)pine76 Wrote: I have the same problem with Manjaro Sway; I am hesitant to use Manjaro with my  pinebook pro as I can't make sure whether it is the indicator or the power management itself. I have had similar (or related) problems with Manjaro Xfce and KDE; that is a reason I think it may be a problem more serious than the power manager indicator. After a Manjaro update  or two power manager or network  manager breaks...

This is a bug in Waybar and has been posted already: https://github.com/Alexays/Waybar/issues/966
  Reply
#6
Why do you use waybar (which is by the way not part of sway project), not a personnalized one ?

There's ton of examples over internet, mine is this shell script : https://dpaste.com/5MDYNWSK2
you have to call it from the sway config file :

[...]

bar {
    position top
    status_command /home/remy/bin/sway_panel.sh

[...]
  Reply
#7
(01-29-2021, 11:17 PM)rimaille Wrote: Why do you use waybar (which is by the way not part of sway project), not a personnalized one ?

There's ton of examples over internet, mine is this shell script : https://dpaste.com/5MDYNWSK2
you have to call it from the sway config file :

[...]

bar {
    position top
    status_command /home/remy/bin/sway_panel.sh

[...]

just because waybar came with the default install for manjaro arm + sway on pinebook pro.
It seems ok apart from this battery indicator issue, which is being fixed soon I think.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Battery charge threshold xNix 1 96 1 hour ago
Last Post: Damon
  Battery gauge issue (mainline kernel) lfourquaux 0 110 04-03-2021, 10:12 AM
Last Post: lfourquaux
  eMMC frequently not found by Linux kernel (especially on low battery) v-man 11 4,260 03-31-2021, 10:28 AM
Last Post: mattpenn
  Manjaro and Arch repository with privacy oriented software as400 72 34,073 03-26-2021, 03:51 AM
Last Post: llsf
  Controlling CPU Frequency On Manjaro? ImmyChan 0 127 03-24-2021, 04:47 PM
Last Post: ImmyChan
Heart PBP Arrives Tmmro, Manjaro 20.12 xfce, Seeking Install Notes/Tips/Tricks/Advice SpaceLord 4 406 03-01-2021, 06:00 PM
Last Post: SpaceLord
  Manjaro ARM 20.04 spikerguy 65 37,517 02-23-2021, 03:22 PM
Last Post: markifi
  Manjaro Dim Display (Brightness 40%) After Every System Reboot runlinux.run 2 377 02-15-2021, 07:04 PM
Last Post: MtnSk8
Bug Manjaro - KDE/Plasma - Random Crash Anarethos 1 551 01-26-2021, 01:44 PM
Last Post: FFabian
Question Changeing boot animation on Manjaro Anarethos 2 992 12-31-2020, 04:46 PM
Last Post: Anarethos

Forum Jump:


Users browsing this thread: 1 Guest(s)