question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Battery Issue on Manjaro Laptop

See original GitHub issue

Debug info

----run_rpc----

uptime in epoch: 1606596552.0
cpuid: 740614258177605642
cpuappid: 741100300219187335
termappid: 741286819676553258
hostappid: 743971270395297852
1614 (pacman), 4 (snap) 
----out.py----

----DE/WM----
deid: Plasma
wmid: KWin
wmline item 0: KWin 

----TERMINAL----

fontline: Noto Sans 0 10 [Plasma], Noto Sans, 10 [GTK2/3] 
termid: 741286819676553258
termline item 0: yakuake 
themeline: Breath2 [Plasma], Breath-Dark [GTK2/3] 

----HOST INFO----

hostline: HP Pavilion Laptop 15-cs0xxx 
[KeyError]: 'Battery:'
[KeyError]: 'Battery:'
batteryline: Battery: N/A
resline: 1920x1080 

----GPU INFO----

gpuinfo: Intel UHD Graphics 620
gpuvendor: intel

----CPU INFO----

cpuvendor: intel
cpumodel: Intel i7
cpuinfo: Intel i7-8550U (8) @ 4.000GHz
cpuline item 0: Intel i7-8550U (8) @ 4.000GHz
memline: 3867MiB / 7845MiB 

----OS INFO----

sysosline: Manjaro Linux x86_64 
sysosid: 740614258177605642
diskline: /): 175G / 330G (56%) 
packagesline item 0: 1614 (pacman), 4 (snap) 

----testing.py----
----DE/WM----

deid: Plasma
wmid: KWin

----TERMINAL/SHELL----

termid: 741286819676553258
shellid: bash

----HOST INFO----

hostid: 742887089179197462

----GPU INFO----

gpuvendor: intel

----CPU INFO----

cpumodel: Intel i7

('DEFAULT', <Section: DEFAULT>)
('cycle_0', <Section: cycle_0>)
('cycle_1', <Section: cycle_1>)
('cycle_2', <Section: cycle_2>)
('cycle_3', <Section: cycle_3>)
{}
cycle0 not in : True
try_connect(key="cycle0") on <pypresence.presence.Presence object at 0x7f846ef15580>
cycle 0
try_update(key="cycle0") on <pypresence.presence.Presence object at 0x7f846ef15580>
appid: 740614258177605642
try_clear(key="cycle0") on <pypresence.presence.Presence object at 0x7f846ef15580>
{'cycle0': <pypresence.presence.Presence object at 0x7f846ef15580>}
cycle1 not in : True
try_connect(key="cycle1") on <pypresence.presence.Presence object at 0x7f846fa05220>
cycle 1
try_update(key="cycle1") on <pypresence.presence.Presence object at 0x7f846fa05220>
appid: 741100300219187335
try_clear(key="cycle1") on <pypresence.presence.Presence object at 0x7f846fa05220>
{'cycle0': <pypresence.presence.Presence object at 0x7f846ef15580>, 'cycle1': <pypresence.presence.Presence object at 0x7f846fa05220>}
cycle2 not in : True
try_connect(key="cycle2") on <pypresence.presence.Presence object at 0x7f846f030700>
cycle 2
try_update(key="cycle2") on <pypresence.presence.Presence object at 0x7f846f030700>
appid: 740614258177605642
try_clear(key="cycle2") on <pypresence.presence.Presence object at 0x7f846f030700>
{'cycle0': <pypresence.presence.Presence object at 0x7f846ef15580>, 'cycle1': <pypresence.presence.Presence object at 0x7f846fa05220>, 'cycle2': <pypresence.presence.Presence object at 0x7f846f030700>}
cycle3 not in : True
try_connect(key="cycle3") on <pypresence.presence.Presence object at 0x7f846f0306d0>
[KeyError]: 'Battery:'
cycle 3
[KeyError]: 'Battery:'
try_update(key="cycle3") on <pypresence.presence.Presence object at 0x7f846f0306d0>
appid: 743971270395297852
try_clear(key="cycle3") on <pypresence.presence.Presence object at 0x7f846f0306d0>
{'cycle0': <pypresence.presence.Presence object at 0x7f846ef15580>, 'cycle1': <pypresence.presence.Presence object at 0x7f846fa05220>, 'cycle2': <pypresence.presence.Presence object at 0x7f846f030700>, 'cycle3': <pypresence.presence.Presence object at 0x7f846f0306d0>}
cycle0 not in : False
cycle 0
try_update(key="cycle0") on <pypresence.presence.Presence object at 0x7f846ef15580>
appid: 740614258177605642
^CClosing connection.

If you are unable to run FetchCord please run neofetch --noart(windows) or neofetch -- stdout(macos&linux)

Operating system & way of installation

FetchCord 2.7 on Manjaro installed via pip

Error/issue

There is a KeyError, causing FetchCord to display the battery as N/A because on my laptop NeoFetch displays the battery level under Battery0 instead of what this is trying to get it as, which is just Battery.

Other notes(optional)

Maybe try using a regular expression instead of just statically getting Battery. This one that I just wrote seems to match any battery following the pattern of having or not having a number before the colon, Battery[0-9]*:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
TabulateJarl8commented, Mar 14, 2021

Yep, you seemed to have fixed the issue, good job. Closing the issue

0reactions
BlivionIaGcommented, Mar 14, 2021

@TabulateJarl8 Hello can you try with the new fetchcord version ? pip3 install fetchcord --upgrade or pip install fetchcord --upgrade

Read more comments on GitHub >

github_iconTop Results From Across the Web

Battery life expectations - Support - Manjaro Linux Forum
Yes it's normal. No way any laptop will get 20 hours, no matter what os it's running. You could also try htop and...
Read more >
Battery life in Manjaro KDE is atrocious compared to Windows ...
Hey - yep battery life is still solid. Estimated of about 12 hours which are very accurate, battery health still on 92 :)....
Read more >
Laptop - ArchWiki
Arch Linux provides all the tools and programs necessary to take ... The following tools and programs help to increase battery life and...
Read more >
Triple Your Battery Life on Arch Linux With These Easy Steps!
This guide is meant for Arch Linux laptops with intel CPU's and NVIDIA GPU's, so don't expect it to work on other distrbutions....
Read more >
Manjaro Plasma KDE Battery drain when laptop off - Linux
Seems suddenly the batter on my laptop drains even with the laptop turned off. The laptop is a three year old Samsung, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found