Skip to content

Add Surface Laptop 7 15" board setup - #18967

Merged
birkskyum merged 3 commits into
omacom:quattrofrom
fidecastro:surface-laptop-7-board-setup
Nov 15, 2026
Merged

birkskyum merged 3 commits into
omacom:quattrofrom
fidecastro:surface-laptop-7-board-setup

Conversation

@fidecastro

Copy link
Copy Markdown
Contributor

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:

  • The disk unlock prompt is black, and the built-in keyboard takes no keys there. I could only unlock with an external USB keyboard, typing blind.
  • Wi-Fi takes a new 00:03:7f:… placeholder address on every boot.
  • Bluetooth has no controller: it is "unconfigured", with no public address.
  • The touchpad is a one-finger mouse.

This adds install/hardware/microsoft/surface-laptop-7.sh, which:

  • writes a mkinitcpio drop-in loading the display chain, panel_edp, pwm_bl, leds_qcom_lpg and 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;
  • installs microsoft-surface-snapdragon-addresses and iptsd.

A migration applies the same to existing installs and rebuilds the boot image.

The iptsd line is the change in #17617 by @mrjbj, which adds the same file and now conflicts with quattro. 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,romulus13 and 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:

  • Unlock prompt. Before: lsinitcpio on the boot image showed none of pwm_bl, leds_qcom_lpg, pmic_glink, pmic_glink_altmode, ps883x, qrtr, qcom_pd_mapper or any surface_* module, and no gen70500 firmware; all of them are loaded at runtime. After installing this drop-in by hand and running limine-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.
  • Addresses. With microsoft-surface-snapdragon-addresses 1-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.
  • iptsd. libinput debug-events showed the multitouch node silent and all motion on the mouse node before; two-finger scroll and pinch work after.
  • Tests. bash test/shell.d/surface-laptop-7-hardware-test.sh and bash test/shell.d/hardware-quirks-test.sh pass.

Not checked:

Screenshots

No visible change: board setup for one laptop; nothing in the shell or configs changes.

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.
@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with no new findings or outstanding numbered findings.

Summary

Adds setup for the Surface Laptop 7 15", matched by microsoft,romulus15.

  • Surface Laptop 7 15-inch unlock screens now have early display and keyboard support.
  • Surface Laptop 7 15-inch gets its own network addresses and multitouch support.

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.
Comment on lines +5 to +9
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
birkskyum added a commit to omacom/omarchy-iso that referenced this pull request Nov 15, 2026
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.
@birkskyum
birkskyum merged commit c421383 into omacom:quattro Nov 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants