edge217 / BatteryStatusInfo

Fabric mod to show battery status info within the Minecraft client
MIT License
2 stars 1 forks source link

Incorrect battery percentage #15

Open toontownlpz opened 1 year ago

toontownlpz commented 1 year ago

image

Unsure if this has anything to do with my set of installed mods.

Edgeburn commented 1 year ago

I have had issues on some machines with it not being able to read the battery percentage. I believe this primarily an issue with the library I am using to get the battery percentage.

Would you mind telling me what model of laptop you're using, and what comes back from this command in cmd: java --version?

toontownlpz commented 1 year ago
C:\Users\rober>java --version
openjdk 17.0.7 2023-04-18
OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)
OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)

I am using the Dell G3 15 3500. Apologies for the late response, I've been busy with real life stuff.

syorito-hatsuki commented 11 months ago
C:\Users\rober>java --version
openjdk 17.0.7 2023-04-18
OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)
OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)

I am using the Dell G3 15 3500. Apologies for the late response, I've been busy with real life stuff.

Have you tried installing another Java vendor? For example amazon coretto.

Reimnop commented 1 month ago

I'm experiencing the same issue here. Switching to Coretto does not resolve the issue. Laptop model is ROG Zepyrus G14.

ScoreUnder commented 1 month ago

Experiencing same/similar on NixOS (differing from the battery power reported via i3status) with a Thinkpad T430 with the 9-cell battery pack. Using OpenJDK 21:

openjdk version "21" 2023-09-19
OpenJDK Runtime Environment (build 21+35-nixos)
OpenJDK 64-Bit Server VM (build 21+35-nixos, mixed mode, sharing)

Notably I have not had a discrepancy as large as the OP's, but it looks like they're dividing by different values to get to the 100% watermark.

Edgeburn commented 1 month ago

Hm, okay, thank you for the information. So the issue does appear to be Windows specific, since it seems to work mostly well on Linux and macOS.