Commit graph

358 commits

Author SHA1 Message Date
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
Vicki Pfau
4c81c92586 wifi: Properly parse all NM config files for backend
Previously there was a half-baked parser that looked for a fixed value in a
fixed place, but this was not robust. This approach is properly robust, in case
various different files set or override it.
2024-08-29 20:12:45 -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
2d4647a918 manager/user: Rename GpuTdpLimit1 to TdpLimit1 2024-08-29 01:48:06 +00:00
Vicki Pfau
6815b7d695 Run cargo fmt 2024-08-27 19:53:55 -07:00
Vicki Pfau
6a08ce823e job: Rename DBus interfaces Job and JobManager to Job1 and JobManager1 2024-08-27 19:43:57 -07:00
Vicki Pfau
39ea3b0d41 Clean up flaky tests to be more reliable 2024-08-24 00:32:56 -07:00
Vicki Pfau
a54e3d0c55 proxy: Update AmbientLightSensor1 definition 2024-08-21 22:50:05 -07:00
Vicki Pfau
eb7a136834 Run cargo fmt 2024-08-21 22:37:09 -07:00
Vicki Pfau
95e4e30fdc manager/user: Only enable WifiPowerManagement1 if a wireless interface exists 2024-08-22 03:27:17 +00:00
Vicki Pfau
4f9f0f8e1d manager/user: Only enable WifiDebug1 if running on Galileo 2024-08-22 03:27:17 +00:00
Vicki Pfau
1de2109c6d manager/user: Only enable HdmiCec1 if plasma-remotecontrollers.service exists 2024-08-22 03:27:17 +00:00
Vicki Pfau
7dc0d0969d hardware: Let fan control be configured and disabled 2024-08-22 03:27:17 +00:00
Vicki Pfau
92235d0f47 manager/user: Remove GetAlsIntegrationTimeFileDescriptor for now
It is currently unused and unknown if it will be used. We can add it back later
if we need to, but cannot remove it after stabilizing the API, so let's just
remove it for now
2024-08-20 20:12:08 -07:00
Vicki Pfau
84a44a879f manager: Expand AmbientLightSensor1 to allow for querying systems with multiple sensors 2024-08-20 20:12:08 -07:00
Vicki Pfau
064207ed76 systemd: Move dead code warning overrides to be more specific 2024-08-15 21:06:24 -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
d465bc2750 TryFrom on enums should use anyhow::Error as the error type 2024-08-13 22:30:23 -07:00
Vicki Pfau
3cd834b385 process: Fix build 2024-08-13 21:39:43 -07:00
Vicki Pfau
bcab18c5fb process: Clean up P: AsRef<> into impl AsRef<> where applicable 2024-08-13 21:34:41 -07:00
Vicki Pfau
cefba9704e manager/root: Fix NetworkManager config path in tests 2024-08-13 20:41:11 -07:00
Vicki Pfau
f2cf6d87fe manager/user: Make GPU interfaces optional 2024-08-13 20:16:14 -07:00
Vicki Pfau
53754680c1 power: Make test::setup return a Result 2024-08-13 20:15:10 -07:00
Vicki Pfau
0b3a8138e1 manager/user: Hide AmbientLightSensor1 if running not on a Deck 2024-08-12 20:19:04 -07:00
Vicki Pfau
3dfcb471cb job: Executable names should be passed as AsRef<OsStr> instead of &str 2024-08-12 18:28:36 -07:00
Vicki Pfau
5ae82fa01f wifi: Update config file filenames 2024-08-12 18:01:59 -07:00
Vicki Pfau
a3503282b8 Unify spelling of Wi-Fi in user-facing strings 2024-08-09 19:13:00 -07:00
Vicki Pfau
90582f5eb6 wifi: Switch from iwconfig to iw, don't hardcode interfaces 2024-08-09 18:56:49 -07:00
Vicki Pfau
a41264635b Run cargo fmt 2024-08-08 21:07:58 -07:00
Vicki Pfau
08bea0d89f manager/user: Remove redundant conversions from zbus::Error to itself 2024-08-08 20:36:56 -07:00
Vicki Pfau
ad16c615e9 manager/user: Fix GpuPerformanceLevel1.ManualGpuClock setter 2024-08-08 20:24:17 -07:00