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
  Manjaro Sway Theme Broken Eighty8 1 172 03-08-2024, 08:41 AM
Last Post: tophneal
Question Manjaro with Full Disk Encryption and GRUB dumetrulo 1 1,611 02-02-2024, 02:45 AM
Last Post: frankkinney
  Manjaro network problem late 2023 acruhl 1 223 01-19-2024, 11:32 PM
Last Post: Kevin Kofler
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 1,923 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 1,983 12-11-2023, 03:47 AM
Last Post: calinb
  Manjaro 20.04 not loading from SD (with Manjaro on eMMC) zaius 1 296 12-07-2023, 03:11 PM
Last Post: wdt
  Manjaro ARM: enabling external monitors & fixing Broadcom WiFi after updating trifleneurotic 2 752 11-14-2023, 10:57 AM
Last Post: trifleneurotic
  Manjaro [ARM Stable Update] 2021-07-23 issues Bocanila 1 1,916 08-21-2023, 09:10 PM
Last Post: vanessadonald
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 1 1,855 08-21-2023, 09:08 PM
Last Post: vanessadonald
  Manjaro - HIbernate - brcmfmac clk issue pompeyPinePro 1 710 08-18-2023, 02:06 AM
Last Post: juliamenendez

Forum Jump:


Users browsing this thread: 1 Guest(s)