Skip to content

Commit 4faef7d

Browse files
committed
--inputdeck, --inputdeck-mode: Add another fallback
If no platform matches and 16 inch gpio is not present, just try the host command. Since lilac the input deck (touchpad) is detected, similarly to laptop 16. Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 6bcf965 commit 4faef7d

File tree

1 file changed

+9
-1
lines changed
  • framework_lib/src/commandline

1 file changed

+9
-1
lines changed

framework_lib/src/commandline/mod.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,15 @@ pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {
13601360
if ec.get_gpio("sleep_l").is_ok() {
13611361
ec.print_fw16_inputdeck_status()
13621362
} else {
1363-
println!(" Unable to tell");
1363+
if let Ok(status) = ec.get_input_deck_status() {
1364+
println!(" Deck State: {:?}", status.state);
1365+
println!(
1366+
" Touchpad present: {} ({})",
1367+
status.touchpad_present, status.touchpad_id
1368+
);
1369+
} else {
1370+
println!(" Unable to tell");
1371+
}
13641372
Ok(())
13651373
}
13661374
}

0 commit comments

Comments
 (0)