Commit Graph
16 Commits
Author SHA1 Message Date
Blacktempel 273b47b462 Fix build for Linux (#2257)
* Fix build for Linux.

* Fix Linux runtime issues.

* PR review + fix for Windows.
2026-03-05 14:09:21 +01:00
dependabot[bot]PhyxionNLcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Copilot
cbd3f4b1d2 Bump Microsoft.Windows.CsWin32 from 0.3.235 to 0.3.236 (#1999)
* Bump Microsoft.Windows.CsWin32 from 0.3.235 to 0.3.236

---
updated-dependencies:
- dependency-name: Microsoft.Windows.CsWin32
  dependency-version: 0.3.236
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix build compatibility with Microsoft.Windows.CsWin32 0.3.236 (#2000)

* Initial plan

* Fix compatibility with CsWin32 0.3.236 and resource path case sensitivity

Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>

* Remove unnecessary local variable pData in BatteryGroup.cs

Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
2025-10-30 23:51:27 +01:00
PhyxionNL 5670130347 Refactor value assignment to use new string constructor 2025-10-29 10:27:01 +01:00
PhyxionNL 21e09cb5b1 Refactor devicePath initialization in BatteryGroup
Ref: https://github.com/LibreHardwareMonitor/LibreHardwareMonitor/issues/1946
2025-10-29 10:05:58 +01:00
EMN-CSharp 31c9ca32d3 Battery.cs: Don't set the Name property, since it overrides custom names. (#1933) 2025-10-04 16:28:12 +02:00
PhyxionNL d594734225 Move remainder to CsWin32 (#1918) 2025-09-30 18:58:21 +02:00
PhyxionNL 1d7b3223c9 Move more to CsWin32 (#1917) 2025-09-30 16:50:44 +02:00
PhyxionNLandCopilot ee60348eac Use CsWin32 (#1912)
* Use CsWin32

* Update LibreHardwareMonitorLib/Hardware/Cpu/CpuLoad.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update LibreHardwareMonitorLib/Hardware/Battery/BatteryGroup.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pull requests.yml

* Update pull requests.yml

* Update master.yml

* A couple more to CsWin32

* Restore PawnIO defaults

Fixes #1910

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-29 18:48:00 +02:00
EMN-CSharp 4961d4f0a4 Improvements to battery monitoring (#1158)
* Check whether battery values are available

* Rename _degradationPercentage to _degradationLevel

* Add support for temperature monitoring

* Include the battery device name and tag in the hardware identifier

* Set sensor index value properly

* Fix temperature conversion

The returned temperature value must be divided, not multiplied.

* Disable sensors that have a "null" value

* Fix random symbols in battery device name and manufacturer
2024-11-24 11:49:46 +01:00
Corey Shuman 6743fd3bc8 fix support for x86 32-bit process builds (#1144) 2023-08-24 10:26:38 +02:00
Alex 6d1a4195cf fix: Battery info Capabilities is a bit flag field (#1133)
* fix: Capabilities is a bit flag field

* * use Flags
2023-08-05 11:59:36 +02:00
PhyxionNL 1de509afc1 Fixes #976 2023-03-15 18:10:37 +01:00
PhyxionNL 58cef111a1 Use file-scoped namespaces (#842) 2022-10-09 13:22:57 +02:00
PhyxionNL 38b97e10d0 Update editorconfig + changes (#771) 2022-06-29 19:38:57 +02:00
EMN-CSharp 8d8d84af22 Add battery remaining time sensor (#660) 2022-02-11 19:41:56 +01:00
EMN-CSharp 5152b435fc Add support for battery monitoring (#612)
Thanks to @EMN-CSharp.
2022-02-07 17:05:36 +01:00