ValveSoftware / SteamOS

SteamOS community tracker
1.56k stars 70 forks source link

MangoHUD battery indicator sometimes shows discharge time while plugged in #1226

Open bergmannf opened 10 months ago

bergmannf commented 10 months ago

Your system information

Please describe your issue in as much detail as possible:

  1. Play a game (in my case Assassin's Creed Valhalla).
  2. Have the SteamDeck plugged into the charger.
  3. Turn on the MangoHUD overlay to at least Overlay Level 2 (must include the battery)
  4. During play, the overlay should show the plugged in Symbol for the battery, but instead it will sometimes show remaining battery times (often hundreds to thousands of minutes). This will happen intermittently and also stop for a while.

Instead of showing remaining battery times, the overlay should detect being plugged in with a charger that can supply enough power and not display charge times.

MangoHUD seems to use /sys/class/power_supply/ as source of data, so I guess the current_now, power_now or voltage_now will return some value != 0 during high powerdraw, even if plugged in.

I tested it with 2 different chargers, to rule out that this might be a charger issue.

Steps for reproducing this issue:

  1. Use the overlay while playing a game that requires has a high powerdraw.
  2. Wait a while - the battery indicator will show discharging times, while being plugged in.
eltia commented 9 months ago

I experience the same problem when playing Elden Ring with or without dock, with both stock and after market charger. The game is running in 1080p30, upscaled with FSR from 900p.