Commit graph

21 commits

Author SHA1 Message Date
Vicki Pfau
6e3ac42e8e power: Split out from manager 2024-04-02 18:20:09 -07:00
Vicki Pfau
309f2acc1b wifi: Split out from manager 2024-04-02 18:20:09 -07:00
Vicki Pfau
0d90859841 process: Split out from manager 2024-04-02 18:20:09 -07:00
Vicki Pfau
3565886d3f Turn galileo detection into generalized model detection 2024-03-29 14:59:48 -07:00
Vicki Pfau
fab64e1ff7 Replace sysbase function with passing the path to a function 2024-03-25 15:43:26 -07:00
Vicki Pfau
194a3f2c01 Merge branch 'endrift/merge' into 'master'
Merge steamos-workerd in

See merge request holo/steamos-manager!12
2024-03-25 21:52:54 +00:00
Vicki Pfau
83e9de9bcb Merge steamos-workerd in 2024-03-22 19:31:38 -07:00
Vicki Pfau
3c3505c311 Move license text to LICENSE file 2024-03-22 19:24:18 -07:00
Vicki Pfau
f8d390d6ff Update copyrights 2024-03-20 18:13:58 -07:00
Vicki Pfau
cdf4297f9f main: Wait on ctrl-c 2024-03-20 18:13:58 -07:00
Vicki Pfau
96efd91228 Clean up logging 2024-03-19 18:02:17 -07:00
Vicki Pfau
2e55bc2330 manager: Clean up non-idiomatic code 2024-03-19 17:46:41 -07:00
Jeremy Whiting
97a79c6713 general: Use SMManager::default() instead of ::new() in main.
Signed-off-by: Jeremy Whiting <jeremy.whiting@collabora.com>
2024-02-06 10:15:09 -07:00
Jeremy Whiting
cd241445b4 wifidebug: Add some iwd override and a way to enable/disable.
Adds set_wifi_debug_mode to enable or disable wifi debug mode.
Parameters are
mode (0 for off, 1 for on for now, expandable in the
future if more modes are needed).
buffer_size: a size in kilobytes per cpu (so 16 on the deck)
for the ring buffer that debug messages will get written into.

For now just adds or removes a iwd debug mode override and restarts
iwd.
next will add some trace-cmd commands to write the debug messages
to a file on disk.

Signed-off-by: Jeremy Whiting <jeremy.whiting@collabora.com>
2024-02-05 10:59:25 -07:00
Jeremy Whiting
0c4b661d16 Run cargo fmt --all.
Fixes code styling in all source files.
2023-11-15 16:05:54 -07:00
Jeremy Whiting
d74c7ae319 Change to tokio instead of async-std. 2023-10-18 13:42:15 -06:00
Jeremy Whiting
741c5b5ce4 Use the system bus.
Added a dbus service file so we can own the
com.steampowered.SteamOSManager1 name.
Also added a systemd service file
Also add a dbus .conf file to allow any process to talk
to manager for now.
2023-10-17 12:26:26 -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