Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
87085f9
cpu: clean up, clean main too
RGBCube May 18, 2025
d0932ae
battery: clean up, rename to power_supply
RGBCube May 18, 2025
baef8af
cli: remove governor_persist
RGBCube May 18, 2025
6377480
power_supply: don't ignore non-batteries
RGBCube May 18, 2025
6ef4da9
power_supply&cpu: use objects
RGBCube May 19, 2025
004e8e2
cpu: impl Display for Cpu
RGBCube May 19, 2025
a14d88c
wip unsound broken malfunctioning changes to make it compile
RGBCube May 19, 2025
0ed0f18
main: delete historical logging code
RGBCube May 19, 2025
2704379
power_supply: add derives to PowerSupply
RGBCube May 19, 2025
2995909
power_supply: rename is_battery to get_type and don't compare the type
RGBCube May 19, 2025
0d3a88b
config: nuke old config and implement a new system
RGBCube May 19, 2025
c073b64
config: fix schema, toml does not have top level lists
RGBCube May 19, 2025
ca4b1db
main: move application to deltas, comment out broken modules for now
RGBCube May 19, 2025
b6d4e09
power_supply&cpu: somewhat improve error messages
RGBCube May 19, 2025
f381323
power_supply&cpu: kolor
RGBCube May 19, 2025
0de8105
config: better more enhanched expression
RGBCube May 19, 2025
606cedb
daemon: wip new impl
RGBCube May 19, 2025
4fa59b7
daemon: implement polling_interval
RGBCube May 20, 2025
c062327
daemon: delete some old code and create daemon scaffold
RGBCube May 20, 2025
91cef3b
cpu&power: share fs impls
RGBCube May 20, 2025
543e5a0
fs: fix read() typesig
RGBCube May 20, 2025
137f801
cpu&power: add more attributes
RGBCube May 20, 2025
1ab9ace
cpu: cpu times
RGBCube May 20, 2025
058ef99
cpu: add TODO
RGBCube May 20, 2025
a514f1b
main: use yansi::whenever
RGBCube May 20, 2025
2309678
monitor: delete old code
RGBCube May 20, 2025
d872371
cpu: store frequency
RGBCube May 21, 2025
961d1df
cpu: store governor and available governors
RGBCube May 21, 2025
99feb83
cpu: store EPP and EPB
RGBCube May 21, 2025
07ca582
cpu: set_ep{p,b} actually sets the attributes now
RGBCube May 22, 2025
571f172
cpu: add global turbo querying
RGBCube May 22, 2025
4763b54
cpu: add usage percent
RGBCube May 22, 2025
004b879
power_supply: add more stuff and store them
RGBCube May 22, 2025
a343e38
system: is_ac
RGBCube May 22, 2025
2812baa
system: check for chassis type 31 and move power saving check below
RGBCube May 27, 2025
fd3ae29
cpu: cache /proc/stat
RGBCube May 28, 2025
421d4aa
cpu: wip temperature scanning, waiting for raf to stand up from his d…
RGBCube May 28, 2025
303a844
system: cpu temperatures scanning
RGBCube Jun 4, 2025
ee7ea6b
cpu: add cpu info scanning
RGBCube Jun 4, 2025
1283e5b
delete core.rs
RGBCube Jun 4, 2025
c2325fa
daemon: set charging
RGBCube Jun 4, 2025
7503e23
daemon: add eval
RGBCube Jun 4, 2025
008e05b
cpu: use only recent cpu log entries for calculating volatility
RGBCube Jun 4, 2025
a25ae59
package: rename to watt
RGBCube Jun 4, 2025
b6dd9e7
package: make multicall
RGBCube Jun 4, 2025
917ed77
config: fix serde
RGBCube Jun 4, 2025
2c154cd
expr: strict eval
RGBCube Jun 4, 2025
0e8b402
config: rename rule condition field
RGBCube Jun 4, 2025
3e235c0
daemon: merge cpu deltas
RGBCube Jun 4, 2025
841ea83
system: trim prefixes properly when scanning labels
RGBCube Jun 5, 2025
da3f793
treewide: finish rename
RGBCube Jun 6, 2025
84154fe
treewide: fix typos
RGBCube Jun 6, 2025
661d608
config: add default
RGBCube Jun 11, 2025
c50f5c8
config: integrate default config
RGBCube Jun 11, 2025
100e90d
config: add debug logs
RGBCube Jun 11, 2025
1ba5a1d
daemon: add logs
RGBCube Jun 11, 2025
f7f738c
daemon: more logs
RGBCube Jun 11, 2025
ce83ba3
system: add logs
RGBCube Jun 11, 2025
86b2f55
monitor&engine: delete
RGBCube Jun 12, 2025
fb5ef3d
system: fix thermal zone scanning
RGBCube Jun 12, 2025
e9e1df9
treewide: toml and rust formatter changes
RGBCube Jun 12, 2025
496f5a7
system: update debug log
RGBCube Jun 13, 2025
6ea92c1
address review comments
RGBCube Jun 14, 2025
b4e5dd7
fmt: remove ads (wtf!!)
RGBCube Jun 14, 2025
3c82679
build.rs: remove
RGBCube Jun 14, 2025
a341d08
watt: turn into a library
RGBCube Jun 14, 2025
0e07241
xtask: add completion generation
RGBCube Jun 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
xtask = "run --package xtask --"
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
name: superfreq-linux-amd64
name: watt-linux-amd64
cross: false
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
name: superfreq-linux-arm64
name: watt-linux-arm64
cross: true

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -88,16 +88,15 @@ jobs:
uses: robinraju/release-downloader@v1
with:
tag: ${{ github.ref_name }}
fileName: "superfreq-*"
fileName: "watt-*"
out-file-path: "."

- name: Generate checksums
run: |
sha256sum superfreq-* > SHA256SUMS
sha256sum watt-* > SHA256SUMS

- name: Upload Checksums
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: SHA256SUMS

27 changes: 27 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# float_literal_trailing_zero = "Always" # TODO: Warning for some reason?
condense_wildcard_suffixes = true
doc_comment_code_block_width = 80
edition = "2024" # Keep in sync with Cargo.toml.
enum_discrim_align_threshold = 60
force_explicit_abi = false
force_multiline_blocks = true
format_code_in_doc_comments = true
format_macro_matchers = true
format_strings = true
group_imports = "StdExternalCrate"
hex_literal_case = "Upper"
imports_granularity = "Crate"
imports_layout = "Vertical"
inline_attribute_width = 60
match_block_trailing_comma = true
max_width = 80
newline_style = "Unix"
normalize_comments = true
normalize_doc_attributes = true
overflow_delimited_expr = true
struct_field_align_threshold = 60
tab_spaces = 2
unstable_features = true
use_field_init_shorthand = true
use_try_shorthand = true
wrap_comments = true
13 changes: 13 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[formatting]
align_entries = true
column_width = 100
compact_arrays = false
reorder_inline_tables = true
reorder_keys = true

[[rule]]
include = [ "**/Cargo.toml" ]
keys = [ "package" ]

[rule.formatting]
reorder_keys = false
Loading