1
0
mirror of https://github.com/gryf/wmtemp.git synced 2026-02-13 04:15:50 +01:00

Attempt to use nvclock code for reading GPU temperature, since running

nvidia-settings couple of times for a second is highly inefficient.
This commit is contained in:
2012-05-30 11:01:21 +02:00
parent d256a01f46
commit 28d2a7fd2e
54 changed files with 9003 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
# By RedSeb 1999, Liverbugg 2002
system=Linux
SRC = wmtempnv.c ../wmgeneral/wmgeneral.c ../wmgeneral/misc.c ../wmgeneral/list.c
@@ -9,7 +8,7 @@ OBJ = $(SRC:.c=.o)
CFLAGS = -Wall -O3
LIB = -L/usr/X11R6/lib -lXpm -lXext -lX11 -lsensors
LIB = -L/usr/X11R6/lib -lXpm -lXext -lX11 -lsensors -lbackend -L../nvclock
INSTALL = /usr/bin/install
@@ -17,7 +16,7 @@ CC = gcc
all: $(OBJ)
$(CC) -o $(EXE) $(OBJ) $(LIB)
strip $(EXE)
#strip $(EXE)
$(OBJ): %.o : %.c
$(CC) $(CFLAGS) -c -o $@ $<

View File

@@ -1,6 +1,6 @@
#define wmtempnv_mask_width 64
#define wmtempnv_mask_height 64
static unsigned char wmtempnv_mask_bits[] = {
static char wmtempnv_mask_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,