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="; + }; + } ]; })