Skip to content

About

Linux device tree and fixes for the HP OmniBook X 16 (Snapdragon X2 Elite / Mahua)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

Linux device tree for the HP OmniBook X 16 (Snapdragon X2 Elite)

This is a community device tree (DT) and a set of fixes that run Ubuntu on the HP OmniBook X Laptop 16-cp1xxx (Snapdragon X2 Elite, 12-core "Mahua", board ID 8F46) with a device tree instead of ACPI. In ACPI mode most of the hardware does not work. With this DT, nearly everything does.

Status: experimental. It was tested on one laptop (October 2026), booted as a one-time test entry next to the normal boot entry. It is not upstream yet. Use it at your own risk, and keep your normal boot entry.

Upstream submission: a cleaned-up version of this DT was sent to the kernel mailing lists on Oct 23, 2026 as [PATCH 0/2] arm64: dts: qcom: Add HP OmniBook X 16-cp1 (under review, not merged). The latest version is v5 (Nov 13, 2026). It uses the Qualcomm tree's shared Glymur/Mahua regulator settings, enables the GPU as the Mahua SoC file now describes it, and has no test-only workarounds.

What works

Hardware Status Notes
NVMe SSD, boot to desktop ✅
Internal display (16" Samsung OLED, eDP) ✅ msm DRM driver, samsung,atna33xc20 panel. Stock driver: about 1 in 20 screen wakes stays black; fixed with a local patch, see display/README.md
Brightness (keys + slider) ✅ DP-AUX backlight
GPU (Adreno X2-85, hardware rendering) ✅ with patches needs a patched msm.ko (Qualcomm's Mahua GPU series), or a Mesa workaround; see GPU
Keyboard, touchpad, lid switch, power key ✅
Mute / mic-mute key LEDs, mic-mute key ✅ with a small service LEDs are driven by HP's embedded controller; the mic-mute key sends a code the kernel drops. See keyboard-leds/README.md
Touchscreen (ELAN, I2C) ✅ i2c8, address 0x10, interrupt GPIO 51 (from the DSDT)
Wi-Fi (Qualcomm QCC2072, Wi-Fi 7) ✅ needs a board file from Windows, see Wi-Fi
Bluetooth (QCC2072) ⚠️ works with patched modules not in kernel 7.3, see Bluetooth. Pairing, audio and earbud mic tested
USB-C ports (both, left side): USB 3, charging, plug orientation ✅ via pmic-glink
USB-A port (right side), USB 3 + USB 2 ✅
Battery status ✅
Webcam (HP True Vision FHD, RGB + IR) ✅
Face login (IR camera) ✅ with Howdy Howdy 3.0 built from source; sudo, lock screen and login screen tested. See face-login/README.md
Speakers (2, stereo) ✅ needs UCM + WirePlumber files, see Audio
Built-in microphones ✅
Audio over DisplayPort/HDMI (both USB-C ports) ✅ uses the X1E80100 CRD audio topology + UCM file, see audio/README.md
Audio DSP / compute DSP (ADSP, CDSP) ✅ firmware from Windows
Suspend (s2idle) ✅ with a sleep hook deep sleep is refused by the firmware. Drains about 1.2-1.3 W (~2%/h): the SoC never reaches its deepest sleep states, see findings
Headphone jack ❌ Qualcomm SoundWire SDCA codec, no Linux driver
DisplayPort over USB-C ✅ up to 1080p60 (stock) / ✅ HBR2 with patches both ports. Stock 7.3 PHY driver: the DTS caps the link at HBR, because HBR2 runs at half rate. With Qualcomm's Glymur DP PHY series (v5) HBR2 works on both ports; occasional no-picture or hub USB 3 drops seen. See findings
CPU frequency scaling ✅ with a rebuilt kernel needs CONFIG_QCOM_CPUCP_MBOX=y + CONFIG_ARM_SCMI_CPUFREQ=y (Ubuntu builds them as modules, which load too late). 355 MHz - 3.42 / 4.03 GHz. See cpufreq/README.md
Real-time clock ❌ rtc0 registers, but reads a raw counter (1970), not real time. The time is correct once NTP syncs.

Repository layout

Path What it is
dts/mahua-hp-omnibook-x16.dts The device tree source. Comments mark each part VERIFIED / DONOR / GUESS.
bluetooth/ Upstream QCC2072 patches (not merged yet), the diff as applied to 7.3, and build files
audio/ucm/ ALSA UCM profile for the two speakers, the microphones and DisplayPort/HDMI audio
audio/wireplumber/ Fixes the stereo channel order of the speakers
gpu/ Mahua GPU kernel patches + build steps, or a Mesa workaround (environment variables); Chrome launcher
cpufreq/ How to rebuild only the kernel image with the CPU frequency drivers built in
display/ Local msm patch for the occasional black screen on wake (eDP link training)
acpi-mode/ Stops a kernel log flood in the normal ACPI boot (broken ACPI clock driver acpi_tad)
face-login/ Face login with the IR camera (Howdy 3.0 from source)
keyboard-leds/ Mute / mic-mute LEDs (HP EC over I2C, synced with PipeWire) and a fix for the mic-mute key
suspend/omnibook-x16-dt systemd sleep hook that makes suspend work
grub/40_custom.example Example one-shot GRUB test entry
docs/findings.md What was found and how each problem was fixed
docs/linux-arm-msm-post-2026-10-21.txt Bring-up report and questions sent to the linux-arm-msm mailing list (Oct 21, 2026). Thread with replies: lore.kernel.org
CONTRIBUTORS.md Who did the work

Tested setup

  • Ubuntu "Concept" with the linux-qcom-x1e kernel 7.3.0-21-qcom-x1e (Ubuntu Concept PPA). The kernel packages were held (apt-mark hold) during testing.
  • Dual boot with Windows 11. Several firmware files come from the Windows partition.
  • Mesa 26.2.4, systemd 261.

How to use it

These are outlines. Read docs/findings.md before you start.

1. Build the device tree

You need the kernel source that matches your kernel. On Ubuntu, apt-get source --only-source linux-qcom-x1e fetches it. Copy dts/mahua-hp-omnibook-x16.dts to arch/arm64/boot/dts/qcom/ in that source tree, then run this from the top of the tree:

cpp -nostdinc -I include -I arch/arm64/boot/dts -I arch/arm64/boot/dts/qcom \
  -undef -x assembler-with-cpp -D__DTS__ \
  arch/arm64/boot/dts/qcom/mahua-hp-omnibook-x16.dts \
| dtc -@ -I dts -O dtb -o mahua-hp-omnibook-x16.dtb -

unique_unit_address warnings are harmless.

2. Add a one-shot GRUB entry

Copy the DTB to /boot/dtb-test/, then add an entry based on grub/40_custom.example to /etc/grub.d/40_custom and run sudo update-grub. The important kernel arguments are:

  • devicetree /boot/dtb-test/mahua-hp-omnibook-x16.dtb loads our DT.
  • stubble.dtb_override=false stops Ubuntu's stub from replacing it.
  • clk_ignore_unused pd_ignore_unused keep clocks and power domains the firmware turned on.

Keep your DT files in a subdirectory such as /boot/dtb-test/. Don't add extra /boot/vmlinuz-* kernels or a /boot/dtb file or directory: Ubuntu's 10_linux picks them up and can break the normal (ACPI) entry (see cpufreq/README.md).

Boot it once with sudo grub-reboot '<entry name>' and sudo reboot. If anything goes wrong, hold the power button for about 10 seconds; the next boot uses your normal entry again.

To check you are really in DT mode: cat /proc/device-tree/model should print HP OmniBook X Laptop 16-cp1xxx.

3. Firmware from Windows

The firmware files are not in this repository, because they are copyrighted by HP/Qualcomm. Copy them from your own Windows partition. Mount it read-only, for example sudo mount -t ntfs-3g -o ro /dev/nvme0n1p3 /mnt/win. All the files are under /mnt/win/Windows/System32/DriverStore/FileRepository/.

File Windows driver folder Install to
qcadsp8480.mbn qcsubsys_ext_adsp8480.inf_* /lib/firmware/qcom/mahua/hp/omnibook-x16/
qccdsp8480.mbn qcnspmcdm8480.inf_* /lib/firmware/qcom/mahua/hp/omnibook-x16/
Wi-Fi board file qcwlancol8480.inf_* (see below) /lib/firmware/ath12k/QCC2072/hw1.0/board.bin

Wi-Fi

The chip reports board ID 0xff, and linux-firmware's board-2.bin has no matching entry, so ath12k falls back to board.bin. The right data is inside Windows' bdwlan_qcc2072_1p0_ncm820A.elf, at byte offset 1024, 123600 bytes long:

cd /lib/firmware/ath12k/QCC2072/hw1.0/
sudo cp board.bin board.bin.orig 2>/dev/null
sudo dd if=/mnt/win/.../bdwlan_qcc2072_1p0_ncm820A.elf of=board.bin bs=1 skip=1024 count=123600

(Offset and length were measured on one laptop with one Windows driver version. Check them against your own file.)

4. Optional fixes

  • Bluetooth: see bluetooth/README.md.
  • Audio: see audio/README.md.
  • GPU: see gpu/README.md. Either build the patched msm.ko (and apply patch 5 to mahua.dtsi before building the DTB), or add the lines from gpu/environment-additions to /etc/environment.
  • Suspend: sudo install -m 755 suspend/omnibook-x16-dt /usr/lib/systemd/system-sleep/. The hook does nothing when you are not booted with this DT.
  • Face login: see face-login/README.md.

GPU

With the stock kernel 7.3, hardware rendering corrupts the screen (garbled blocks, diagonal half-screens, bands of colour). The driver reports the 4-slice GMEM size of Glymur's GPU, but Mahua's GPU has 3 slices.

Fix: Qualcomm's series "drm/msm: Mahua GPU support" v1 (not merged yet) adds the right catalog entry (15.75 MB GMEM). Build msm.ko with patch 3, and build the DTB with patch 5 applied to mahua.dtsi. A small local shim is also needed until Mesa releases support for the new chip ID. With these, the desktop, Vulkan apps and WebKitGTK render cleanly with no workarounds. Google Chrome still needs the launcher (gpu/google-chrome-omnibook, Vulkan): its OpenGL path shows small black blocks now and then.

Without kernel changes: set FD_MESA_DEBUG=sysmem, TU_DEBUG=sysmem and WEBKIT_SKIA_ENABLE_CPU_RENDERING=1 in /etc/environment, and use the Chrome launcher.

Details and build steps: gpu/README.md.

Bluetooth

Kernel 7.3 has no QCC2072 Bluetooth support. The upstream patch series (v2, July 2026, not merged as of October 2026) adds it. Build the patched btqca, hci_uart and pwrseq-pcie-m2 modules out of tree, and use an initramfs that contains them. Details: bluetooth/README.md.

Bluetooth audio works (tested with Pixel Buds Pro 2): music in A2DP mode (Opus codec), and the earbud microphone in both A2DP mode (duplex mic) and headset mode (HFP, for calls). GNOME does not always switch the default input/output to the earbuds when they connect; pick them in Settings > Sound. After a mode switch, A2DP once disappeared from the earbuds' profile list (a Bluetooth transport error); reconnecting the earbuds brought it back.

Credits

  • The board wiring is based on the upstream glymur-hp-elitebook-x-g2q.dts (HP EliteBook X G2q) and mahua-crd.dts/mahua.dtsi, by the Linux kernel arm64/Qualcomm contributors.
  • Mahua GPU patches (series "drm/msm: Mahua GPU support" v1, September 2026): Jie Zhang and Akhil P Oommen (Qualcomm), as posted to the kernel mailing lists.
  • QCC2072 Bluetooth patches (series "rb3-industrial-bt-uart" v2, July 2026): Vivek Sahu, Yepuri Siddu, Rahul Samana and Krishna Chaitanya Chundru (Qualcomm), as posted to the kernel mailing lists.
  • Investigation, device tree, fixes and write-up: Jeff R together with Claude Opus 5.5 (Anthropic), working in Claude Code. Claude analysed ACPI tables, kernel source and boot logs and drafted the DT and fixes; Jeff ran every test boot on the real hardware and confirmed the results.

Licence

  • dts/: BSD-3-Clause (as in its SPDX header, like the upstream files it is based on).
  • bluetooth/, gpu/patches/: kernel patches, GPL-2.0 (the DTS patch follows mahua.dtsi's licence).
  • Everything else (scripts, config files, documentation): MIT, see LICENSE.

About

Linux device tree and fixes for the HP OmniBook X 16 (Snapdragon X2 Elite / Mahua)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages