le jeudi matin, c'est parfois difficile :)

This commit is contained in:
tth 2018-12-06 11:14:29 +01:00
parent 474814ad11
commit 8da6c9ffd6
2 changed files with 33 additions and 0 deletions

15
funcs.c
View File

@ -36,3 +36,18 @@ return (double)tv.tv_sec + (double)tv.tv_usec / 1e6;
/* --------------------------------------------------------------- */
double get_loadavg(int foo)
{
FILE *fp;
if ( ! (fp=fopen("/proc/loadavg", "r")) ) {
perror("read loadavg");
return -42.51;
}
fclose(fp);
return -42.51;
}
/* --------------------------------------------------------------- */

18
temperhum.txt Normal file
View File

@ -0,0 +1,18 @@
Après branchement du gadget USB, dmesg raconte :
usb 7-1: Manufacturer: RDing
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
input: RDing TEMPERHUM1V1.2 as /devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:0C45:7402.0001/input/input13
hid-generic 0003:0C45:7402.0001: input,hidraw0: USB HID v1.10 Keyboard [RDing TEMPERHUM1V1.2] on usb-0000:00:1d.1-1/input0
hid-generic 0003:0C45:7402.0002: hiddev0,hidraw1: USB HID v1.10 Device [RDing TEMPERHUM1V1.2] on usb-0000:00:1d.1-1/input1
tth@debian:~/Essais/DD2-monitor$ ls -rtl /dev/hidraw*
crw------- 1 root root 246, 0 Dec 6 11:04 /dev/hidraw0
crw------- 1 root root 246, 1 Dec 6 11:04 /dev/hidraw1
Ça va pas être simple...