Skip to content

Commit ff21e0a

Browse files
Prepare V1.5 multi-device release candidate
1 parent 90dc4c0 commit ff21e0a

84 files changed

Lines changed: 7677 additions & 264 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Cargo.lock‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/decksmith-core", "crates/decksmith-device", "apps/decksmith-c
33
resolver = "3"
44

55
[workspace.package]
6-
version = "1.0.0"
6+
version = "1.5.0"
77
edition = "2024"
88
publish = false
99
license = "Apache-2.0"

‎README.md‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ Stream Deck +.** Debian, Ubuntu and COSMIC have separate experimental previews.
1515
[Report an issue](https://github.com/infamous-pattern/decksmith/issues) ·
1616
[Roadmap](docs/ROADMAP.md)
1717

18+
**V1.5 candidate preparation:** the development build adds simultaneous Stream
19+
Deck + and 15-key MK.2 control, independent saved device layouts, a simpler editor
20+
and new dial gauges. Signed-candidate qualification is pending; the downloads
21+
below still provide V1 and its existing experimental previews. See the
22+
[V1.5 candidate scope and remaining checks](docs/v1.5-candidate.md).
23+
1824
![Decksmith Home with device preview and background-control settings](docs/images/decksmith-home.png?v=914df36b4fe4)
1925

2026
## See it in action
@@ -45,8 +51,9 @@ The [original V1 tour](https://www.youtube.com/watch?v=ZJG1n_8rGNY) is also avai
4551
blanks the entire device.
4652

4753
Optional actions depend on the desktop's services. The Homebridge integration is
48-
**experimental**; general plugin support, independent multiple devices and the
49-
15-key Stream Deck MK.2 are planned for V1.5. See the [roadmap](docs/ROADMAP.md).
54+
**experimental**. Independent multiple devices and the 15-key Stream Deck MK.2
55+
are implemented in the V1.5 development build, pending signed-candidate
56+
qualification. General plugin support is deferred to V2. See the [roadmap](docs/ROADMAP.md).
5057

5158
## Downloads and compatibility
5259

@@ -65,7 +72,8 @@ needed to run them.
6572

6673
Preview VM checks do not establish physical USB/audio or lifecycle support on
6774
those platforms. COSMIC does not inherit GNOME-only integrations. Review the
68-
linked limits before installing. Broader GNOME/Wayland compatibility is a V1.5 goal.
75+
linked limits before installing. Broader supported compatibility remains separate
76+
from the focused V1.5 multi-device release.
6977

7078
### New dial gauges
7179

‎apps/decksmith-daemon/examples/font_preview.rs‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fn main() {
1818
"Source Sans 3",
1919
"Viking Runes",
2020
];
21+
let emoji = std::env::args().any(|arg| arg == "--emoji");
2122
let mut sheet = image::RgbImage::new(800, 800);
2223
for (kind, name) in names.iter().enumerate() {
2324
let mut title = vec![26; 200 * 100 * 3];
@@ -35,7 +36,13 @@ fn main() {
3536
let mut key = vec![26; 120 * 120 * 3];
3637
key_text::draw_styled(
3738
&mut key,
38-
if kind == 13 { "Viking 42" } else { "Volume Up" },
39+
if emoji {
40+
"MK2✅"
41+
} else if kind == 13 {
42+
"Viking 42"
43+
} else {
44+
"Volume Up"
45+
},
3946
1,
4047
false,
4148
false,

‎apps/decksmith-daemon/src/audio_target.rs‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,15 @@ pub(crate) struct Connection {
3131
}
3232
impl Connection {
3333
pub(crate) fn start(mode: &str) -> Result<Self, &'static str> {
34+
Self::start_helper("audio_targets.py", &[mode])
35+
}
36+
pub(crate) fn start_helper(helper: &str, args: &[&str]) -> Result<Self, &'static str> {
3437
use std::io::{BufRead, BufReader};
3538
use std::os::unix::process::CommandExt;
3639
let mut child = Command::new("/usr/bin/python3")
3740
.arg("-B")
38-
.arg(crate::runtime_paths::helper("audio_targets.py"))
39-
.arg(mode)
41+
.arg(crate::runtime_paths::helper(helper))
42+
.args(args)
4043
.stdin(Stdio::piped())
4144
.stdout(Stdio::piped())
4245
.stderr(Stdio::null())

‎apps/decksmith-daemon/src/connected_physical_lab.rs‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,13 @@ pub fn run(args: &[String]) -> Result<()> {
422422
Store::open(&path.join("profiles"))?.load()?,
423423
settings.as_ref(),
424424
)?;
425+
// Lifecycle qualification is separately opted in; ordinary diagnostic runs
426+
// retain their established scope. Unknown/stale desktop state blocks.
427+
let host_gate = (std::env::var("DECKSMITH_LIFECYCLE_TEST").as_deref() == Ok("1")).then(|| {
428+
let gate = crate::session_lock::Gate::new(true);
429+
gate.monitor();
430+
gate
431+
});
425432
let editable = args[0] == "--connected-edit-native-lab";
426433
let mut editor: Option<crate::live_profiles::Service> = None;
427434
let end = Instant::now() + Duration::from_secs(seconds);
@@ -459,6 +466,10 @@ pub fn run(args: &[String]) -> Result<()> {
459466
}
460467
refresh = Instant::now();
461468
}
469+
if let Some(gate) = &host_gate {
470+
let state = gate.snapshot();
471+
trial.runtime.host_lock(state.locked, state.epoch)?;
472+
}
462473
trial.tick()?;
463474
if editable
464475
&& editor.is_none()
@@ -480,6 +491,9 @@ pub fn run(args: &[String]) -> Result<()> {
480491
}
481492
if report.elapsed() >= Duration::from_millis(250) {
482493
trial.report(&path.join("status.json"), "running")?;
494+
if let Some(gate) = &host_gate {
495+
write_report(&path.join("lifecycle.json"), &serde_json::to_vec_pretty(&serde_json::json!({"mode":"real-session-lock","lock":gate.snapshot(),"suspend_wired":false,"startup_wired":false})).map_err(|_| "test_status_failed")?)?;
496+
}
483497
report = Instant::now();
484498
}
485499
std::thread::sleep(Duration::from_millis(5));

‎apps/decksmith-daemon/src/control.rs‎

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,23 @@ pub fn startup(default_path: &str) -> Result<(Pages, Settings), &'static str> {
110110
let pages = preset(&settings.layout)?;
111111
Ok((pages, settings))
112112
}
113+
pub(crate) fn set_auto_lock_preference(
114+
enabled: bool,
115+
gate: &crate::session_lock::Gate,
116+
) -> zbus::fdo::Result<()> {
117+
let path = path().with_file_name("auto-lock.json");
118+
std::fs::create_dir_all(path.parent().unwrap())
119+
.and_then(|_| {
120+
std::fs::write(
121+
path.with_extension("json.tmp"),
122+
if enabled { "true" } else { "false" },
123+
)
124+
})
125+
.and_then(|_| std::fs::rename(path.with_extension("json.tmp"), &path))
126+
.map_err(|_| zbus::fdo::Error::Failed("Could not save Auto-Lock preference".into()))?;
127+
gate.enable(enabled);
128+
Ok(())
129+
}
113130
static SAVE_LOCK: Mutex<()> = Mutex::new(());
114131
pub(crate) fn save_shared(shared: &Shared) -> zbus::fdo::Result<()> {
115132
let _guard = SAVE_LOCK.lock().unwrap();
@@ -320,18 +337,7 @@ impl Api {
320337
self.save()
321338
}
322339
fn set_auto_lock(&mut self, enabled: bool) -> zbus::fdo::Result<()> {
323-
let path = path().with_file_name("auto-lock.json");
324-
std::fs::create_dir_all(path.parent().unwrap())
325-
.and_then(|_| {
326-
std::fs::write(
327-
path.with_extension("json.tmp"),
328-
if enabled { "true" } else { "false" },
329-
)
330-
})
331-
.and_then(|_| std::fs::rename(path.with_extension("json.tmp"), &path))
332-
.map_err(|_| zbus::fdo::Error::Failed("Could not save Auto-Lock preference".into()))?;
333-
self.gate.enable(enabled);
334-
Ok(())
340+
set_auto_lock_preference(enabled, &self.gate)
335341
}
336342
fn set_brightness(&mut self, percent: u8) -> zbus::fdo::Result<()> {
337343
if percent > 100 {

0 commit comments

Comments
 (0)