Commit graph

62 commits

Author SHA1 Message Date
Vicki Pfau
45edfe2c7c power: Add interface for accessing platform-profiles 2025-04-09 17:50:33 -07:00
Vicki Pfau
93a78041fb power: Change range values from tuple to RangeInclusive 2025-03-20 17:34:57 -07:00
Vicki Pfau
2555b95258 manager/user: Expose device and variant info over DBus 2025-03-13 16:30:08 -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
af61f76b89 platform: Add flag for testing validity of executable in root remote 2025-02-25 21:44:58 -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
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
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
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
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
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
127eab4863 Fix some clippy::pedantic warnings 2024-08-30 16:52:17 -07:00
Vicki Pfau
2d4647a918 manager/user: Rename GpuTdpLimit1 to TdpLimit1 2024-08-29 01:48:06 +00:00
Vicki Pfau
39ea3b0d41 Clean up flaky tests to be more reliable 2024-08-24 00:32:56 -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
77975d9308 platform: Bring up platform configurations with script replacement, Steam Deck only for now 2024-08-14 18:48:34 -07:00
Vicki Pfau
f2cf6d87fe manager/user: Make GPU interfaces optional 2024-08-13 20:16:14 -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
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
Vicki Pfau
5e828efdfa manager/user: Move relevant methods to GpuTdpLimit1, update as specified 2024-08-06 19:15:40 -07:00
Vicki Pfau
576135cd7a manager/user: Move relevant methods to WifiDebug1, update as specified 2024-08-06 19:15:40 -07:00
Vicki Pfau
4f3a5547d6 manager/user: Move relevant methods to GpuPerformanceLevel1, update as specified 2024-08-06 19:15:40 -07:00
Vicki Pfau
fc25da30af manager/user: Move relevant methods to GpuPowerProfile1, update as specified 2024-08-06 19:15:40 -07:00
Vicki Pfau
41382c7158 manager/user: Move relevant methods to Manager2, update as specified 2024-08-06 19:15:40 -07:00
Vicki Pfau
a661df64a1 manager/user: Move trivial changes to new interfaces 2024-08-06 19:15:40 -07:00
Vicki Pfau
c75ac60c9d manager/user: Move interface setup to manager module 2024-08-06 19:15:40 -07:00
Vicki Pfau
5ddb709f0b testing: Refactor interface comparison code out for future use 2024-08-06 19:15:40 -07:00
Vicki Pfau
fb58cd8772 Run cargo fmt 2024-08-02 18:12:25 -07:00
Vicki Pfau
cf9253a709 power: Query GPU clock range from pp_dpm_sclk 2024-08-02 17:22:21 -07:00
Vicki Pfau
453a51239f xml: Move deprecated XML file out of the way 2024-07-31 19:44:10 -07:00
Vicki Pfau
90b382cf7e job: Add service to listen for jobs starting 2024-07-25 21:29:14 -07:00
Vicki Pfau
3c56afe921 job: Add method to mirror jobs from an already-running daemon 2024-07-25 21:29:14 -07:00
Vicki Pfau
0626012748 manager/user: Create mirrored jobs for methods that create jobs on the root manager 2024-07-25 21:29:14 -07:00
Vicki Pfau
6e925e91d9 testing: Add subprocess dbus session interface for test isolation 2024-07-23 20:20:24 -07:00