Commit graph

62 commits

Author SHA1 Message Date
Vicki Pfau
450541b2bd Import a few more zbus things to reduce namespace line length 2024-07-16 19:16:20 -07:00
Vicki Pfau
af3cb08778 manager: Fix tests hanging (fixes #2)
I'm not 100% sure why this works, but I expect it has to do with messages being sent to D-Bus before the initial handshake is done.
2024-07-15 18:38:13 -07:00
Vicki Pfau
a6f3b37897 manager: Clean up dbus session at end of tests 2024-07-10 18:14:32 -07:00
Jeremy Whiting
93e153079d Rework the CPUGovernors enum a bit.
Change to CPUScalingGovernors and use strum
crate to remove some cruft.
2024-06-28 08:59:11 -06:00
Jeremy Whiting
7f9d25074e Add CPU Scheduler Governors.
Add a new enumeration for cpu scheduler governors.
Adds a property to get the available governors as a map of
value to strings similar to how we expose GPU Power Profiles.
Adds another property to get and set the current governor which
is applied to all cpus when set.
2024-06-28 08:59:08 -06:00
Vicki Pfau
04d4dc74af Run cargo fmt 2024-06-18 18:44:35 -07:00
Vicki Pfau
0f14facac9 manager/user: Add ReloadConfig method 2024-06-17 21:27:56 -07:00
Vicki Pfau
2410334c0b manager: Simplify test setup 2024-06-10 21:35:03 -07:00
Jeremy Whiting
0759ff7077 Add gpu power profile(s) properties.
Add profiles property to give back available
profiles on this device.
Add profile property to get and set current gpu
power profile.
Filter possible properties when on deck.
Get current profile based on position of * character.
Get card0 path based on which cardX has vendor 0x1002
Add some basic tests.
TODO:
Possibly cache available properties instead of fetching repeatedly.
2024-06-05 15:36:41 -06:00
Vicki Pfau
b2f612cd45 manager: Slim down root interface, moving most getters directly to the user interface 2024-05-22 18:39:37 -07:00
Vicki Pfau
8b195ebf4a manager/user: Fix SetFanControlState relay 2024-05-13 18:55:27 -07:00
Vicki Pfau
6cccb333a2 manager: Improve module naming 2024-05-08 16:52:45 -07:00
Renamed from src/user_manager.rs (Browse further)