From 349d1d832c65758c9e620bde66d9b1102c2ec8aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Kurucz?= Date: Wed, 18 Dec 2024 15:37:45 +0100 Subject: [PATCH] Add lid switch support The ISO should be reproducible and have the following SHA256 hash: 0a92f5fedc9b7af382f9f947637687d126ea16509c41587c0e30cac5578ea4a9 --- README.md | 3 ++- packages/x1e80100-linux.nix | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c20f04..992f4f5 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,13 @@ Note that I only have the Lenovo Yoga Slim 7x, so the repo will be focused aroun | Hardware Video Decoding | ❌ | | | Hibernate | ❔ | | | Keyboard | ✅ | | +| Lid switch | ✅ | | | Microphone | ❌ | | | NVMe | ✅ | | | Power Profiles | ❌ | | | RTC | ✅ | | | Speakers | ❌ | | -| Suspend | 🟨 | Lid switch not yet working. Spurious wakeups can happen. Battery consumption still high (approx. 3.8%/hour). | +| Suspend | 🟨 | Spurious wakeups can happen. Battery consumption still high (approx. 3.8%/hour). | | Thermal throttling | ❌ | | | Touchpad | ✅ | | | Touchscreen | ✅ | | diff --git a/packages/x1e80100-linux.nix b/packages/x1e80100-linux.nix index c12488d..52aa151 100644 --- a/packages/x1e80100-linux.nix +++ b/packages/x1e80100-linux.nix @@ -84,5 +84,14 @@ linuxPackagesFor (buildLinux { # https://git.launchpad.net/~ubuntu-concept/ubuntu/+source/linux/+git/oracular/commit/?h=qcom-x1e&id=350f8e8802bef1a2aac3dc17c3db138022296a94 patch = ./lenovo-yoga-slim7x-dp-altmode.patch; } + + # Lid switch + { + name = "arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: Add lid switch"; + patch = fetchpatch { + url = "https://lore.kernel.org/linux-kernel/20241219-patch-lenovo-yoga-v3-1-9c4a79068141@mailbox.org/raw"; + hash = "sha256-Tw2mlbTR6MPvVocaLR3CtWRDqlLql4+0oEnf0DfJp5U="; + }; + } ]; })