Change most of our get/set methods for properties, as these
encompass both operations and additionally provide a change signal.
Additionally expose whether each of the features is supported. This
allows steam to detect when certain options should be hidden in the UI
if the feature is unsupported.
Also surface supported ranges for operations that take int params,
e.g. TDPLimit min/max values.
While the steam client will drive wifi debug mode for now
add some scripts that directly talk to it over dbus to enable
disable, and check the current debug modes.
Signed-off-by: Jeremy Whiting <jeremy.whiting@collabora.com>
This may be useful in cases where SetWifiDebugMode has failed to
check what the current state/setting is.
Though if SetWifiDebugMode has failed we may be in weird state
so logs of steamos-manager should be checked to see what failed.
Signed-off-by: Jeremy Whiting <jpwhiting@kde.org>
Differentiate Galileo devices from others by checking the
contents of /sys/class/drm/id/board_name.
Signed-off-by: Jeremy Whiting <jeremy.whiting@collabora.com>
Changed mode parameter from i32 to u32 as well.
Change from Result<bool, Box<dyn std::error::Error>> to
std::io::Result<bool>
Adjust the xml to add the new method.
Make all private api use Result<()> types so we can do error checking.
Signed-off-by: Jeremy Whiting <jeremy.whiting@collabora.com>
When wifi debug mode is started trace-cmd start is executed with
the given buffer_size parameter.
Later when wifi debug mode is stopped, trace-cmd stop is executed
as well as trace-cmd extract to write the data to a file on disk.
In this way the steam client (or any dbus users...) can decide how
long to run trace-cmd for.
Change to create_dir_all so we don't get errors if it exists.
Signed-off-by: Jeremy Whiting <jeremy.whiting@collabora.com>
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>