https://bugs.kde.org/show_bug.cgi?id=415597

            Bug ID: 415597
           Summary: "No Batteries Available" despite detecting a battery
           Product: Powerdevil
           Version: 5.17.4
          Platform: openSUSE RPMs
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: thi...@kde.org
  Target Milestone: ---

SUMMARY
The power/battery icon in the system tray is always displaying a full, black
battery instead of a discharging one when I am on battery power. If I hover it,
it says "No Batteries Available". If I click it, it shows the sliders for
keyboard and screen brightness, but no information about the battery.

OBSERVED RESULT
Powerdevil does not display information about battery. However, it does detect
when I am connected to the AC or not.

EXPECTED RESULT
Powerdevil tells me how long I have of battery life.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.17.4
Qt: 5.13.1
KDE Frameworks: 5.64.0

ADDITIONAL INFORMATION
When starting /usr/lib64/libexec/org_kde_powerdevil manually, it does say it
detected a battery (same information is in the syslog):

$ /usr/lib64/libexec/org_kde_powerdevil
  Backend loaded, loading core
  Core loaded, initializing backend
  Using XRandR
  Screen brightness value:  131
  Screen brightness value max:  937
  current screen brightness value:  131
  Kbd backlight brightness value:  1
  current keyboard backlight brightness value:  1
  Backend ready, KDE Power Management system initialized
  Battery with UDI "/org/freedesktop/UPower/devices/battery_BAT0" was detected
  Session path: "/org/freedesktop/login1/session/_31"
  ACTIVE SESSION PATH: "/org/freedesktop/login1/session/_31"
  Current session is now active
  fd passing available: true
  systemd powersave events handling inhibited, descriptor: 18
  systemd support initialized
  Got a valid offer for  "DPMSControl"
  Core is ready, registering various services on the bus...
  Can't contact ck
  Currently using activity  "fbf8742b-b0e6-4bc4-a1e4-ee39e6482f5a"
  () ()
  () ()
  Loading profile for unplugged AC
  Activity is not forcing a profile
  Handle button events action could not check for screen configuration
  Profiles:  "Battery" ""
  Screen brightness value max:  937
  Can't contact ck
  set screen brightness value:  131
  Screen brightness value:  131

  Loading timeouts with  120000
  Can't contact ck
  Screen brightness value:  131

Solid also knows about this battery:

$ solid-hardware5 details /org/freedesktop/UPower/devices/battery_BAT0
udi = '/org/freedesktop/UPower/devices/battery_BAT0'
  parent = '/org/freedesktop/UPower'  (string)
  vendor = 'SMP'  (string)
  product = 'DELL JHXPY53'  (string)
  description = 'Lithium Polymer Battery'  (string)
  icon = 'battery'  (string)
  Battery.present = true  (bool)
  Battery.type = 'PrimaryBattery'  (0x3)  (enum)
  Battery.chargePercent = 55  (0x37)  (int)
  Battery.capacity = 77  (0x4d)  (int)
  Battery.rechargeable = true  (bool)
  Battery.powerSupply = true  (bool)
  Battery.chargeState = 'Discharging'  (0x2)  (enum)
  Battery.timeToEmpty = 6425  (0x1919)  (qlonglong)
  Battery.timeToFull = 0  (0x0)  (qlonglong)
  Battery.energy = 24.7304 (double)
  Battery.energyFull = 44.6652 (double)
  Battery.energyFullDesign = 57.532 (double)
  Battery.energyRate = 13.8548 (double)
  Battery.voltage = 7.393 (double)
  Battery.temperature = 0 (double)
  Battery.technology = 'LithiumPolymer'  (0x2)  (enum)
  Battery.recalled = false  (bool)
  Battery.recallVendor = ''  (string)
  Battery.recallUrl = ''  (string)
  Battery.serial = '2255'  (string)
  Battery.remainingTime = 6425  (0x1919)  (qlonglong)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to