Commit graph

332 commits

Author SHA1 Message Date
Vicki Pfau
2410334c0b manager: Simplify test setup 2024-06-10 21:35:03 -07:00
Vicki Pfau
6dc04e70d2 udev: Add udev listener service
This service lives in the user daemon and has the path
/com/steampowered/SteamOSManager1/UdevEvents
2024-06-10 20:55:43 -07:00
Vicki Pfau
67736cef01 thread: Add AsyncJoinHandle for waiting on threads asynchronously 2024-06-10 20:50:57 -07:00
Vicki Pfau
2f784f9741 daemon: Add config loading 2024-06-11 03:38:21 +00:00
Vicki Pfau
1a69cce50b daemon: Allow context-specific commands on the message channel 2024-06-11 03:38:21 +00:00
Vicki Pfau
b582d51c90 daemon: Add message channel for sending commands to the daemon object 2024-06-11 03:38:21 +00:00
Vicki Pfau
c6113ee739 daemon: Start bringing up contexts and state loading/saving 2024-06-11 03:38:21 +00:00
Vicki Pfau
23267c65e0 daemon: Start restructuring config reloading 2024-06-11 03:38:21 +00:00
Jeremy Whiting
f30c54c907 Add gpu power profile(s) property management to steamosctl.
Adds get-gpu-power-profiles to list supported profiles
get-gpu-power-profile to list current and
set-gpu-power-profile to set.
2024-06-05 15:38:25 -06: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
Jeremy Whiting
8c1baa152b Update the proxy to match the xml.
Depending when this lands we may need to do it again.
2024-06-04 15:31:47 -06:00
Vicki Pfau
788cf884bf Run cargo fmt 2024-05-30 16:54:14 -07:00
Vicki Pfau
922ba006ae power: Improve GPU test reliability 2024-05-30 01:41:20 -07:00
Vicki Pfau
32d31e9d27 cec: Add enum round-trip tests 2024-05-27 19:38:14 -07:00
Vicki Pfau
8769298416 Run cargo fmt 2024-05-24 15:40:31 -07:00
Vicki Pfau
98f402c33c power: Add enum round-trip tests 2024-05-24 15:10:45 -07:00
Vicki Pfau
bf2762cc67 hardware: Add enum round-trip tests 2024-05-24 15:10:36 -07:00
Vicki Pfau
89a757b7fc wifi: Add enum round-trip tests 2024-05-23 19:39:06 -07:00
Vicki Pfau
b7b09e6c17 power: Move GPUPerformanceLevel::to_string to Display::fmt 2024-05-22 18:57:16 -07: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
Vivek Das Mohapatra
03b3c032d3 CI: Use condensed runner tag 2024-05-22 17:28:57 +01:00
Jeremy Whiting
f6298efbc9 Tweak the Subprocess api a bit.
From feedback from Andres changed SubProcess to just Job for
possible further changes to have the manager do things itself
without launching subprocesses.
Changed names objectpath to jobpath, exit_code to result, etc.
Removed Kill and added a force parameter to Cancel instead.
Also ran cargo fmt which tweaked indentation in a couple places.
Alos removed ExitCode, users can just call Wait again if needed.
2024-05-22 01:30:24 +00:00
Vicki Pfau
6e51d1556b Merge README.md and HACKING.md and fix up some rewrite issues 2024-05-20 21:02:13 -07:00
Andres
56323bcf21 Update README.md 2024-05-17 19:32:27 +00:00
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