01 mayo 2011

Temperatura GPU en Conky (Solucion)

En éste post, explicaré básicamente  como podremos colocar la temperatura de la GPU (gráfica) en nuestro conky. Solo para NVIDIA.


Requerimientos: nvidia-settings, grep y cut ← los dos últimos es difícil no tenerlos ya.
 Pues bien, pasamos a la consola para hacer comprobaciones y hacemos como sigue:

  • # nvidia-settings --query GPUCoreTemp # la salida sería algo parecido a esto:
                    Attribute 'GPUCoreTemp' (nuncaigual:0.0): 58.
                        'GPUCoreTemp' is an integer attribute.
                        'GPUCoreTemp' is a read-only attribute.
                        'GPUCoreTemp' can use the following target types: X Screen, GPU.
# Pues bien, ahora pasamos a filtrar lo que nos interesa a nosotros '58';       esta sería la temperatura (a tiempo real) de nuestra GPU
  • Tomamos Attribute, para colocarnos en la linea con 'grep Attribute' y leemos los caracteres con 'cut -c45-46'. En fin, resumiendo...
  • Esta es mi salida:   tarrasquero@nuncaigual:~$ nvidia-settings --query GPUCoreTemp | grep Attribute | cut -c45-46
    58
    Donde 58 es la temperatura.
Procedemos a colocarlo en Conky: ${execi 60 nvidia-settings --query GPUCoreTemp | grep 'Attribute' | cut -c45-46 ;}°C


Este es el resultado: