benzhaomin / corsairpsu Goto Github PK
View Code? Open in Web Editor NEWhwmon Linux Kernel driver for the Corsair RMi and HXi series of PSUs
License: GNU General Public License v2.0
hwmon Linux Kernel driver for the Corsair RMi and HXi series of PSUs
License: GNU General Public License v2.0
I have a hx750i PSU and am using your driver to monitor the power usage. When I wake my computer from suspend I get all 0 readings until I reload the driver.
corsairpsu-hid-3-3
Adapter: HID adapter
voltage supply: 0.00 V
voltage 12v: 0.00 V
voltage 5v: 0.00 V
voltage 3.3v: 0.00 V
fan rpm: 0 RPM
temp1: +0.0°C
temp2: +0.0°C
power total: 0.00 W
power 12v: 0.00 W
power 5v: 0.00 W
power 3.3v: 0.00 W
current 12v: 0.00 A
current 5v: 0.00 A
current 3.3v: 0.00 A
Then after reloading the driver I get normal readings again
corsairpsu-hid-3-3
Adapter: HID adapter
voltage supply: 115.00 V
voltage 12v: 12.06 V
voltage 5v: 5.06 V
voltage 3.3v: 3.34 V
fan rpm: 0 RPM
temp1: +31.2°C
temp2: +25.0°C
power total: 36.00 W
power 12v: 20.00 W
power 5v: 10.50 W
power 3.3v: 7.00 W
current 12v: 1.75 A
current 5v: 2.19 A
current 3.3v: 2.19 A
I am running on Manjaro with the AUR package: https://duckduckgo.com/?t=ffab&q=corsairpsu+0+readings+after+wake+from+suspend&ia=web
First, thank you for this driver! There's nothing more satisfying than buying a piece of known Windows-only hardware and discovering that somebody has already REd and wrote a driver for that :)
The problem I've discovered is that when you try to read the hwmon sysfs files concurrently from more than one place, they will return completely bogus readings:
# sensors
corsairpsu-hid-3-1
Adapter: HID adapter
voltage supply: 3.33 V
voltage 12v: 48.50 V
voltage 5v: 134.00 V
voltage 3.3v: 106.00 V
fan rpm: 0 RPM
temp1: +27.0°C
temp2: +2.0°C
power total: 2.50 W
power 12v: 8.75 W
power 5v: 5.44 W
power 3.3v: 875.00 mW
current 12v: 0.00 A
current 5v: 1000.00 mA
current 3.3v: 2.00 A
<...>
Reproducer is trivial: run watch -n1 sensors
and watch -n0.1 sensors
in two terminals and look at the first one.
Just in case this is somehow hardware dependent:
I'll be happy to provide any other information you need.
I was wondering if it would be possible to expose maximum statistics for relevant metrics, for example power consumption? This can of course be monitored via the hwmon files, but I assume that given the high frequency needed for this monitoring, it can be done better in the driver. Such a feature would be helpful in order to see the maximum power consumption observed in relation to the PSUs rated specification.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.