Commit graph

458 commits

Author SHA1 Message Date
Andres
864a4fd587 Update README.md 2024-05-17 19:31:27 +00:00
Jeremy Whiting
41de4f9a8b Fix clippy warnings about not needing .to_string() anymore.
Since these types implement Display now we no longer need
.to_string().
2024-05-17 09:40:22 -06:00
Vicki Pfau
6cf7c1b5d3 Revamp README and HACKING to be more fleshed out and up-to-date 2024-05-15 16:49:30 -07:00
Vicki Pfau
a6d4677bf2 Merge branch 'work/whiting/removeoldscripts' into 'master'
Remove old scripts.

See merge request holo/steamos-manager!25
2024-05-15 23:35:01 +00:00
Jeremy Whiting
e0f9019172 Update the README file with how things have changed lately.
Most of the text of the README was written before we landed on
not using a config file for each api to make it a simple jump table.
Also added some bits about user daemon vs root daemon.
2024-05-15 08:30:09 -06:00
Jeremy Whiting
fe2475a4eb Remove old scripts.
The functionality of these is all included in steamosctl.
2024-05-15 08:29:22 -06:00
Vicki Pfau
579e024fa2 Cargo.toml: Tag 24.5.1 2024-05-14 18:10:17 -07:00
Vicki Pfau
7771011c66 Cargo.toml: zbus 4.2.1 is out, fixes needed issue 2024-05-14 18:09:54 -07:00
Vicki Pfau
80c598ce68 Merge branch 'endrift/steamosctl-cleanup' into 'master'
steamosctl cleanup

See merge request holo/steamos-manager!24
2024-05-15 01:05:17 +00:00
Vicki Pfau
4f84b48225 steamosctl: Give human-readable results for property names 2024-05-13 18:55:38 -07:00
Vicki Pfau
d027445d9d steamosctl: Use more enums instead of u32 where applicable 2024-05-13 18:55:38 -07:00
Vicki Pfau
936bdb220c wifi: Add WifiDebugMode::from_str and WifiPowerManagement::from_str 2024-05-13 18:55:38 -07:00
Vicki Pfau
20227416e1 power: Make GPUPerformanceLevel::from_str implementation consistent with others 2024-05-13 18:55:38 -07:00
Vicki Pfau
fbfb07e684 hardware: Add FanControlState::from_str 2024-05-13 18:55:38 -07:00
Vicki Pfau
d7b391b432 cec: Add HdmiCecState::from_str 2024-05-13 18:55:38 -07:00
Vicki Pfau
e25b1a7ca7 steamosctl: Use GPUPerformanceLevel where applicable 2024-05-13 18:55:38 -07:00
Vicki Pfau
d8cbf1d1c4 steamosctl: Use WifiBackend as the argument type directly 2024-05-13 18:55:38 -07:00
Vicki Pfau
fa80c861ad steamosctl: Make -a into get-all-properties command instead of a flag 2024-05-13 18:55:38 -07:00
Vicki Pfau
01b50984a4 steamosctl: Remove unneeded empty variants 2024-05-13 18:55:38 -07:00
Vicki Pfau
bfcdf96301 steamosctl: Fix up documentation and remove extraneous flag syntax 2024-05-13 18:55:38 -07:00
Vicki Pfau
8b195ebf4a manager/user: Fix SetFanControlState relay 2024-05-13 18:55:27 -07:00
Vicki Pfau
7cd1e7814c steamosctl: Add HdmiCecState commands 2024-05-09 20:14:35 -07:00
Vicki Pfau
265d82a300 ds_inhibit: Bump test timer 2024-05-09 19:37:02 -07:00
Vicki Pfau
d40562b0dc ds_inhibit: Use tokio::time::sleep instead of std:🧵:sleep, fix up tests 2024-05-09 19:21:00 -07:00
Vicki Pfau
95671ebce7 Merge branch 'endrift/cleanup' into 'master'
Minor cleanup

