Commit graph

22 commits

Author SHA1 Message Date
Vicki Pfau
79716db2e0 udev: Use new udev 0.9.3 version to vastly simplify udev code 2025-01-24 18:21:58 -08:00
Vicki Pfau
127eab4863 Fix some clippy::pedantic warnings 2024-08-30 16:52:17 -07:00
Vicki Pfau
6c485684b8 config: Allow config fragment loading code to be used generically 2024-08-29 20:06:27 -07:00
Vicki Pfau
77975d9308 platform: Bring up platform configurations with script replacement, Steam Deck only for now 2024-08-14 18:48:34 -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
0c05b760ed Actually commit correct file this time... 2024-06-13 14:37:55 -07:00
Vicki Pfau
6285530a4a Run cargo fmt 2024-06-13 14:34:36 -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
23267c65e0 daemon: Start restructuring config reloading 2024-06-11 03:38:21 +00: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
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
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
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
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
Jeremy Whiting
92325cde43 Remove lib.rs for now. Can add it back later with a better name.
If we end up able to abstract some of these apis with a struct like
we have in lib.rs will add back with a better name at that point.
2023-10-04 21:13:17 -06:00
Jeremy Whiting
701ff23987 Add initial dbus interface xml descripiton.
Much of this will change, but needed something to start with.
Based on notes at https://gitlab.steamos.cloud/jupiter/tasks/-/issues/894
Use objectserver to get introspection done for us.
Change to session bus for now since system bus will need
a config file to allow us to take the name. Will add later.
Implement one quick say_hello dbus method to start.
Add copyright headers.
2023-09-29 13:01:33 -06:00
Jeremy Whiting
f2133a5256 More stuff implemented.
Use zbus to register the bus name.
Use async_std to get dbus session connection.
Added missing interface_name in SmDbusApi.
Removed parameters from SmDbusApi since those are passed, but not
kept with the method definition, etc.
2023-09-05 13:09:54 -06:00
Jeremy Whiting
666ac09607 Some basic structure.
Added some structures, enums, etc. to hold the data we will need.
Added an initialize_apis that only looks for config files so far.

TODO:
Use zbus to create our service, register the name, etc. to start.
Decide on a config file format (maybe after getting some zbus
details fleshed out and knowing better what will fit well)
Add error messages and don't fail on errors, just log them.
2023-09-03 09:23:28 -06:00