Skip to content
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

[BUG] Battery Power displays current battery capacity instead of power #770

Closed
Derppening opened this issue Feb 13, 2024 · 1 comment · Fixed by #771
Closed

[BUG] Battery Power displays current battery capacity instead of power #770

Derppening opened this issue Feb 13, 2024 · 1 comment · Fixed by #771
Assignees
Labels
bug Something isn't working

Comments

@Derppening
Copy link
Contributor

Derppening commented Feb 13, 2024

Describe the bug

When enabling the battery power display introduced in v1.3.1, the current battery capacity in Wh is displayed instead of the current energy consumption.

To Reproduce

  1. Open btop and an external tool which monitors battery consumption (I use the Energy information display in KDE).
  2. Monitor the Wattage displayed in btop and the current battery capacity in Wh.

Expected behavior

The current power consumption is displayed instead of the current battery capacity.

Screenshots

The below screenshot shows that the power consumption never exceeds 20W, but the current power consumption displayed by btop is at 34W. Moreover, the numeric value of the power consumption in btop and the remaining energy in KDE's info center is the same (34.32).

image

Info (please complete the following information):

  • btop++ version: 1.3.2
  • Binary: static binary from release + Compiled Package from ArchLinux
  • Architecture: x86_64
  • Platform: Linux
  • (Linux) Kernel: 6.7.4-arch1-1
  • Terminal used: konsole/yakuake
  • Font used: Fira Code

Additional context

Contents of ~/.config/btop/btop.log

2024/02/14 (00:41:22) | ===> btop++ v.1.3.2
2024/02/14 (00:41:22) | WARNING: ROCm SMI: Failed to get maximum GPU power draw, defaulting to 225W
2024/02/14 (00:41:22) | WARNING: ROCm SMI: Failed to get maximum GPU temperature, defaulting to 110°C
2024/02/14 (00:41:22) | WARNING: ROCm SMI: Failed to get VRAM utilization
2024/02/14 (00:41:22) | WARNING: ROCm SMI: Failed to get GPU power usage
2024/02/14 (00:41:22) | WARNING: ROCm SMI: Failed to get PCIe throughput
@Derppening Derppening added the bug Something isn't working label Feb 13, 2024
Derppening added a commit to Derppening/btop that referenced this issue Feb 13, 2024
This was erroneously set to read from the current battery charge.

Fixes aristocratos#770.
@rubin55
Copy link

rubin55 commented Jul 10, 2024

@aristocratos I'm experiencing exactly this issue with btop 1.3.2 on Arch Linux, on an AMD Ryzen 7 PRO 5850U; is that a regression? Screenshot:
image

(for reference, I checked powertop output which in the above case shows ~3.14 watts of usage and I checked that the number in btop steadily declines)

Update: Ah, this bug report is for 1.3.2. I see a fix is merged, could a 1.3.3 release be made that includes this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants