Skip to content

Add Surface Laptop 8 board setup - #16968

Merged
birkskyum merged 7 commits into
omacom:quattrofrom
jdvmi00:surface/surface-laptop8-setup-20261028
Nov 11, 2026
Merged

birkskyum merged 7 commits into
omacom:quattrofrom
jdvmi00:surface/surface-laptop8-setup-20261028

Conversation

@jdvmi00

@jdvmi00 jdvmi00 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Sets up the Surface Laptop 8 (Snapdragon X2 Elite; 13.8-inch microsoft,surface-laptop-8-13p8 and 15-inch microsoft,surface-laptop-8-15) the way the Surface Pro 11 is set up. The panel, keyboard and USB4 mux drivers, with the GPU and DSP firmware they request there, go into the initramfs so the disk can be unlocked on the built-in screen and keyboard. It installs microsoft-surface-laptop-8-support and then runs that package's USB4 router firmware tool; without Windows on the disk the tool finds nothing, USB4 stays off and the install carries on. Other Snapdragon laptops are left alone. Needs omacom/omarchy-iso#406, which lists the renamed package as aarch64-only for the x86_64 image.

Tested: a fresh encrypted install beside Windows on a 13.8-inch Surface Laptop 8, from an ISO built from quattro with this branch and edge's packages (linux-omarchy 7.3-18, surface-laptop-8-support 1-4), before the package rename and the 15-inch match. It reached the desktop with no failed units. The ADSP and CDSP run from qcom/glymur/microsoft/mahua/, and the USB4 step ran in the installer and the dock works. test/shell.d/surface-laptop8-hardware-test.sh fails if either model check, the package, thunderbolt_qcom, the preference for extracted firmware or the wiring is removed. The 15-inch model has not been run, and neither has an install without Windows on the disk.

No visible change: this is board setup during install, with no change to any screen.

On the Surface Laptop 8 (13.8-inch, Snapdragon X2 Elite), load the panel,
keyboard and USB4 mux drivers before disk unlock, with the GPU and DSP
firmware they request there, and install surface-laptop-8-support. Since
linux-omarchy 7.3-5 the USB4 host router drivers are thunderbolt_qcom, which
the panel waits for; thunderbolt stays listed for 7.3-4.

Then copy the USB4 router firmware out of the Windows USB4 driver so docks
work. The router driver requests it once, at probe in the initramfs;
thunderbolt_qcom declares it, so mkinitcpio adds it. Without Windows on the
disk it is not found and USB4 stays off. Other Snapdragon laptops are left
alone.
@jdvmi00
jdvmi00 marked this pull request as ready for review October 29, 2026 15:47
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable new issues were established.

Summary

Adds install-time support for both Surface Laptop 8 sizes.

  • Surface Laptop 8 setup brings its screen and keyboard up for disk unlock.

No actionable new issues were established. The previous thread’s source-string checks are gone. This review used static checks; no tests were run.

Reviews (5) · Last reviewed commit: "Set up the 15-inch Surface Laptop 8 too" · Reviewed by Greptile

Drop the checks that grep all.sh and the package list for the lines this
setup adds, and the list of modules the initramfs names. Leave one DSP image
missing from the firmware fixture so the test checks that missing firmware is
skipped, as its message says.
Qualcomm's v2 device tree names the board microsoft,surface-laptop-8-13p8,
and linux-omarchy now uses that name.
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks, @jdvmi00. Omabot looked at this pull request at 2d17f15 to decide what kind of change it is. No code was run, and no labels were added.

The two models classifying it disagreed. Claude Opus 5.5 called it an enhancement because it adds setup for a laptop that had none. Codex Medium called it compatibility because it is hardware-specific work to get the machine to boot and unlock. Until the maintainer decides which it is, it carries no class label and has not gone on to verification. Running it properly also needs the hardware, plus omacom/omarchy-pkgs#1905 and omacom/omarchy-iso#368, which the description lists as prerequisites.

No other open pull request covers the Surface Laptop 8. Next step: the maintainer.

@birkskyum

Copy link
Copy Markdown
Contributor

@jdvmi00 omacom/omarchy-pkgs#2179 is published on edge (linux-omarchy 7.3-16 and surface-laptop-8-support 1-2), so the board check here matches now, and from the next edge nightly the live image picks the tree by itself. Could you run an install with it? That covers the renamed setup end to end, which the PR notes hasn't run yet.

One more change is coming in omacom/omarchy-pkgs#2190. Your tree loads the ADSP and CDSP images from qcom/glymur/microsoft/surface-laptop8/, and Qualcomm's posted tree names qcom/glymur/microsoft/mahua/, which is where microsoft-surface-laptop-8-firmware installs them. omacom/omarchy-pkgs#2190 moves the four DSP names to that folder in a patch on top of yours, and makes surface-laptop-8-support depend on the firmware package, so the laptop has its DSP firmware without Windows on the disk. With it, this PR's initramfs list should name qcom/glymur/microsoft/mahua/ for the four DSP images.

omacom/omarchy-pkgs#1905 can be closed, since omacom/omarchy-pkgs#2179 carries both of its commits.

@birkskyum

Copy link
Copy Markdown
Contributor

@jdvmi00 omacom/omarchy-pkgs#2190 is published on edge. From linux-omarchy 7.3-17 your tree loads the ADSP and CDSP images from qcom/glymur/microsoft/mahua/, and surface-laptop-8-support pulls in microsoft-surface-laptop-8-firmware, which installs them there. So the laptop has its DSP firmware with or without Windows on the disk.

Since qcom_q6v5_pas doesn't retry after the initramfs, the four DSP entries in this PR's initramfs list need the new folder:

  qcom/glymur/microsoft/mahua/qcadsp8480.mbn \
  qcom/glymur/microsoft/mahua/adsp_dtbs.elf \
  qcom/glymur/microsoft/mahua/qccdsp8480.mbn \
  qcom/glymur/microsoft/mahua/cdsp_dtbs.elf; do

The board= path in surface-laptop8-hardware-test.sh changes the same way. The package installs the files xz-compressed, which your suffix loop already finds.

On your own laptop, an initramfs config from earlier testing still names the old folder, so rerun the setup and limine-mkinitcpio after updating. The Windows copies under /usr/lib/firmware/updates/qcom/glymur/microsoft/surface-laptop8/ aren't used anymore and can go.

An install from the next edge nightly would then test the whole path.

From linux-omarchy 7.3-17 the device tree loads the ADSP and CDSP images from
qcom/glymur/microsoft/mahua, where microsoft-surface-laptop-8-firmware installs
them.
@birkskyum

Copy link
Copy Markdown
Contributor

@jdvmi00 some test fail?

@jdvmi00

jdvmi00 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

@jdvmi00 some test fail?

@birkskyum test check fails on background-intro-lifecycle-test.sh, which is also failing on unrelated PRs right now.

@birkskyum

Copy link
Copy Markdown
Contributor

@jdvmi00 surface-laptop-8-support is now microsoft-surface-laptop-8-support (omacom/omarchy-pkgs#2285), published on edge. The new package provides and replaces the old name, but omarchy-pkg-add checks with pacman -Q, which only knows installed names. So the setup step, install/omarchy-other.packages and the test need the new name. omacom/omarchy-iso#406 already lists it as aarch64-only for the x86_64 image, and #18069 switches the Surface Pro 11's packages the same way.

The 15-inch model has its tree and hardware IDs from linux-omarchy 7.3-30 (omacom/omarchy-pkgs#2276), under microsoft,surface-laptop-8-15, and the support package covers both sizes. The setup matches microsoft,surface-laptop-8-13p8 only, so the 15-inch model needs its compatible there too.

@jdvmi00

jdvmi00 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

@birkskyum Thanks. I merged quattro, which brings in the fix for the background-intro test, switched the setup, the package list and the test to microsoft-surface-laptop-8-support, and added microsoft,surface-laptop-8-15 to the board check. I don't have a 15-inch, so that side is untested. The description now lists omacom/omarchy-iso#406 as a prerequisite.

@birkskyum
birkskyum merged commit ceb30ed into omacom:quattro Nov 11, 2026
5 checks passed
@birkskyum

Copy link
Copy Markdown
Contributor

@jdvmi00 thanks, this is merged. One follow-up: the setup only runs on a fresh install, so a Surface Laptop 8 installed before this doesn't get the early panel and keyboard modules, microsoft-surface-laptop-8-support or the USB4 step on update. Would you add a migration that runs install/hardware/microsoft/surface-laptop8.sh on those machines and rebuilds the boot image, like #17617 does for the 15" Surface Laptop 7?

@jdvmi00

jdvmi00 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

@birkskyum Added in #18435. Tested on my 13.8-inch Laptop 8; the 15-inch hasn't been run.

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.

3 participants