Browse Source

le jeudi matin, c'est parfois difficile :)

tth 9 months ago
parent
commit
8da6c9ffd6
2 changed files with 33 additions and 0 deletions
  1. 15
    0
      funcs.c
  2. 18
    0
      temperhum.txt

+ 15
- 0
funcs.c View File

@@ -36,3 +36,18 @@ return (double)tv.tv_sec + (double)tv.tv_usec / 1e6;
36 36
 
37 37
 /* --------------------------------------------------------------- */
38 38
 
39
+double get_loadavg(int foo)
40
+{
41
+FILE		*fp;
42
+
43
+if ( ! (fp=fopen("/proc/loadavg", "r")) ) {
44
+	perror("read loadavg");
45
+	return -42.51;
46
+	}
47
+
48
+fclose(fp);
49
+
50
+return -42.51;	
51
+}
52
+
53
+/* --------------------------------------------------------------- */

+ 18
- 0
temperhum.txt View File

@@ -0,0 +1,18 @@
1
+
2
+Après branchement du gadget USB, dmesg raconte :
3
+
4
+usb 7-1: Manufacturer: RDing
5
+hidraw: raw HID events driver (C) Jiri Kosina
6
+usbcore: registered new interface driver usbhid
7
+usbhid: USB HID core driver
8
+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
9
+hid-generic 0003:0C45:7402.0001: input,hidraw0: USB HID v1.10 Keyboard [RDing TEMPERHUM1V1.2] on usb-0000:00:1d.1-1/input0
10
+hid-generic 0003:0C45:7402.0002: hiddev0,hidraw1: USB HID v1.10 Device [RDing TEMPERHUM1V1.2] on usb-0000:00:1d.1-1/input1
11
+
12
+tth@debian:~/Essais/DD2-monitor$ ls -rtl /dev/hidraw*
13
+crw------- 1 root root 246, 0 Dec  6 11:04 /dev/hidraw0
14
+crw------- 1 root root 246, 1 Dec  6 11:04 /dev/hidraw1
15
+
16
+    Ça va pas être simple...
17
+    
18
+    

Loading…
Cancel
Save