1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-28 09:27:44 +00:00
Commit graph

185 commits

Author SHA1 Message Date
b328c948e0
Revert "treewide: finish renaming to Watt"
This reverts commit 5a197951d9.
2025-06-07 00:41:46 +03:00
raf
d33659209e
treewide: finish renaming to Watt (#36) 2025-06-06 16:15:41 +03:00
diniamo
5a197951d9 treewide: finish renaming to Watt 2025-06-06 15:15:00 +02:00
raf
da07011b02
Merge pull request #35 from spikespaz-contrib/u/jacob/flake-output-overlays
flake:  add superfreq and default pkgs to overlay
2025-05-31 23:13:51 +03:00
Jacob Birkett
0f3d5d81dd flake: devShells: use same pkgs as for packages output 2025-05-31 13:11:25 -07:00
raf
71cd443ba7
Merge pull request #34 from spikespaz-contrib/u/jacob/flake-formatter-alejandra
flake: formatter: set to alejandra
2025-05-31 22:54:03 +03:00
Jacob Birkett
3caaa22f3e flake: packages: inherit from default overlay 2025-05-31 12:46:22 -07:00
Jacob Birkett
08c51b6296 flake: overlays: add superfreq and default 2025-05-31 12:46:22 -07:00
Jacob Birkett
6b1af5cbab flake: pkgsForEach: replace legacyPackages with manual import 2025-05-31 12:46:22 -07:00
Jacob Birkett
7b375439bb flake: formatter: set to alejandra 2025-05-31 12:19:50 -07:00
raf
017793288a
Merge pull request #32 from NotAShelf/systems-input
flake: add aarch64-linux to systems
2025-05-21 15:53:08 +03:00
Bloxx12
55e04ea09e
flake: add aarch64-linux to systems 2025-05-21 14:36:24 +02:00
raf
6bdbc7e0ec
debug: use jiff instead of chrono (#30) 2025-05-18 17:32:29 +03:00
bbe0d9dfd3
debug: use jiff instead of chrono 2025-05-18 17:19:59 +03:00
NotAShelf
f88f92fbda
chore: v0.3.2 2025-05-18 16:01:24 +03:00
raf
8e3a87cb04
Merge pull request #28 from NotAShelf/optimize-daemon
daemon: optimize
2025-05-18 16:03:15 +03:00
NotAShelf
32422f2b4f
treewide: streamline error handling; leverage thiserror and anyhow 2025-05-18 15:45:19 +03:00
NotAShelf
99fbfc0ea7
daemon: use internal error types 2025-05-18 14:26:42 +03:00
NotAShelf
38960ce8bc
daemon: don't store unused fields 2025-05-18 14:18:18 +03:00
NotAShelf
747362b88b
daemon: replace debug_assert with an actual error 2025-05-18 13:38:33 +03:00
NotAShelf
58273d89f4
daemon: get rid of config hot-reloading 2025-05-18 13:27:18 +03:00
NotAShelf
ee5bd8f80f
daemon: handle invalid config values gracefully 2025-05-18 12:20:19 +03:00
NotAShelf
fe93a50f9e
treewide: suppress clippy lint about Error suffix 2025-05-18 11:23:37 +03:00
NotAShelf
63cab6e631
daemon: clean up weighted average calculation 2025-05-18 08:36:51 +03:00
NotAShelf
2efc0e1a6b
daemon: use u128 arithmetic to prevent overflow in polling interval calc
Overflows are unlikely to happen, but easy to prevent. Let's fix it while we're at it.
2025-05-18 08:27:53 +03:00
NotAShelf
34862b28e1
daemon: enforce >= 1s minimum interval in clamping 2025-05-18 08:11:46 +03:00
NotAShelf
8c462868b6
daemon: use abs_diff to remove lossy casts 2025-05-18 07:52:32 +03:00
NotAShelf
ad70a85426
daemon: use integer arithmetic to avoid precision loss 2025-05-18 07:43:01 +03:00
NotAShelf
984793d445
daemon: historical interval blending 2025-05-18 07:28:07 +03:00
NotAShelf
6e2d5b33f9
nix: also link superfreq config to /etc 2025-05-18 06:43:51 +03:00
NotAShelf
59d234e3ce
ci: copy assets properly 2025-05-18 06:17:49 +03:00
NotAShelf
094a370422
chore: v0.3.1 2025-05-18 06:07:44 +03:00
raf
8050f91aa8
Merge pull request #27 from NotAShelf/fix-auto-turbo
engine: fix race condition in turbo state init
2025-05-18 06:08:00 +03:00
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