nokyan / resources

Keep an eye on system resources
GNU General Public License v3.0
706 stars 56 forks source link

Power Usage #313

Open domi413 opened 1 month ago

domi413 commented 1 month ago

Is there an existing issue for this?

Current Behavior

I've noticed that when I plug in the power supply, the software displays the power usage as approximately 80 watts. This value represents the charging power rather than the actual power consumption.

It appears that the software is unable to differentiate between charging power and the power being used. It would be great if the charging power could also be displayed, but perhaps under a separate category such as "Battery Charge" instead of "Power Usage."

Environment

resources: 1.5.1
nixos: 24.05
nokyan commented 1 month ago

Hi, thanks for the issue. The battery entity in SysFS itself only exposes the stat that Resources currently shows. There are other SysFS entities though for each charging port (in my case at least) that show the nominal charging speed (e.g. exactly 45W for my 45W charger). I doubt though that the constant 45W is actually real and I'm not sure if I want Resources to display a charging speed of 45W if in reality charging speed is much lower because the battery could already be quite full. I'll think about it. :)

domi413 commented 1 month ago

The issue I'm referring to isn't that the charging speed might be incorrect, but that the charging power is displayed as "Power Usage" instead of "Battery Charge."