Commit graph

388 commits

Author SHA1 Message Date
Vicki Pfau
f31d76ea53 hardware: Refactor device detection to be more future-proof 2025-03-11 17:35:52 -07:00
Vicki Pfau
7d8bd602a7 hardware: Split out device type detection, add initial identification of Legion Go S 2025-03-11 17:35:52 -07:00
Vicki Pfau
cd9558fd67 hardware: Switch from using board_vendor to sys_vendor 2025-03-11 17:35:52 -07:00
Vicki Pfau
e7b94c28a0 xml: Fix indentation 2025-03-11 17:35:43 -07:00
Vicki Pfau
484f5c43e3 proxy: Remove HardwareCurrentlySupported, which had been removed from the interface 2025-03-11 17:23:59 -07:00
Vicki Pfau
af61f76b89 platform: Add flag for testing validity of executable in root remote 2025-02-25 21:44:58 -08:00
Vicki Pfau
ecb6026370 Run cargo fmt 2025-02-25 01:08:34 -08:00
Vicki Pfau
485ee209e2 manager/user: Check some validity of config before creating interfaces 2025-02-25 01:04:47 -08:00
Vicki Pfau
9ab3f939a0 manager/user: Move adding interfaces that need a config to a separate function 2025-02-25 01:04:08 -08:00
Vicki Pfau
c19a488b62 manager: Hold onto an extra JobManagerMessage sender
Currently the only interfaces that use the job manager are Deck-specific, which
will cause the channel to be dropped early on other hardware. Since it exits
early, the manager sees this as an error condition and exits with a failure
status. By keeping an unused reference to it we can prevent it from being
dropped early.
2025-02-17 19:18:47 -08:00
Vicki Pfau
dedbfd4207 manager: Remove HardwareCurrentlySupported
This value only makes sense for Steam, and since Steam can query it directly,
this removes it from the DBus interface.
2025-02-05 18:11:32 -08:00
Vicki Pfau
cb112711b3 steamosctl: Add reload-config command 2025-02-05 18:08:02 -08:00
Vicki Pfau
406704ab6b Cargo.lock: Update for tag 2025-02-05 18:06:34 -08:00
Vicki Pfau
11cb16ee21 Tag 25.1.1 2025-01-24 18:26:49 -08:00
Vicki Pfau
7b0fa3911d daemon: Fix shutting down on getting SIGTERM 2025-01-24 18:26:22 -08:00
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
2129b641c1 Tag 25.1.0 2025-01-22 18:08:36 -08:00
Vicki Pfau
10a124701f Run cargo fmt 2025-01-22 17:51:35 -08:00
Vicki Pfau
def8d180cb wifi: Set/clear ath11k debug_mask before/after tracing 2025-01-22 17:48:05 -08:00
Vicki Pfau
4f169ce1ea Cargo.lock: Update 2025-01-22 16:29:50 -08:00
Vicki Pfau
7ba4075810 wifi: Fix extract_wifi_trace
Without passing -o, the extraction happens to a predictable file instead of
stdout. This just has it overwrite the dropped tempfile instead.
2025-01-21 18:55:50 -08:00
Vicki Pfau
6596176836 manager/user: Fix set/get_wifi_backend 2025-01-21 18:53:14 -08:00
Vicki Pfau
91890e5948 manager/user: Add BatteryChargeLimit1 interface (#12) 2025-01-21 17:31:51 -08:00
Vicki Pfau
02ed562bd0 Run cargo fmt 2025-01-21 17:24:56 -08:00
Vicki Pfau
2547b8d0ef testing: Use local tcp session for DBus to avoid leftover socket files 2025-01-21 17:16:22 -08:00
Vicki Pfau
54351414fa wifi: Add method for generating and capturing an ath11k dump 2025-01-21 16:45:33 -08:00
Vicki Pfau
7b7afffc46 manager: Expose new CaptureDebugTraceOutput method 2025-01-21 16:45:33 -08:00
Vicki Pfau
a2af4d1bc5 Cargo.toml: Update to zbus 5 2024-11-13 23:27:19 -08:00
Vicki Pfau
bdb2d26e2f Cargo.lock: Update 2024-11-13 23:23:53 -08:00
Jeremy Whiting
1a491db6fe Don't set wifi debug mode if it isn't changing.
Since set_wifi_debug_mode always restarts iwd which
has unintentional consequences on oled deck (destroys and recreates
the network interface) but not on lcd deck first check
if previous mode is different than wanted mode before doing
anything.

See https://gitlab.steamos.cloud/holo/holo/-/merge_requests/747/diffs#2790dcf348b51beca93939ee9fd81f87566d57c9_0_29
for more information.
2024-11-13 08:46:28 -07:00
Vicki Pfau
2f4cfb1e66 Proxy: Fix up straggler interface names
A handful of interface names got updated but the XML and implementations got
out of sync. This fixes that, as well as adding some missing comments and
fixing formatting in the XML.
2024-11-07 17:46:38 -08:00
Jeremy Whiting
f7bfdd7d7a Add steamos-reset-tool usage.
Instead of using steamos-factory-reset-config which resets both
the OS and the user home partitions use steamos-reset-tool which
has arguments for each or resetting both.
2024-10-24 12:55:53 -06:00
Vicki Pfau
c62b244d24 Cargo.lock: Update 2024-10-10 17:17:24 -07:00
Vicki Pfau
93878bbe8e hardware: Switch another enum to strum 2024-10-07 19:20:14 -07:00
Jeremy Whiting
a386aaafb5 Fix new warning from upcoming deprecation.
Since new rustc warns that ! will not decay into () anymore, we need
to help the compiler know what types it will be getting from method!
macro in 2 places where we call it from set_wifi_debug_mode.

https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html
has information about the new warning.

Here's the warning we hit without this change:

warning: this function depends on never type fallback being `()`
   --> src/manager/user.rs:189:5
    |
189 | /     async fn set_wifi_debug_mode(
190 | |         &self,
191 | |         mode: u32,
192 | |         buffer_size: u32,
193 | |         #[zbus(signal_context)] ctx: SignalContext<'_>,
194 | |     ) -> fdo::Result<()> {
    | |________________________^
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
    = help: specify the types explicitly
note: in edition 2024, the requirement `!: zbus::zvariant::Type` will fail
   --> src/manager/user.rs:40:14
    |
40  |             .call($method, &($($args,)*))
    |              ^^^^
...
195 |         method!(self, "SetWifiDebugMode", mode, buffer_size)?;
    |         ---------------------------------------------------- in this macro invocation
    = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
    = note: this warning originates in the macro `method` (in Nightly builds, run with -Z macro-backtrace for more info)
2024-10-07 18:36:59 -06:00
Jeremy Whiting
ef00a32756 Fix typo in valid values in steamosctl for wifi debug modes.
WifiDebugMode is either off or tracing, no more on value.
2024-09-29 06:51:29 -06:00
Vicki Pfau
b71ccfcc92 Use num_enum instead of home-rolled TryFrom definitions 2024-09-19 20:20:17 -07:00
Vicki Pfau
111498513b Run cargo fmt 2024-09-09 20:05:02 -07:00
Vicki Pfau
fb6e86d5e8 Fix some clippy warnings 2024-09-09 20:00:53 -07:00
Vicki Pfau
bdd095860e power: Allow returned GPU clocks range to overridden by a platform config 2024-09-06 16:35:18 -07:00
Vicki Pfau
7c3f2baa05 power: Expose TDP limit range as platform config 2024-09-06 16:35:18 -07:00
Vicki Pfau
36e88484a4 udev: Rename to UdevEvents1 and move to root manager 2024-09-04 20:17:31 -07:00
Vicki Pfau
4b194774af testing: Also compare D-Bus signals, if present 2024-09-04 20:09:38 -07:00
Vicki Pfau
69741facf5 testing: Small cleanup 2024-09-04 19:59:59 -07:00
Vicki Pfau
68877c74d2 gitlab-ci: Add fmt check stage 2024-09-04 19:30:18 -07:00
Vicki Pfau
fc9747a114 wifi: Add power management tests 2024-09-03 21:27:37 -07:00
Vicki Pfau
b8f3f79e0b clippy: Fix more pedantic warnings 2024-08-30 22:30:14 -07:00
Vicki Pfau
d1f27cc5fc wifi: Remove leftover debug printlns 2024-08-30 22:29:57 -07:00
Vicki Pfau
127eab4863 Fix some clippy::pedantic warnings 2024-08-30 16:52:17 -07:00
Vicki Pfau
d3152cb38d steamosctl: Make doc comments consistently formatted 2024-08-30 16:50:59 -07:00