sammilucia wrote: βNovember 29th, 2020, 12:25 am
Is there something I'm doing wrong or are some PerfMon things not supported?
No, you are not doing anything wrong. The Battery Status class can't be queried by UsageMonitor. In fact, the WMI BatteryStatus class (which is what PerfMon is querying, is actually undocumented by Microsoft. If you Google it, you'll find lots of folks with examples of how to use it, but there is no official documentation on this class. I'm not sure why PerfMon even shows it, other than it is probably querying all the WMI classes programmatically and just showing you everything it found.
If you are trying to build a battery skin, you have a couple options. One is to use HWiNFO, as it will show you the data you are looking for. Another way is to use PowerShell or command queries to fetch the data from the WMI class using a CommandMeasure. Or you can write a plugin to do it, which is what I did.
SilverAzide wrote: βNovember 29th, 2020, 4:00 am
No, you are not doing anything wrong. The Battery Status class can't be queried by UsageMonitor.
ah, thank you so much! that makes sense ... i'm not losing it
SilverAzide wrote: βNovember 29th, 2020, 4:00 am
If you are trying to build a battery skin, you have a couple options. One is to use HWiNFO, as it will show you the data you are looking for. Another way is to use PowerShell or command queries to fetch the data from the WMI class using a CommandMeasure. Or you can write a plugin to do it, which is what I did.
thank you. I don't really want to rely on another piece of software (including PowerShell) because I can't control how performant it is. that's why I was trying to use UsageMonitor.
is your plugin available for use or private use only?
SilverAzide wrote: βNovember 29th, 2020, 4:41 pm
Yes, that works, but it doesn't tell you voltages and charge/discharge rates, which is what it appears the OP is looking for.
yes that's correct. I really want to see battery discharge rate so I can see if there's a runaway process, because I use my laptop on battery all day.
sammilucia wrote: βNovember 29th, 2020, 7:00 pm
is your plugin available for use or private use only?
You can use it. Install the Gadgets suite and you'll find a Battery Meter skin. It uses a custom plugin, which is really just uses WMI to query the battery (among other things). There is a readme text file in the Resources folder which will describe how to use the plugin. You'll see how it works if you look at the Battery Meter code. There's also a variant skin which is identical, but uses HWiNFO instead.