bkbilly / lnxlink

🖥 Effortlessly manage your Linux machine using MQTT.

Home Page:https://bkbilly.gitbook.io/lnxlink

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pinephone battery not displaying

Baggypants opened this issue · comments

What type of installation are you running?

Desktop

Which Linux OS are you using?

Fedora Rawhide

Which version of LNXLink has the issue?

2023.12.2

Describe the problem

The output of upower --dump doesn't include the required information for the battery module

[pine@pinephone modules]$ upower --dump
Device: /org/freedesktop/UPower/devices/battery_axp20x_battery
  native-path:          axp20x-battery
  power supply:         yes
  updated:              Thu 21 Dec 2023 03:25:35 PM GMT (6 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              0 Wh
    energy-empty:        0 Wh
    energy-full:         0 Wh
    energy-full-design:  0 Wh
    energy-rate:         0 W
    voltage:             4.274 V
    charge-cycles:       N/A
    percentage:          99%
    capacity:            100%
    icon-name:          'battery-full-symbolic'

Device: /org/freedesktop/UPower/devices/line_power_axp20x_usb
  native-path:          axp20x-usb
  power supply:         yes
  updated:              Thu 21 Dec 2023 06:00:38 AM GMT (33903 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Thu 21 Dec 2023 03:12:35 PM GMT (786 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       none
    energy:              0 Wh
    energy-full:         0 Wh
    energy-rate:         0 W
    charge-cycles:       N/A
    percentage:          99%
    icon-name:          'battery-full-symbolic'

Daemon:
  daemon-version:  0.99.20
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  no
  critical-action: PowerOff

It doesn't have the Vendor, serial number or Manufacturer that the module is looking for.

Additional context

No response

Configuration

No response

Logs

No response

With the help of your detailed issue you wrote, I pushed an update which should fix this.
You will need to install LNXlink as a developer.

I've released the newest version, 2024.1.0 which fixes this issue.
Happy new Year!

confirmed working.