Solène Rapenne
c851c1cc80
threshold default value is now relative to the CPU number
...
obsdfreqd uses hw.ncpuonline to calculate a threshold
matching 80% of a single core usage. This helps the
default value to work fine with computer from 1 to many cores.
2023-08-22 16:33:00 +02:00
Sean McGovern
8ac1d97556
use of fprintf() is not async-signal safe; call write() instead
2022-12-01 14:28:39 -05:00
Vlad Meșco
0d3c032afb
code improvement
...
1) in get_temp, check temperature_sensor_found to avoid a bogus sysctl
if a temperature sensor was not found
2) fix checks for min_freq and max_freq (were improperly checked, resulting
in a failed sysctl if passing e.g. -m 1600)
3) preserve contents of argv[] because kvm_getargv grabs whatever is in the
program's argv[], making ps report a different command line compared to
how the program was started when parsing `,'
2022-11-07 23:31:40 +01:00
Solene Rapenne
ee170551b0
improve temperature throttling
...
- enhance CPU temperature sensor detection
- add a new parameter to give a sensor identifier
patch from Vlad Meşco, thanks!
2022-10-31 18:21:28 +01:00
Klemens Nanni
df93f44eb7
Sync usage with manual
...
Make spacing, wrapping as well as argument names match.
Much nicer to read on default 80-char wide xterm.
2022-09-09 17:44:08 +02:00
Solene Rapenne
feb3ac237a
obsdfreqd: explicitely initialize current_mode to battery mode
2022-04-09 17:19:16 +02:00
Solene Rapenne
815c6a4ab6
obsdfreqd: use sysctl to get temperature, reenable unveil. Thanks trondd!
2022-03-21 23:11:24 +01:00
Solene Rapenne
1537362ac3
obsdfreqd: reduce temperature polling frequency
2022-03-21 18:20:59 +01:00
Solene Rapenne
4c92e41641
obsdfreqd: fix maximum frequency not working with -T
2022-03-21 18:20:32 +01:00
Solene Rapenne
287a17e12f
obsdfreqd: increase wall profile inertia
2022-03-21 17:31:37 +01:00
Solene Rapenne
4a0fca281e
obsdfreqd: enhance code lisibility
2022-03-21 17:30:52 +01:00
Solene Rapenne
6ff783beef
obsdfreqd: cleaning useless lines
2022-03-21 17:21:04 +01:00
Solene Rapenne
d285ca88ee
obsdfreqd: replace quiet flag by verbose flag
2022-03-21 17:20:19 +01:00
Solene Rapenne
90fcf8b5a5
obsdfreqd: temperature parameter support both profiles
2022-03-21 17:06:10 +01:00
Solene Rapenne
a3825ec9ef
obsdfreqd: move temperature code before setting the frequency
2022-03-21 16:50:12 +01:00
Solene Rapenne
5cde001cad
obsdfreqd: use correct defaults for both powerplug and battery
2022-03-21 16:49:49 +01:00
Solene Rapenne
8138a482f9
obsdfreqd: cleaning useless variable
2022-03-21 16:49:26 +01:00
Solene Rapenne
d5eab5858e
obsdfreqd: avoid useless variables
2022-03-21 16:38:05 +01:00
Solene Rapenne
6cf98a74a7
obsdfreqd: try a temperature target
2022-03-21 16:36:03 +01:00
Solene Rapenne
a1a978ce6e
obsdfreqd: bugfix: no need to reassign mode values every cycle
2022-03-21 09:25:09 +01:00
Solene Rapenne
dbcb92ce25
obsdfreqd: make inertia dynamic
2022-03-17 21:18:53 +01:00
Solene Rapenne
0c38ac77f6
obsdfreqd: change the output to be CSV compatible
2022-03-17 21:18:32 +01:00
prx
3bd5463dfe
obsdfreqd: cleaner code
2022-03-17 14:49:15 +01:00
Solene Rapenne
4e5fd1f43b
obsdfreqd: exit gracefully on SIGTERM
2022-03-16 22:45:21 +01:00
Solene Rapenne
9af4da9700
obsdfreqd: support parameters to manage wall plugged and battery mode when switching
2022-03-16 22:05:59 +01:00
Solene Rapenne
85984f762f
obsdfreqd: add quiet mode
2022-03-16 20:27:23 +01:00
Solene Rapenne
0166914266
obsdfreqd: add inertia and decaying system
2022-03-16 20:15:15 +01:00
Solene Rapenne
0d142b96af
obsdfreqd: rename variable to be more explicit
2022-03-16 19:52:51 +01:00
Solene Rapenne
bfd5d3a732
obsdfreqd: add -t flag to choose poll frequency
2022-03-16 19:50:44 +01:00
Solene Rapenne
0a8bd1c5e2
obsdfreqd: add unveil support
2022-03-16 19:49:28 +01:00
Solene Rapenne
ca37724761
obsdfreqd: add usage()
2022-03-16 19:40:40 +01:00
Solene Rapenne
0119fb2b17
obsdfreqd: fix a warning
2022-03-16 19:40:07 +01:00
Solene Rapenne
b2807f2797
obsdfreqd: add flags and usage
2022-03-16 19:36:06 +01:00
Solene Rapenne
c6240cfa5f
obsdfreqd: init
2022-03-16 18:42:28 +01:00