Skip to content

Instantly share code, notes, and snippets.

View birkskyum's full-sized avatar

Birk Skyum birkskyum

View GitHub Profile
@birkskyum
birkskyum / Makefile
Created September 7, 2026 22:54
Yoga Slim 7x: read-only EC protocol validation and fan RPM test results
obj-m += slim7x-ec-monitor.o
@birkskyum
birkskyum / 0001-libcamera-software_isp-Skip-stop-when-the-worker-has.patch
Last active September 6, 2026 19:44
libcamera: SoftwareIsp stop-before-start deadlock, candidate fix and reproducer
From ece33892e7b1f2959d4934bd4e2a0902efac8a5e Mon Sep 17 00:00:00 2001
From: Birk Skyum <birk.skyum@pm.me>
Date: Sun, 6 Sep 2026 07:12:51 +0200
Subject: [PATCH] libcamera: software_isp: Skip stop when the worker has not
started
The simple pipeline calls stop() if the capture device fails to start streaming, before SoftwareIsp::start() has run. The blocking invocation of Debayer::stop() then waits indefinitely for a worker thread that is not running.
Return early when the worker has not started so that Camera::start() can report the original capture error.
@birkskyum
birkskyum / browser-followup.md
Last active September 6, 2026 19:44
Yoga Slim 7x OV02C10: tested low-latency denoised libcamera preview

Yoga Slim 7x: browser camera follow-up

Chromium now lists Built-in Front Camera and opens live video on webcamera.io. The owner confirmed that it opened immediately, found the image acceptable for now, and subsequently confirmed live browser video after reboot on 6 September 2026. This uses the separately selected Yoga camera test kernel and local integration packages, not stock Omarchy support or validation on other Snapdragon laptops. A separate refresh/reopen check and explicit confirmation of the latest orientation change are still outstanding.

What was needed

  • pipewire-libcamera 1:1.6.8-1, matching the installed PipeWire version. Previously WirePlumber lacked api.libcamera.enum.manager and the camera portal reported no camera. After installation it exposed a libcamera Video/Source and the portal reported a camera present.
  • WebRtcPipeWireCamera added to Chromium's existing enabled features, then Chromium fully restarted. Tested Chromium: 151.0.7922.137-1; WirePlumber: 0.5.15-1.
@birkskyum
birkskyum / add-3d-model-with-shadow.html
Last active October 23, 2024 15:43
MapLibre GL JS - Modified Three.js model example (add-3d-model) with Shadow
<!DOCTYPE html>
<html lang="en">
<head>
<title>Add a 3D model with three.js</title>
<meta property="og:description" content="Use a custom style layer with three.js to add a 3D model to the map." />
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='stylesheet' href='../../dist/maplibre-gl.css' />
<script src='../../dist/maplibre-gl-dev.js'></script>