See merge request holo/steamos-manager!23
2024-05-10 00:53:41 +00:00
Vicki Pfau
6cccb333a2 manager: Improve module naming 2024-05-08 16:52:45 -07:00
Vicki Pfau
dc7de16137 daemon: Improve module naming 2024-05-08 16:52:45 -07:00
Vicki Pfau
5efb67f15c proxy: Add missing default_service for SubProcess 2024-05-08 16:52:45 -07:00
Vicki Pfau
58223d988b Clean up zbus::fdo into fdo where possible 2024-05-08 16:52:45 -07:00
Vicki Pfau
fd500229d6 error: Split out error utils into a separate module 2024-05-08 16:52:45 -07:00
Vicki Pfau
f4247de8c1 lib: Export some modules as pub 2024-05-08 16:52:45 -07:00
Vicki Pfau
2977731fca user: Clean up init 2024-05-08 16:52:45 -07:00
Vicki Pfau
9e0338e189 process: Fix tests 2024-05-08 16:52:29 -07:00
Vicki Pfau
66a9008d84 process: Improve signal handling, don't wait for process in exit_code 2024-05-08 16:39:14 -07:00
Jeremy Whiting
4a6975281e Merge branch 'ci-update' into 'master'
Move CI to isolated runner(s)

See merge request holo/steamos-manager!20
2024-05-08 17:09:39 +00:00
Jeremy Whiting
f6398b0c8e Merge branch 'work/whiting/steamosctl' into 'master'
Add a steamosctl utility to call dbus api from command line.

See merge request holo/steamos-manager!22
2024-05-07 23:31:07 +00:00
Jeremy Whiting
d38aa35e58 steamosctl: Use session bus instead of system bus. 2024-05-07 16:42:44 -06:00
Jeremy Whiting
4553b29795 Also bump version to 24.5.0 for next release. 2024-05-07 16:42:44 -06:00
Jeremy Whiting
716f1d0e4d Add commands for updatebios|dock, trim devices and factory reset. 2024-05-07 16:42:44 -06:00
Jeremy Whiting
1fa25aaa41 Add get property commands for each property. 2024-05-07 16:42:42 -06:00
Jeremy Whiting
d8b689ae50 Add set commands for tdp limit, gpu performance, etc.
Also GPU manual clock and wifi power management state.
Some of these aren't currently working on latest main image
but it seems some of the sysfs paths have changed somehow...
2024-05-07 16:38:58 -06:00
Jeremy Whiting
6e8e36b053 Sort properties when steamosctl -a is used.
To make the output easier to parse as users sort by key.
2024-05-07 16:36:56 -06:00
Jeremy Whiting
8788e99245 Add steamosctl.
Add a second binary which is a command-line utility to get and set
the properties of the DBus api.
Add commands to set wifi debug mode and backend.
2024-05-07 16:36:54 -06:00
Vivek Das Mohapatra
7af9f08a60 Move CI to isolated runner(s) 2024-05-07 13:42:15 +01:00
Vicki Pfau
c3011c93aa Cargo.toml: Run cargo update 2024-05-06 15:09:04 -07:00
Jeremy Whiting
b62ae4841d Merge branch 'work/whiting/cancellable' into 'master'
Add a ProcessManager so we can cancel/pause/resume.

See merge request holo/steamos-manager!16
2024-05-06 21:00:51 +00:00
Jeremy Whiting
9e55f946f3 Fix user_manager test by adding mismatched return types.
Also add a note in failing argument length test about which
method we are checking for easier finding the problems.
2024-05-06 14:56:58 -06:00
Jeremy Whiting
88ce0ee123 Change a bit to have separate SubProcess vs ProcessManager.
Keep next_process, connection, etc. in ProcessManager instead
of SteamOSManager.
Also change exit_code to only give the exit code if known.
Added wait to do the wait and get the proper
exit code on completion.
Also added libc::pid_t use in process.rs.
2024-05-06 14:44:13 -06:00
Jeremy Whiting
cf1bf84d30 ProcessManager: Add some tests for various ProcessManager functions.
Keep track of whether we paused or resumed processes.
Don't try to wait for a paused process when exit_code() is called.
Make sure pause/resume work as expected, and error when expected.
2024-05-06 14:43:34 -06:00
Jeremy Whiting
c49426f6af ProcessManager: Add a ProcessManager so we can cancel/pause/resume.
In order to be able to pause/resume/cancel some operations
that could take some time we need to keep track of those processes
and give callers an id to pause/resume/cancel them with later.

In these long running cases, return an object path that can be used
to pause/resume/cancel when told to.

TODO:
- Add some tests and manually test that the right things happen
2024-05-06 14:43:32 -06:00