Tianhao Chai
29058a09bb
nvctrl: call XDefaultScreen for screen id ( #1152 )
...
Calling nvctrl XNVCTRLIsNvScreen with X display ID used for screen id is
a programmer error. For most common use cases, Gnome on X11 may launch
user sessions on X display ":1" but still uses screen 0. Current code
will always fail to find a correct display in this case, as both
`IsNvScreen(":0", 0)` and `IsNvScreen(":1", 1)` returns false.
Call XDefaultScreen with `struct Display *` to obtain the correct screen
id, then use this id for `IsNvScreen()`.
12 months ago
FlightlessMango
d962ae5181
Nvidia: nvml: fan speed in percent
12 months ago
Self Denial
10e5abcccc
Attempt to query number of coolers before fan_speed. Inspiration: https://github.com/NVIDIA/nvidia-settings/blob/main/samples/nv-control-targets.c
12 months ago
jackun
5fde8749af
Use a "get" function to initialize X11 loader...
...
...so static init doesn't spam log before we got that set up properly.
1 year ago
FlightlessMango
1093de8c44
nvml: fan: get rpm instead of percentage
1 year ago
FlightlessMango
2df384cdd7
nvml: fan speed
1 year ago
FlightlessMango
f9cfdeb080
Add gpu throttling status
...
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2 years ago
Emil Velikov
68ce8f81cc
Remove libdrm_amdgpu metrics
...
There are two alternatives - hwmon entries and gpu_metrics sysfs file.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
3 years ago
jackun
a431c092eb
Separate libdrm and libdrm_amdgpu loader
3 years ago
jackun
a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time
3 years ago
jackun
2f807a4c0d
Add `spdlog` wrap and logging
3 years ago
jackun
c093f9823e
Use libdrm_amdgpu for amdgpu sensor info, if available
...
Using plain `open` as `drmOpen` needs bus id check which needs interface 1.4 ioctl which gives EPERM cause only DRM_MASTER can call it :(
https://github.com/clbr/radeontop/issues/48#issuecomment-493792404
3 years ago
jackun
714f3853f7
[OpenGL] Support apitrace in debug build
...
Try to load `glxtrace.so` instead of `libGL.so.1`.
Assumes `glxtrace.so` lives outside of usual library paths and is only preloaded.
4 years ago
jackun
60940e5a02
[OpenGL] Just "refcount" by glXCreate/DestroyContext calls; recreate "lost" objects
4 years ago
jackun
fcefc07966
Load libnvidia-ml and libXNVCtrl on demand
4 years ago
Lars Krämer
4bf7a3f2f0
Make DBus signal handling more event-based
4 years ago
jackun
1f81889d1b
Show bitness in library loaders
4 years ago
jackun
5c3c8a5ac9
Add nvmlDeviceGetPowerUsage import
4 years ago
jackun
768297b430
[editorconfig] Apply whitespace rules
4 years ago
jackun
beee2b08c7
[OpenGL] Add glXSwapBuffersMscOML and disable XGetGeometry
4 years ago
jackun
7e5afe96bb
Add dbus_message_get_sender to dbus loader
5 years ago
FlightlessMango
d6314da8b2
Merge branch 'master' into develop
5 years ago
jackun
6576a0a09c
Print NVML return code as string
5 years ago
Stephan Lachnit
f860418e7e
Allow system NVML to be used
...
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
5 years ago
jackun
f3f04f3f78
Print dlerror() in lib loaders
5 years ago
jackun
8024736253
Add DBus loader, combined ticker for Spotify metadata
5 years ago
jackun
cbb46fa21b
Also call default constructor for libnvctrl_loader
5 years ago
jackun
8cd3172335
[OpenGL] Separate GLX out from shareable code so wayland sessions can just use EGL, hopefully
5 years ago
jackun
329b5d66c2
Add X11 loader
5 years ago
jackun
0a36578adf
[OpenGL] Rename GLX loader functions
5 years ago
jackun
b2e6727b25
[OpenGL] Rename loader_gl.* to loader_glx.*
5 years ago
jackun
2e7d92e068
Move `real_dlsym` files out from `gl` subdir
5 years ago
jackun
c3e50db2f4
[OpenGL] Import glXQueryDrawable just in case
5 years ago
jackun
fbae1dfcc0
More checks for XNVCtrl support. Favor NVML but fallback to XNVCtrl if supported.
5 years ago
FlightlessMango
f2b770abac
Use XNVCTRLQueryTargetAttribute64 instead
5 years ago
FlightlessMango
8ee0ec2c3f
NVCtrl loader
5 years ago
jackun
bb3aba9080
[OpenGL] Use elfhacks to load real OpenGL functions
5 years ago
jackun
c850507314
[OpenGL] Initialize MangoHud from glXSwapBuffers even if glXMakeCurrent is skipped for some reason
5 years ago
jackun
a52dce875f
[OpenGL] Keep glClipControl local to imgui_impl_opengl3.cpp
5 years ago
jackun
e0ce0493f7
[OpenGL] Set swap interval (vsync) with `gl_vsync` param
5 years ago
FlightlessMango
a2735693ba
Merge opengl into develop
5 years ago
FlightlessMango
4d5f62386b
added gpu mem and core clocks to hud
5 years ago
FlightlessMango
36eba167d8
use nvml for nvidia gpu memory instead of nvctrl
5 years ago
FlightlessMango
d97719e3d6
get nvidia vram from nvml
5 years ago
jackun
7f6bc9434a
Fix nvml loader's ctor
5 years ago
FlightlessMango
8cdd9f19cf
Dynamically load nvml library
5 years ago