NotAShelf
64bebe9f47
config: simplify default value functions
...
Create a macro that generates constant-returning functions for default configuration
values to reduce code duplication. This macro takes a function name, return type,
and value.
2025-05-18 06:03:35 +03:00
NotAShelf
13bb434ff1
engine: fix race condition in turbo state init
2025-05-18 05:42:39 +03:00
NotAShelf
ed3ba94f74
engine: error on negative values
2025-05-18 05:32:27 +03:00
NotAShelf
9db1a028bf
engine: reduce sysfs writes
2025-05-18 05:28:52 +03:00
NotAShelf
aaa46e9223
chore: v0.3.0
2025-05-18 05:16:32 +03:00
raf
0b8551d34f
Merge pull request #26 from NotAShelf/auto-turbo
...
feature: dynamic CPU turbo management
2025-05-18 05:11:30 +03:00
NotAShelf
d687c037cb
config: add serde(default) to turbo settings for backward compat
2025-05-18 05:07:10 +03:00
NotAShelf
d7d6398041
engine: optimize turbo auto settings retrieval; improve validation errors
2025-05-18 05:03:34 +03:00
NotAShelf
f1a5ad0b6c
engine: improve AC state detection
...
I hate the number of possible hardware combinations...
2025-05-18 04:54:48 +03:00
NotAShelf
eb9fbdc681
engine: fix potential data race when previous state is outdated
2025-05-18 04:48:10 +03:00
NotAShelf
15cdf22557
engine: stronger validation for turbo auto settings thresholds
2025-05-18 04:39:09 +03:00
NotAShelf
4e7b2d405b
config: document default_initial_turbo_state
semantics
2025-05-18 04:29:18 +03:00
NotAShelf
899d24d5c6
engine: optimize turbo state update logic
2025-05-18 04:24:14 +03:00
NotAShelf
535a045e8b
engine: streamline turbo state management
2025-05-18 04:18:29 +03:00
NotAShelf
5f1d2c9748
engine: simplify AC power status determination
2025-05-18 03:58:19 +03:00
NotAShelf
8a92c124b1
engine: simplify default handling
2025-05-18 03:52:21 +03:00
NotAShelf
1655886af0
engine: document data race in initialize_with
2025-05-18 03:44:26 +03:00
NotAShelf
044d6f2fa9
engine: get rid of unnecessary mutex wrapping
...
AtomicBooll in TurboHystersis already provides thread safety
2025-05-18 03:33:33 +03:00
NotAShelf
d671a9c73f
engine: deduplicate on_ac
detection logic
2025-05-18 03:24:25 +03:00
NotAShelf
72c2842227
engine: maintain previous state when CPU data is missing
2025-05-18 03:19:09 +03:00
NotAShelf
c570a327ab
engine: fix race condition
2025-05-18 03:15:34 +03:00
NotAShelf
8866eb4485
cpu: fix turbo management on systems without batteries (desktops)
2025-05-18 02:51:26 +03:00
NotAShelf
ceeb33b17d
docs: update example config
2025-05-18 02:29:45 +03:00
NotAShelf
e6d8f8c2da
engine: allow configuring initial turbo state
2025-05-18 02:25:35 +03:00
NotAShelf
a084f4e7b1
cpu: implement TurboHysteresis for managing turbo boost state
...
Hysteresis mechanism to prevent state bleeding across different
engine instances.
2025-05-18 02:01:53 +03:00
NotAShelf
04b01aa070
cpu: enhance document set_turbo
function and Auto
mode behavior
2025-05-17 19:06:07 +03:00
NotAShelf
a1c8190c28
docs: update minimum required rust version
2025-05-17 19:04:27 +03:00
NotAShelf
9c692dd103
meta: populate Cargo manifest
2025-05-17 19:04:11 +03:00
NotAShelf
aec7c6b9d4
config: set default turbo auto settings
2025-05-17 18:44:31 +03:00
NotAShelf
65e380635f
cpu: remove unused import
2025-05-17 18:27:08 +03:00
NotAShelf
2be0f41924
docs: clarify turbo management options
2025-05-17 17:43:18 +03:00
NotAShelf
cbaab9f160
cpu: simplify turbo management
2025-05-17 17:42:10 +03:00
NotAShelf
806cf64d29
engine: improve atomic operations for turbo state management
2025-05-17 14:25:37 +03:00
NotAShelf
1b31dd9e1e
cli: pad output to prevent misaligned text
2025-05-17 11:48:09 +03:00
NotAShelf
7a708c60d7
docs: mention new configuration options; document dynamic turbo mode
2025-05-17 11:41:42 +03:00
NotAShelf
9935ae9fe3
engine: allow users to explicitly disable auto-turbo
2025-05-17 11:11:24 +03:00
NotAShelf
23c526a61e
cpu: clean up dynamic CPU turbo management
2025-05-17 09:10:38 +03:00
NotAShelf
6ef0a60002
chore: v0.2.0
2025-05-17 08:11:08 +03:00
NotAShelf
c5ec148001
ci: set up build and release workflows
2025-05-17 08:06:14 +03:00
NotAShelf
c57c82ab71
debug: validate output of is_systemd_service_active
2025-05-17 08:00:09 +03:00
NotAShelf
601735957b
main: revert un-idiomatic \err.into()\
pattern
2025-05-17 08:00:09 +03:00
NotAShelf
b170fa0dd0
cli: replace ControlError
with AppError
for error handling
2025-05-17 08:00:09 +03:00
NotAShelf
ef096705fc
main: replace ControlError
with AppError
for invalid platform profile
2025-05-17 08:00:09 +03:00
NotAShelf
e83941d64b
treewide: unify error handling with special error type across modules
2025-05-17 08:00:09 +03:00
raf
506151ac79
Merge pull request #24 from NotAShelf/better-polling
...
daemon: improve adapting polling; more precise math
2025-05-17 06:30:55 +03:00
NotAShelf
862e090bc6
daemon: fix typo in comment
2025-05-17 06:23:07 +03:00
NotAShelf
c046c27376
daemon: prioritize load checks over idle state in system state determination
2025-05-17 06:20:26 +03:00
NotAShelf
f0932c64d9
daemon: prevent busy loops via minimum polling interval
2025-05-17 06:01:00 +03:00
NotAShelf
ff4e6e69c8
daemon: deduplicate idle state check logic
2025-05-17 05:47:39 +03:00
NotAShelf
139746069a
daemon: cross-platform safe arithmetic
2025-05-17 05:39:01 +03:00