Re: [PATCH v8 0/5] MR8460: ntdll: Add support for multi-battery systems and energy-reporting batteries on Linux
On Thu Jul 3 15:55:50 2025 +0000, Vibhav Pant wrote:
Even if the tests are being run in a virtual/containerized environment, they still are real/compliant systems for our purposes. The tests ensure that APIs behave exactly the same on Wine and Windows, real or not. Windows seems to always set `ACLineStatus` to 1, including on virtualized environments where there is no power supply information available to the system. Wine's implementation should do the same. Hello Vibhav,
You only spoke of `LPSYSTEM_POWER_STATUS.ACLineStatus` used in `powermgnt.GetSystemPowerStatus`. Am I to assume `SYSTEM_BATTERY_STATE.AcOnLine` in `system.fill_battery_state` holds a value reflecting the system's actual state? Asking so I'm sure where to enforce that logic. Thanks. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8460#note_108840
participants (1)
-
Tomas-Mendes-ai (@Tomas-Mendes-ai)