Repository navigation
Add surface-pro-11-support: Wi-Fi, audio, Bluetooth, charge window, keyboard pairing and pen resume - #825
Merged
ryanrhughes merged 12 commits intoOct 21, 2026
Conversation
The Surface Pro 11's WCN7850 reports generic identifiers that match no linux-firmware board record, so Wi-Fi cannot load board data. Extract Qualcomm's reference-design record from linux-firmware-atheros at build time, unmodified and checked by size and SHA-256, and ship it as board.bin until the Surface's own board data reaches linux-firmware. Stripping is disabled because the record is an ELF image. Build the AudioReach topology from pinned upstream source, checked against the binary validated on the device, and ship ALSA UCM routing for the speakers and microphones, derived from alsa-ucm-conf's Surface Pro 12in profile with its attribution and BSD-3-Clause licence kept. Hide the monochrome infrared sensor from camera pickers in WirePlumber, so apps see the front and back cameras only. The package is aarch64-only, tagged for the Qualcomm platform guard and published to edge. Validated with test.sh and a package build whose board data and topology are byte-identical to a working Surface Pro 11 installation, where Wi-Fi, speakers and microphones work and PipeWire offers exactly the front and back cameras. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Oct 6, 2026
turbineBMW
force-pushed
the
upstream/surface-pro-11-hardware
branch
from
October 10, 2026 01:17
bb47889 to
862273e
Compare
Contributor
Author
|
The Wi-Fi and Bluetooth address handling moved out of this PR into its own package, surface-snapdragon-addresses (#972), so the Surface Laptop 8 can use it too. It matches on the Microsoft DMI vendor and the MacAddressEmulationAddress variable instead of the Denali device tree. surface-pro-11-support now depends on it, so #972 needs to land first or in the same publish. Tested together on the Surface Pro 11: same addresses as before. |
4 tasks done
The battery firmware can lose its charge window across suspend while the kernel driver still reports the thresholds that were set. A sleep hook now writes those same thresholds back after resume. It never chooses a limit, leaving that to UPower or Omarchy's power settings, and does nothing when no limit is set. The kernel driver already restores the window when the battery-manager service restarts. Validated with test.sh and on a Surface Pro 11: a 75-80% window is written back unchanged after suspend and resume. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Surface's firmware power profile does not limit short CPU loads. A service now follows power-profiles-daemon and caps every cpufreq policy at 1.92 GHz in power-saver and 2.52 GHz in balanced, restoring the full range in performance. Validated with test.sh and on a Surface Pro 11: each profile sets its ceiling on all policies. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The touch controller resets its firmware during resume ("Spontaneous FW
reset!") and a running iptsd never recovers, leaving pen and touch dead
until it is restarted. A sleep hook now stops the active iptsd
instances before sleep and starts them again one second after resume.
Validated with test.sh and on a Surface Pro 11: the pen works after
suspend and resume.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…snapdragon-addresses The WCN7850's Wi-Fi interface gets a per-boot placeholder address and its Bluetooth controller stays unconfigured until it is given a public address. surface-snapdragon-addresses sets both from the MacAddressEmulationAddress UEFI variable, the way Windows does, and the Surface Laptop 8 shares it, so this package depends on it instead of carrying its own copy. Validated with the package's test.sh and a makepkg build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ship the IMX681 simple-IPA tuning file where libcamera looks for per-sensor tuning, in place of the copy built into the patched libcamera-surface-pro-11. With the linear gain control now in linux-omarchy-n1x's IMX681 driver, stock libcamera drives the front camera and the libcamera fork is no longer needed. Validated on a Surface Pro 11 with Arch's libcamera 0.7.2-4, which loaded this file and gave the same front camera picture as the patched libcamera, before and after suspend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
turbineBMW
force-pushed
the
upstream/surface-pro-11-hardware
branch
from
October 13, 2026 00:16
6707e53 to
2890ce7
Compare
omarchy-power-profiles-daemon caps the CPU clusters on every Snapdragon X laptop now (omacom#1029), so the SP11's own service would only fight it over scaling_max_freq. The python, python-dbus, python-gobject and power-profiles-daemon dependencies were only there for it. Validated with test.sh and a clean makepkg. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Attaching the keyboard runs surface-pro-11-flex-autopair: with no bond, or a bond that stopped working because another host re-keyed it, it hands the keyboard the tablet's address and a fresh key over the connector and pairs with LE legacy out-of-band pairing, as Windows does. A working bond is left alone. Detaching runs surface-pro-11-flex-reconnect, which connects the keyboard over Bluetooth and marks the bond for re-pairing if it never connects. surface-pro-11-flex-pair pairs by hand. Pairing turns the adapter pairable for the pair only, since the kernel stores the keys only while it is bondable and Omarchy leaves Pairable off. It also stores a 7.5-11.25 ms connection interval for the keyboard, which never asks for one; at Linux's default its touchpad reports arrive in bursts. Validated on a Surface Pro 11 with linux-omarchy-n1x 7.2.8-7 (omacom#975's KIP pairing node and LE legacy OOB pairing): attaching paired a keyboard bonded to another host, it typed over Bluetooth when detached, reattaching left the working bond alone, attaching it after a Surface Pro 12 had re-keyed it took it back in about 25 s, and the touchpad moved smoothly over Bluetooth with the stored interval. test.sh covers the attach and detach decisions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ryanrhughes
enabled auto-merge
October 20, 2026 01:29
Collaborator
|
@turbineBMW looks like we have a build failure here. |
Now that linux-omarchy lets the SoC collapse CX in suspend, the lid line (gpio2) shows a false edge about 0.3 s after the collapse when the cover is open. Lid wake is on by default, so every suspend with the cover open wakes the machine at once. A sleep hook now arms lid wake before suspend only when logind reports the lid closed, and turns it off otherwise; an unknown lid state counts as open. Suspending with the cover closed keeps the default, so opening the cover still wakes the machine, and the power button wakes it either way. Validated with test.sh and on a Surface Pro 11 on linux-omarchy 7.2.8: with the cover open the machine stays asleep (5 h overnight, CX collapsed 99.9 %) and wakes on the power button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Surface Pro 11 patches, the KIP pairing node and the IMX681 gain control among them, landed in linux-omarchy with omacom#1315, and linux-omarchy-n1x is gone. Point the README and the pairing tool at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
auto-merge was automatically disabled
October 21, 2026 10:33
Head branch was pushed to by a user without write access
ryanrhughes
enabled auto-merge (squash)
October 21, 2026 10:34
The release ring replaced channels on master (61ff008) and metadata validation now refuses the key. The package publishes to edge on merge like every other package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
auto-merge was automatically disabled
October 21, 2026 11:05
Head branch was pushed to by a user without write access
3 tasks done
ryanrhughes
enabled auto-merge (squash)
October 21, 2026 11:05
The lid wake commit picked up makepkg's audioreach-topology clone by mistake. In CI it lands in the build directory, and makepkg refuses it because it is not a clone of the source URL, so the build fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
auto-merge was automatically disabled
October 21, 2026 14:43
Head branch was pushed to by a user without write access
ryanrhughes
enabled auto-merge (squash)
October 21, 2026 14:43
Contributor
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hardware support for the Microsoft Surface Pro 11 (Snapdragon X Elite,
microsoft,denali-oled) that does not belong in the kernel. One commit per concern:linux-firmware-atherosat build time, unmodified and checked by size and SHA-256, and shipped asboard.binuntil the Surface's own record reaches linux-firmware. The AudioReach topology is built from pinned upstream source. UCM routing for speakers and microphones derives from alsa-ucm-conf's Surface Pro 12in profile, with its BSD-3-Clause attribution kept. A WirePlumber rule hides the IR sensor from camera pickers. It also ships the front camera's (IMX681) measured black level as libcamera tuning, so stock libcamera drives it.surface-pro-11-flex-pairpairs by hand. Needs the KIP pairing node and LE legacy OOB pairing, which landed inlinux-omarchywith linux-omarchy-aarch64: let the Snapdragon X1 laptops reach DDR sleep and CX collapse in suspend #1315.surface-snapdragon-addresses(Add surface-snapdragon-addresses for Snapdragon Surface Wi-Fi and Bluetooth addresses #972, published), which the Surface Laptop 8 shares; this package depends on it.CPU caps per power profile were here at first; they moved to
omarchy-power-profiles-daemon(#1029), which covers every Snapdragon X laptop, and the last commit removes them.aarch64 only,
groups=('omarchy-platform-qualcomm')(#636), published to edge.iptsdis an optdepend.Dependencies
None to build. Needs
surface-snapdragon-addresses(#972, published) to install, plusbluez,bluez-utilsandpythonfor the keyboard pairing. On a device it is used withlinux-omarchy7.2.8-19 or later (#1315) andiptsd(#826, published), installed by the Surface Pro 11 board script (omacom/omarchy#14390).Test plan
test.shpassestest.shcovers the keyboard's attach and detach decisionssurface-snapdragon-addressesfrom Add surface-snapdragon-addresses for Snapdragon Surface Wi-Fi and Bluetooth addresses #972 installed, Wi-Fi and Bluetooth come up with their Windows addresses after a reboot (tested in Add surface-snapdragon-addresses for Snapdragon Surface Wi-Fi and Bluetooth addresses #972)test.shcovers the lid hook: open and unknown lid turn lid wake off, closed lid arms it, nothing after resume or on other hardwarelinux-omarchy7.2.8: suspended with the cover open, the machine slept 5 h with CX collapsed 99.9 % and woke on the power buttonlinux-omarchy7.2.8-23: closing the cover suspended the machine with lid wake armed, CX collapsed for 92 of 96 s, and opening the cover woke it (lid IRQ)