@@ -44,6 +44,35 @@ tool controls the CPU temperature more aggressively than thermald.
44
44
` cputemp [<options>] `
45
45
46
46
47
+ ### Options
48
+
49
+ ` --sensor <sensor name> `
50
+
51
+ Specifies the name of sensor that gives the CPU temperature.
52
+
53
+ ` --period <seconds> `
54
+
55
+ Specifies the interval at which temperature is checked and CPU
56
+ frequency is controlled.
57
+
58
+ ` --temp <target temperature> `
59
+
60
+ Specify target CPU temperature.
61
+
62
+ ` --daemon <pid file name> `
63
+
64
+ Start this tool as a daemon. If this tool is already running as a
65
+ daemon, it will be restarted with the new setting.
66
+
67
+ ` --kill-daemon <pid file name> `
68
+
69
+ Kill already running daemon.
70
+
71
+ ` --verbose `
72
+
73
+ Turn on verbose mode.
74
+
75
+
47
76
### Description
48
77
49
78
This tool monitors temperature obtained by the sensor specified by
@@ -90,18 +119,17 @@ controlled by `--verbose` option.
90
119
91
120
```
92
121
$ sudo ./cputemp --sensor k10temp --temp 80 --verbose
93
- [sudo] password for shibatch:
94
122
Sensor file name : /sys/class/hwmon/hwmon1/temp1_input
95
123
Max freq : 5881 MHz
96
124
Min freq : 400 MHz
97
- Cur freq : 5488.64 MHz
98
- CPU freq = 476.966 MHz, scaling_max_freq = 400 MHz, CPU temp = 53.75 C, target temp = 80 C
99
- CPU freq = 564.43 MHz, scaling_max_freq = 925 MHz, CPU temp = 53.75 C, target temp = 80 C
100
- CPU freq = 1112.53 MHz, scaling_max_freq = 1450 MHz, CPU temp = 53.75 C, target temp = 80 C
101
- CPU freq = 1496.2 MHz, scaling_max_freq = 1975 MHz, CPU temp = 53.75 C, target temp = 80 C
102
- CPU freq = 2500 MHz, scaling_max_freq = 2500 MHz, CPU temp = 53.75 C, target temp = 80 C
125
+ Cur freq : 5039.77 MHz
126
+ CPU freq = 476.98 MHz, scaling_max_freq = 5881 MHz, CPU temp = 64.625 C, target temp = 80 C
127
+ CPU freq = 674.05 MHz, scaling_max_freq = 5881 MHz, CPU temp = 64.5 C, target temp = 80 C
128
+ CPU freq = 564.43 MHz, scaling_max_freq = 5881 MHz, CPU temp = 64.375 C, target temp = 80 C
129
+ CPU freq = 674.05 MHz, scaling_max_freq = 5881 MHz, CPU temp = 64.25 C, target temp = 80 C
130
+ CPU freq = 3524.17 MHz, scaling_max_freq = 5881 MHz, CPU temp = 64.25 C, target temp = 80 C
103
131
^C
104
- $
132
+ $
105
133
```
106
134
107
135
You should be able to observe that the CPU frequency is lowered and
0 commit comments