From f69f53ebb69d916075fc78748428ec6d6440896f Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Mon, 16 Feb 2026 15:58:02 +0000 Subject: [PATCH] framework/12-inch: Add support for unl0kr Signed-off-by: Daniel Schaefer --- framework/12-inch/13th-gen-intel/README.md | 19 +++++++++++++++++++ framework/12-inch/13th-gen-intel/default.nix | 12 +++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/framework/12-inch/13th-gen-intel/README.md b/framework/12-inch/13th-gen-intel/README.md index 4d9ecdb..3b5632e 100644 --- a/framework/12-inch/13th-gen-intel/README.md +++ b/framework/12-inch/13th-gen-intel/README.md @@ -12,3 +12,22 @@ $ fwupdmgr update ``` - [Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop12.RPL.BIOS.firmware) + +## Touchscreen support in initrd (for unl0kr) + +To unlock your LUKS disk encryption with an onscreen touch keyboard, you can use unl0kr. + +This module will automatically included the necessary kernel modules in initrd to make touchpad and touchscreen work when `boot.initrd.unl0kr.enable = true`. + +Example configuration: + +```nix +{ + boot.initrd.systemd.enable = true; + boot.initrd.unl0kr.enable = true; + + boot.initrd.luks.devices."cryptroot" = { + device = "/dev/disk/by-uuid/YOUR-UUID-HERE"; + }; +} +``` diff --git a/framework/12-inch/13th-gen-intel/default.nix b/framework/12-inch/13th-gen-intel/default.nix index 7a3e1de..e2d6828 100644 --- a/framework/12-inch/13th-gen-intel/default.nix +++ b/framework/12-inch/13th-gen-intel/default.nix @@ -9,5 +9,15 @@ # before soc_button_array. Otherwise the tablet mode gpio doesn't work. # If correctly loaded, dmesg should show # input: gpio-keys as /devices/platform/INT33D3:00 - boot.initrd.kernelModules = [ "pinctrl_tigerlake" ]; + boot.initrd.kernelModules = [ + "pinctrl_tigerlake" + ] + # Additional modules for touchscreen/touchpad in initrd (for unl0kr on-screen keyboard) + ++ lib.optionals config.boot.initrd.unl0kr.enable [ + "intel_lpss_pci" + "i2c_hid_acpi" + "i2c_hid" + "hid_multitouch" + "hid_generic" + ]; }