Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add liquid cooling stats #1247

Open
wants to merge 47 commits into
base: master
Choose a base branch
from

Conversation

Makevelli
Copy link

@Makevelli Makevelli commented Feb 28, 2024

Add the possibility to display sensors data from watercooling devices. It is mainly for Aquacomputer devices since mainline kernel support is available. Support for devices from other manufacturers could be added if there are kernel modules that expose them in sysfs.

src/liquid.h Outdated
std::vector<WatercoolingDevice> devices;
};

extern LiquidStats liquidStats;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be a unique_ptr

@@ -721,6 +727,8 @@ static void set_param_defaults(struct overlay_params *params){
params->table_columns = 3;
params->text_outline_color = 0x000000;
params->text_outline_thickness = 1.5;
params->liquid_color=0x3fcbd4;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing spaces before and after =

@@ -1196,6 +1203,78 @@ void HudElements::device_battery()
#endif
}

void HudElements::liquid_stats()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since liquid is only for unix and we only compile liquid.cpp on unix, the windows compiler does not have access to liquidStats.
set #ifndef _WIN32 inside this function so it's not being compiled with mingw.
This should resolve the failing mingw test

@Makevelli
Copy link
Author

Updated to fix mingw build and apply your suggestions

@Makevelli Makevelli reopened this Apr 13, 2024
@Makevelli Makevelli marked this pull request as ready for review April 13, 2024 19:35
flightlessmango and others added 27 commits May 9, 2024 19:42
* if meson dosen't found spdlog with use_system_spdlog enabled
  meson will print a warning and fallback to the submodule
  instead of giving an error
* System vulkan-headers can't be use since mangohud don't use latest SDK
  The code is commented out for future use
* All the other submodules will use system dependency when found

Signed-off-by: Gonçalo Negrier Duarte <[email protected]>
When MANGOHUD_CONFIG was set but didn't contain either read_cfg or
preset values, the preset was never applied
Before we only had intel_gpu_top to rely on, but now
we can also get gpu load from fd.
We convert to host endian as we fetch the values from gpu_metrics
It's too much of a hassle to use intel_gpu_top, let's just wait
until these values are exposed in sysfs and until then we will just
have gpu load
… liquid_flow, liquid stats will be enabled when using any of the parameters
… liquid_flow, liquid stats will be enabled when using any of the parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.