Vicki Pfau
50b6fb85b1
process: Executable names should be passed as AsRef<OsStr> instead of &str
2024-08-02 19:11:59 -07:00
Vicki Pfau
4cc4c74ff0
process: script_exit_code should not leak output
2024-08-02 18:59:56 -07:00
Vicki Pfau
370c801796
Cargo.toml: Remove redundant dependency
2024-08-02 18:32:07 -07:00
Vicki Pfau
fb58cd8772
Run cargo fmt
2024-08-02 18:12:25 -07:00
Vicki Pfau
cf9253a709
power: Query GPU clock range from pp_dpm_sclk
2024-08-02 17:22:21 -07:00
Vicki Pfau
6867c4e870
power: Remove inline GPU clock range check, sysfs writes enforce it
2024-08-02 17:21:31 -07:00
Vicki Pfau
fd6d9cbfe0
power: Simplify GPU power profiles parsing with regex
2024-08-02 17:21:29 -07:00
Vicki Pfau
f939767867
wifi: Simplify enums with strum, rename WifiDebugMode::On to Tracing
2024-07-31 21:25:16 -07:00
Vicki Pfau
4efb3572ec
power: Simplify GPUPowerProfile definition with strum
2024-07-31 20:40:27 -07:00
Vicki Pfau
cdc314fb47
xml: Split up Manager interface and mark as deprecated
2024-07-31 19:44:10 -07:00
Vicki Pfau
453a51239f
xml: Move deprecated XML file out of the way
2024-07-31 19:44:10 -07:00
Vicki Pfau
679accbd66
xml: Make documentation consistent and closer to gtk-doc recommendations
2024-07-31 19:44:10 -07:00
Vicki Pfau
126f912781
power: Fix GPUPerformanceLevel enum to match amdgpu definition
2024-07-30 20:33:37 -07:00
Vicki Pfau
8288f56182
Cargo: Update deps
2024-07-30 18:51:14 -07:00
Vicki Pfau
69076acedc
job: Add mirror relay test
2024-07-25 21:29:14 -07:00
Vicki Pfau
90b382cf7e
job: Add service to listen for jobs starting
2024-07-25 21:29:14 -07:00
Vicki Pfau
3c56afe921
job: Add method to mirror jobs from an already-running daemon
2024-07-25 21:29:14 -07:00
Vicki Pfau
0626012748
manager/user: Create mirrored jobs for methods that create jobs on the root manager
2024-07-25 21:29:14 -07:00
Vicki Pfau
35eb5631ff
job: Add job mirroring
2024-07-25 21:29:14 -07:00
Vicki Pfau
ae2351594f
job: Move add_job to separate function
...
Split out the work of creating a new job path in preparation of job mirrors
being added
2024-07-25 21:29:14 -07:00
Vicki Pfau
8e3fc1afeb
job: Add JobManagerInterface to emit JobStarted signal
...
This adds the JobManagerInterface helper object to emit a signal when a job is
started. It also renames the job prefix to be its own path so that the
JobManagerInterface can claim that as an object.
2024-07-25 21:29:14 -07:00
Vicki Pfau
8412adcd4a
power: Clean up CPU sysfs property reading
2024-07-24 21:20:15 -07:00
Vicki Pfau
ffcd702172
Run clang fmt
2024-07-24 21:18:19 -07:00
Vicki Pfau
3c2dd55f87
power: Add basic tests for CPUScalingGovernor getters
2024-07-24 21:17:48 -07:00
Vicki Pfau
63902f8cc9
Run clang fmt
2024-07-24 20:01:33 -07:00
Vicki Pfau
deb8cf620f
power: Add basic tests for GPUPowerProfile getters
2024-07-24 20:01:02 -07:00
Vicki Pfau
d503712f29
hardware: Add tests for FanControl
2024-07-23 20:50:17 -07:00
Vicki Pfau
f6fce8d84a
systemd: Improve test coverage
2024-07-23 20:20:24 -07:00
Vicki Pfau
6e925e91d9
testing: Add subprocess dbus session interface for test isolation
2024-07-23 20:20:24 -07:00
Vicki Pfau
24223a4827
systemd: Fix warning
2024-07-22 19:46:23 -07:00
Vicki Pfau
a7355ab922
systemd: Move EnableState to using strum
2024-07-22 19:43:56 -07:00
Vicki Pfau
bc9cb4d414
job: Make Job struct private
...
This does not need to be public, and nothing was using it.
2024-07-18 16:06:45 -07:00
Vicki Pfau
603cd7217c
job: Split out from process
...
Rename ProcessManager to JobManager, as that's what it really handles. This
also renames get_command_object_path, which actually spawns a job instead of
just getting something. Further, it moves job spawning into the Job object
instead of being a helper function on ProcessManager.
2024-07-16 20:12:26 -07:00
Vicki Pfau
450541b2bd
Import a few more zbus things to reduce namespace line length
2024-07-16 19:16:20 -07:00
Vicki Pfau
7213ea5179
xml: Fix some formatting, add description for UdevEvents.OverCurrent
2024-07-15 18:52:26 -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
b54cb5638a
Use Strum for GPUPerformanceLevel.
...
Can't use it with GPUPowerProfile because one of the sysfs
strings starts with a '3' digit.
2024-06-28 22:52:41 +00:00
Vicki Pfau
336fe1d3be
Run cargo fmt
2024-06-28 15:51:27 -07:00
Vicki Pfau
5e8b4160d2
power: Combine GPU prefix lookups into simpler helpers
...
Previously we had two diferent lookup functions for finding the GPU in
/sys/class/drm/card* and /sys/class/hwmon/hwmon*, but for the former we only
used paths under it in device/. In both these cases, the device/ directory is a
symbolic link to the same directory, so in the case of one AMD GPU in a
machine, these operations were equivalent.
This MR removes the /sys/class/drm version as well as refactoring some of the
utility code to reduce code duplication.
2024-06-28 15:11:50 -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
c75c50762d
Add cpu governor getting and setting to steamosctl.
...
TODO: Need to test this manually but config issues are causing
daemon's to die here currently because of missing paths.
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
71827ac7ee
xml: Fix documentation errors
2024-06-27 22:46:29 -07:00
Vicki Pfau
4dd23fce8e
proxy: Add missing UdevEvents proxy
2024-06-26 20:55:53 -07:00
Vicki Pfau
1892320db7
daemon: Config structs don't need to be Serialize
2024-06-25 19:30:05 -07:00
Vicki Pfau
b9e23b74e2
manager/root: Add a few more tests
2024-06-21 19:10:51 -07: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
cd14f50f68
manager/root: Add ReloadConfig method
2024-06-17 21:12:25 -07:00