Repository navigation
Add Surface Laptop 7 15" board setup - #18967
Conversation
The disk unlock prompt is black and takes no keys from the built-in keyboard, Wi-Fi takes a new placeholder address on every boot, Bluetooth has no controller, and the touchpad is a one-finger mouse. Load the display chain, the PWM backlight and the Surface Aggregator keyboard drivers early, as the Surface Pro 11 setup does, and install microsoft-surface-snapdragon-addresses and iptsd. A migration applies the same to existing installs and rebuilds the boot image. The iptsd part is the change in omacom#17617.
[Medium impact] The PR appears safe to merge, with no new findings or outstanding numbered findings. SummaryAdds setup for the Surface Laptop 7 15", matched by
No new issues were found. Greptile withdrew the separate-test-file finding after fidecastro explained the sibling-board precedent. Reviews (4) · Last reviewed commit: "Drop the package-list check from the Sur..." · Reviewed by Greptile |
The ISO builder reads install/omarchy-other.packages for what an offline install can add. microsoft-surface-snapdragon-addresses reached it only as a dependency of the Surface Pro 11 and Surface Laptop 8 support packages.
| source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh" | ||
|
|
||
| setup="$ROOT/install/hardware/microsoft/surface-laptop-7.sh" | ||
| scratch=$(mktemp -d) | ||
| trap 'rm -rf "$scratch"' EXIT |
There was a problem hiding this comment.
Hardware tests split across suites
This adds a separate hardware test file even though hardware-quirks-test.sh already covers Surface hardware and board-specific boot setup. AGENTS.md requires extending the area's existing test file rather than adding another *-test.sh. Move the useful board checks into that suite before merging and reuse its shared setup.
File Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
I kept it as its own file because the two sibling boards do the same: surface-laptop8-hardware-test.sh and surface-pro-11-hardware-test.sh each test one board script, with the same shape as this one, and hardware-quirks-test.sh covers the shared quirks. Happy to fold it into that suite if a maintainer prefers it there.
There was a problem hiding this comment.
You're right—the sibling Surface Laptop 8 and Surface Pro 11 tests establish a clear precedent for keeping board-setup tests in their own files, while hardware-quirks-test.sh covers shared quirks. I applied the general AGENTS guidance too broadly; I’d withdraw the request to fold this test into that suite. If a maintainer prefers consolidation, that can be handled as a project-specific preference.
Should I remember this distinction for future reviews: dedicated board-setup tests may live alongside hardware-quirks-test.sh, which remains for shared quirks?
Tip: You can customize Greptile's behavior for this repo with .greptile/rules.md and .greptile/config.json.
It only confirmed that two names appear in a list, which guards nothing.
omacom/omarchy#18967 lists microsoft-surface-snapdragon-addresses in install/omarchy-other.packages for the Surface Laptop 7 15". It has an aarch64 build only, so without this every x86_64 build would stop at 'no repository offers' it, as hp-omnibook-3-audio did before #443.
What changes
The Surface Laptop 7 15" (Snapdragon X Elite,
microsoft,romulus15) has no board script, so a fresh install has four problems that Omarchy already knows how to fix on the Surface Pro 11:00:03:7f:…placeholder address on every boot.This adds
install/hardware/microsoft/surface-laptop-7.sh, which:panel_edp,pwm_bl,leds_qcom_lpgand the Surface Aggregator keyboard modules early, with the Adreno microcode. It is the Surface Pro 11's list without the parts that laptop alone needs;microsoft-surface-snapdragon-addressesandiptsd.A migration applies the same to existing installs and rebuilds the boot image.
The
iptsdline is the change in #17617 by @mrjbj, which adds the same file and now conflicts withquattro. This is a superset of it. I'm happy to rebase onto #17617 if that lands first, or for this to be closed in its favour and the rest sent as a follow-up.Only the 15" model is matched. The 13.8" runs
microsoft,romulus13and I can't test it.Background and the rest of what this laptop needs: #18966.
Written with Claude Fable 5.2. I ran every command and test on my own laptop.
Verification
On my own Surface Laptop 7 15" (model 2037, Surface UEFI 175.361.235), Omarchy 4.0.0.r7863, kernel 7.3.0-62-omarchy:
lsinitcpioon the boot image showed none ofpwm_bl,leds_qcom_lpg,pmic_glink,pmic_glink_altmode,ps883x,qrtr,qcom_pd_mapperor anysurface_*module, and nogen70500firmware; all of them are loaded at runtime. After installing this drop-in by hand and runninglimine-mkinitcpio, all are in the image, the prompt is lit and the built-in keyboard types the passphrase. Every boot since (seven), with no external keyboard attached.microsoft-surface-snapdragon-addresses1-2: Wi-Fi comes up on the firmware address variable minus two, which is the address Windows used on this laptop, and reconnects by itself; Bluetooth comes up on the variable minus one, and headphones pair and play. Checked across five boots and ten suspends.libinput debug-eventsshowed the multitouch node silent and all motion on the mouse node before; two-finger scroll and pinch work after.bash test/shell.d/surface-laptop-7-hardware-test.shandbash test/shell.d/hardware-quirks-test.shpass.Not checked:
omarchy-migrate.iptsdpackage, not this script; details in Microsoft Surface Laptop 7 15" (Snapdragon X Elite) — hardware support, open issues and testing #18966.Screenshots
No visible change: board setup for one laptop; nothing in the shell or configs changes.