-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Battery not showing in staus bar (solved) #66
Comments
Can you post the output of running |
And also the output of |
this is what i get: |
@ralpheeee88 Very interesting (confusing). The only code path that leads to the output you posted is the following:
This only happens when everything runs successfully but acpi returns no output. This is standard behavior only if you have no battery. However, the acpi output you posted clearly is not empty, so the script should not have entered this code path. The following troubleshooting ideas come to mind: Try running python3 and interactively typing the two lines:
Is the output empty, or does it show something like "Battery 0: Discharging, 100%, 07:15:46 remaining"? Repeat process many times to ensure behavior is consistent. Try running acpi many times from the command line, does it always produce good output, or does it sometimes produce empty output or an error? Are you running an experimental version of python or acpi? |
https://i.imgur.com/ZbVs7op.png 'acpi' always produces results......am stumped on this one... |
Alright my ideas are increasingly far-fetched but let's give it a go. Run
I see you are using some fancy shell/terminal. Can you try using a different shells and terminals? E.g.
Also, if you can manage, try running a live operating system (e.g. debian live) from a usb stick and run the script from that environment. Finally, you can try cloning https://github.com/kb100/i3blocks-battery, the repo that used to be for the battery blockelt, and see if you can find any commit where the script works. You may want to use |
forgive my noobness pls....have a thinkpad (p50) and installed tlp.....while going through the conf file I saw that there is BAT0 and BAT1 ...with the script is the default BAT0....could this be possibly the course of my error |
This script does not default to BAT0, it (should) handle the case of multiple batteries. Have you confused this repo's battery script https://github.com/vivien/i3blocks-contrib/blob/master/battery/battery.py with the official battery script https://github.com/vivien/i3blocks/blob/master/scripts/battery in the i3blocks repo? That script does default to BAT0. |
Kb100... Thxs for feedback.... I double checked I have the correct script.... |
Can you follow the steps I asked from 2 posts ago with sha256sum and using different shells. Your output is not consistent with running the current version of the script. |
i dont know....i got the battery in my status bar but i think its a rather messy work around ...i dont know... i3blocks config using this script: in conjunction with your srcipt (made sure i also installed all the dependencies font-awesome ...my python version 3.6.0) produces the following result: I am hoping the info can shed some light/clarity on whats going on...obviously i would prefer to use your script with the icons on its own.... UPDATE just going through the steps you kindly asked me to follow (sorry didnt see it) with bash: |
Ok I'm confused, before when you ran |
so i copied the battery folder into:
~/.i3/blocks/battery
in my i3blocks.conf i added:
[battery]
command=$SCRIPT_DIR/battery.py
markup=pango
interval=30
was not 100% sure so i also played with command syntax:
command=~/.i3/blocks/battery/battery.py
unfortunately the only thing that shows in my status bar is the label.
would be most grateful if someone could point me in the right direction. Thxs!
all dependencies are installed
The text was updated successfully, but these errors were encountered: