Commit Graph

68 Commits

Author SHA1 Message Date
Solène Rapenne a55ad56fbb
move upstream URL 2023-08-23 09:53:47 +02:00
Solène Rapenne a909c1a20e add a gitignore file 2023-08-22 16:34:56 +02:00
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
solene 18eaf38df8 Merge pull request 'use of fprintf() is not async-signal safe; call write() instead' (#2) from seanmcg/obsdfreqd:signal_handler_reentrancy into main
Reviewed-on: #2
2022-12-01 19:54:52 +00:00
Sean McGovern 8ac1d97556 use of fprintf() is not async-signal safe; call write() instead 2022-12-01 14:28:39 -05:00
Solene Rapenne ee35b241ad README: tweaks 2022-11-12 21:05:56 +01: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 48e0c80864 use -O2 instead of -Os 2022-11-07 23:30:45 +01:00
Solene Rapenne 89a2fe9a91 rework examples 2022-10-31 18:25:08 +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 de605f3552 Leave rc.d(8) script handling to the OpenBSD port
sysutils/obsdfreqd now has a local copy of the script as is common with
daemons in port.  Apply the ports patch so the new release can build
without any.
2022-09-12 23:11:35 +02: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
Klemens Nanni f7aed1accb manual: Use default .Ex in EXIT STATUS
No need to spell out manuall as obsdfreqd follows standard semantics.
2022-09-09 17:44:08 +02:00
Klemens Nanni fd9c73695a manual: Fix spelling 2022-09-09 17:44:08 +02:00
Klemens Nanni 690c0e5c8e manual: Fix "mandoc -T lint" errors and warnings 2022-09-09 17:44:08 +02:00
Klemens Nanni 77d28d3bd6 manual: Fix flags markup
SYNOPSIS already tells which flags are optional, so no need to markup each
flag with .Op individually.

Removing that marco also makes tags work, i.e. ":tv<Enter>" in the pager
will no jump to -v.
2022-09-09 17:44:08 +02:00
solene 6831806411 Merge pull request 'Fix markup' (#1) from rjc/obsdfreqd:main into main
Reviewed-on: #1
2022-07-06 16:31:27 +00:00
rjc 462a4212b6 Fix markup 2022-06-24 12:24:40 +00:00
Solene Rapenne d130c0b563 README: update the content to clarify the purpose of obsdfreqd 2022-04-21 21:27:01 +02:00
Solene Rapenne feb3ac237a obsdfreqd: explicitely initialize current_mode to battery mode 2022-04-09 17:19:16 +02:00
Solene Rapenne dc5448729f makefile: make it compliant for ports infrastructure 2022-04-07 21:37:11 +02:00
Solene Rapenne 513852b740 README: give information about minimal OpenBSD version supported 2022-03-26 13:01:48 +01: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 9771c480d7 README: add TLDR 2022-03-21 17:24:31 +01:00
Solene Rapenne 6ff783beef obsdfreqd: cleaning useless lines 2022-03-21 17:21:04 +01:00
Solene Rapenne faa645b825 obsdfreqd: new -T flag for temperature 2022-03-21 17:20:51 +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 4555587f47 documentation: warn about running apmd 2022-03-18 10:00:36 +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 ba0a41afd9 obsdfreqd: add man page 2022-03-16 23:01:04 +01:00
Solene Rapenne 706e252ea0 obsdfreqd: add rc file and install instructions 2022-03-16 22:45:45 +01:00
Solene Rapenne 4e5fd1f43b obsdfreqd: exit gracefully on SIGTERM 2022-03-16 22:45:21 +01:00
Solene Rapenne 7cbce1eb9d README: tweak a power profile 2022-03-16 22:16:55 +01:00
Solene Rapenne a586f20c97 README: add information about dual modes profiles 2022-03-16 22:13:33 +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 f81ca8becd README: tweak power profile performance 2022-03-16 20:28:36 +01:00
Solene Rapenne 85984f762f obsdfreqd: add quiet mode 2022-03-16 20:27:23 +01:00