"No Batteries Available" in KDE battery widget

7,521

Solution 1

I had the same issue. Restarting Plasma helps in my case.

This technique is useful when you're trying to restart the Plasma desktop.

kquitapp5 plasmashell && kstart5 plasmashell
  • The KDE Plasma desktop is d-bus enabled and therefore you can provide the name of the application that runs the Plasma desktop to kquitapp5 to stop it. In the examples above the name of the application is plasmashell.

  • The kstart5 command launches applications with special window properties. In the examples above it just starts the plasmashell application which was killed in previous command.

Solution 2

In ~/.config try renaming plasma-org.kde.plasma.desktop-appletsrc to plasma-org.kde.plasma.desktop-appletsrc.bak and reboot.

Warning: this will reset some of your plasma settings. If it doesn't fix the battery problem, replace the new file with the old one, reboot again and the old settings will be restored.

If this doesn't work, try the answer in "Battery not present" Dell Inspiron 14-7437 [Kubuntu-14.04]

Share:
7,521

Related videos on Youtube

Λethernet
Author by

Λethernet

I'm just a human being. I love using GNU/Linux and my favorite distribution is YHKylin, which is a distro made from the Ubuntu Kylin developers, based off of Ubuntu 16.04. I'm a sucker for free software. Richard Stallman and Linus Torvalds are my idols. Lastly, I'm not a conspiracy theorist since the deep state in America is a real thing and I'm sure of it.

Updated on September 18, 2022

Comments

  • Λethernet
    Λethernet over 1 year

    I have installed Kubuntu 17.10 on my Chromebook via crouton. The problem I'm having is that my battery doesn't show in the battery widget, I haven't had this problem with GNOME, Xfce, or Unity. I'm assuming it's a problem with KDE. When I hover my mouse over the battery widget, it displays a message saying, "No Batteries Available." Does anybody happen to know of a fix to this?

  • whamalai
    whamalai over 5 years
    I got suddenly the same problem, 2 months after new installation (kubuntu 18.04). I removed this mentioned file and the problem disappeared, but since it messed my settings, I copied the old .bak back and the battery widget still works.
  • damadam
    damadam over 4 years
    Can you explain your command line answer a little more (describe each component a few is suffisant). Please edit your post.
  • kjones
    kjones over 3 years
    Thank you - this worked for me on Kubuntu 19.10. Rebooting did not previously fix the issue, and the upower utlity was already installed and the issue was still occurring.