From 0e209e908a6037b95bf85c0fb04b4b0b119fcdd7 Mon Sep 17 00:00:00 2001 From: P_W999 Date: Mon, 21 Aug 2023 16:38:43 +0200 Subject: [PATCH] Rename gpu module to have a unique name. The module name does not seem to impact the name of the MQTT topics. --- README.MD | 2 -- gpu_nvidia_settings.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.MD b/README.MD index 5648b0e..fed3d6d 100644 --- a/README.MD +++ b/README.MD @@ -3,8 +3,6 @@ This module for [LNXLink](https://github.com/bkbilly/lnxlink) is a drop-in replacement for the bundeled GPU module. It uses `nvidia-settings` instead of `nvidia-smi` which might give better results on some (older) Nvidia GPUs. -Since this is a drop-in replacement, it'll use the same identifiers, thus it can not be used toghether with the 'gpu' module. - ## How to use You'll only need [gpu_nvidia_settings.py](gpu_nvidia_settings.py). There's no limitations on where you place the file, it might depend on where and how you've installed [LNXLink](https://github.com/bkbilly/lnxlink), but it'll work fine diff --git a/gpu_nvidia_settings.py b/gpu_nvidia_settings.py index 416c6ac..253af2b 100644 --- a/gpu_nvidia_settings.py +++ b/gpu_nvidia_settings.py @@ -32,7 +32,7 @@ class Addon(): def __init__(self, lnxlink): """Setup addon, discover all GPUs""" - self.name = 'GPU' + self.name = 'GPUNvidiaSettings' if which("nvidia-settings") is None: logger.warning("nvidia-settings was not found on the PATH") self.gpu_ids = self.__get_gpus()