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
Vicki Pfau
b7b09e6c17
power: Move GPUPerformanceLevel::to_string to Display::fmt
2024-05-22 18:57:16 -07: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
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
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
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
7cd1e7814c
steamosctl: Add HdmiCecState commands
2024-05-09 20:14:35 -07:00
Vicki Pfau
f4247de8c1
lib: Export some modules as pub
2024-05-08 16:52:45 -07:00
Jeremy Whiting
d38aa35e58
steamosctl: Use session bus instead of system bus.
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