Code Monkey home page Code Monkey logo

Comments (8)

streetturtle avatar streetturtle commented on May 13, 2024

That's strange. Can you run ’acpi -i’ in terminal when it happens and paste it here.

from awesome-wm-widgets.

muellert avatar muellert commented on May 13, 2024

$ acpi -i
Battery 0: Full, 100%
Battery 0: design capacity 8508 mAh, last full capacity 7484 mAh = 87%
$

from awesome-wm-widgets.

streetturtle avatar streetturtle commented on May 13, 2024

I just merged a small refactoring PR in battery-arc, could you please try again on latest master.

from awesome-wm-widgets.

muellert avatar muellert commented on May 13, 2024

Hi streetturtle!
I have pulled your code and run it at the moment, but this code has an even worse problem than before: Now, the battery fill is always displayed at almost 100% (ie, no charching required), when I can see with the mouse-over and also from the command line, that it is half empty already.

battery-indicator-wrong

from awesome-wm-widgets.

muellert avatar muellert commented on May 13, 2024

Hi! Today, I've re-done the experiment and had the battery run down a bit more.
battery-indicator-way-off

from awesome-wm-widgets.

streetturtle avatar streetturtle commented on May 13, 2024

As I cannot reproduce your issue, I would "print" (by showing notification with calculated value) the calculated value, I would start on this line https://github.com/streetturtle/awesome-wm-widgets/blob/master/batteryarc-widget/batteryarc.lua#L102 with this notification: naughty.notify{text = tostring(charge_cap)}.

from awesome-wm-widgets.

streetturtle avatar streetturtle commented on May 13, 2024

So I reverted the latest commit.... Could you please try again?

from awesome-wm-widgets.

hi-im-buggy avatar hi-im-buggy commented on May 13, 2024

I'm facing the same issue on my laptop when it's at 100% and charging, but not when it's not charging. acpi outputs

Battery 0: Not charging, 99%

when this is the case and the widget shows 0% battery and a warning.
acpi -a outputs

Adapter 0: on-line

when I'm plugged in and

Adapter 0: off-line

when I'm not, so perhaps that can be helpful in finding a solution.

EDIT: To clarify, the widget shows 100% battery when I'm at 100% and not connected, and it shows 0% battery when I'm at 100% and connected.

from awesome-wm-widgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.