Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Adds targeted HP EliteBook X G2i support for audio, webcam, speaker tuning, and fingerprint detection.
Changes:
- Installs model-specific audio and camera packages.
- Adds SKU-gated PipeWire speaker tuning.
- Detects Elan ARM-M4 fingerprint readers.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
install/hardware/hp/elitebook-x-g2i.sh |
Adds HP hardware detection and package installation. |
install/hardware/all.sh |
Runs the new HP setup leaf. |
default/audio/tunings/hp-elitebook-x-g2i/tuning.conf |
Defines tuning matching and metadata. |
default/audio/tunings/hp-elitebook-x-g2i/README.md |
Documents tuning provenance and activation. |
default/audio/tunings/hp-elitebook-x-g2i/filter-chain.conf |
Implements the stereo EQ and limiter graph. |
bin/omarchy-hw-fingerprint |
Recognizes Elan ARM-M4 readers. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| derived_from="HP/DTS factory tuning blob dts_gpeq_mode1 (SSID 8E86103C), decoded" | ||
| validated_hardware="HP EliteBook X G2i (D4DU1UT#ABA, SSID 8E86103C)" |
There was a problem hiding this comment.
Now updated and resovled using the omarchy tuning
| ## Headroom: the EQ cascade (high-pass included) peaks at +3.66 dB at 1.86 kHz | ||
| ## on the 48 kHz bank. The limiter input gain of -4.66 dB places a full-scale | ||
| ## sine at that frequency exactly at the -1 dBFS limiter threshold. | ||
| limiter_headroom_db="0.0" |
| Established by decoding both sample-rate variants of every mode to mutually | ||
| consistent curves (see `../decode_dts_gpeq.py`): |
| ## Install | ||
|
|
||
| ``` | ||
| sudo cp -r audio-tuning/hp-elitebook-x-g2i /usr/share/omarchy/default/audio/tunings/ | ||
| omarchy-audio-tuning on | ||
| ``` | ||
|
|
||
| Requires `lsp-plugins-lv2` for the limiter. |
37bf125 to
273279e
Compare
|
Background on a few things that will otherwise raise questions.
Why the tuning gate is a DMI name and not a SKU. The obvious gate is the The camera works through a userspace pipeline that costs about 4.4 CPU cores, The fingerprint change is not in this PR; it is already yours. It was stacked Two review comments from the previous revision are addressed. The decoder |
273279e to
f107497
Compare
|
Validation update, rebased on current Gates, run on the reference machine: The tuning that ships is the tuning that plays. The filter chain loaded into Audio no longer depends on any DKMS module. The match-table entry and the Camera cost is unchanged and still the honest number: about 4.4 CPU cores, |
|
Two things that will otherwise raise questions. The ACPI change fixes a bug that is not ours. That gate runs before the HP one, so a fresh install pulled in
Why the tuning gate is a DMI name and not a SKU. The obvious gate is the The camera costs about 0.33 of one CPU core, down from 4.4 in an earlier The fingerprint change is not in this PR; it is already yours. It was stacked |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.
Suppressed comments (3)
install/hardware/hp/elitebook-x-g2i.sh:27
- This package is installed during target finalization but is absent from
install/omarchy-other.packages, which the ISO builder uses to make conditional hardware packages available (for example,intel-ipu7-camerais listed there). An offline fresh install can therefore fail at this call. Addhp-elitebook-x-g2i-audioto that package list.
omarchy-pkg-add hp-elitebook-x-g2i-audio
install/hardware/hp/elitebook-x-g2i.sh:34
hp-elitebook-x-g2i-camerais also missing frominstall/omarchy-other.packages. Since this conditional package must be cached for ISO target finalization just likeintel-ipu7-camera, offline installation can fail here. Add the camera package to the ISO package list.
omarchy-pkg-add hp-elitebook-x-g2i-camera
install/hardware/hp/elitebook-x-g2i.sh:35
- This does not repair systems on which the previous
ipu7-camera.shalready installedintel-ipu7-camerafrom the declared-but-absent OVTI08F4 node. That package remains installed when the new detector returns false, and its conflict makespacman --noconfirmreject this package, so rerunning the otherwise-idempotent hardware setup still fails. Remove the obsolete stack before installing the model-specific camera package.
if omarchy-hw-acpi-present OVTI05C1; then
omarchy-pkg-add hp-elitebook-x-g2i-camera
fi
|
I can confirm this is still needed on another HP EliteBook X G2i. I'm currently running Omarchy with: Internal speakers still don't work and the audio tray falls back to Dummy Output. Headphones through the 3.5 mm jack work correctly when the HiFi profile is available. While troubleshooting, I confirmed that all four TAS2783 amps are detected over SoundWire, but the card does not expose So +1 from another EliteBook X G2i owner. Happy to test this on my machine if useful. |
|
@jlupox Thanks. The kernel side is rebased onto To test, from that branch:
One note: if you have taken HP BIOS This PR (#6596) is the installer side and needs a rebase now that upstream removed |
a5eb98f to
2214e81
Compare
|
Rebased onto
Closes #13178, where the bot notes that the camera gate misses the Flip and that the issue waits on this PR. This overlaps #7773, which gates the same install on the PCI ID. The two are complementary: that one rules out non-Panther-Lake, |
[Medium impact] The PR appears safe to merge, with the earlier non-blocking style finding still open. Findings
SummaryAdds speaker, microphone, and camera support for HP EliteBook X G2i and X Flip G2i machines on board
No new actionable issues found. Reviews (3) · Last reviewed commit: "Record who validated the EliteBook X G2i..." · Reviewed by Greptile |
| # not there. Devices with no status file are treated as present, which is what | ||
| # ACPI specifies when _STA is absent. | ||
|
|
||
| [ $# -ge 1 ] || { |
There was a problem hiding this comment.
Checks violate required Bash style
The new helper uses [ for its argument-count, directory, and readability checks. The repository requires (( )) for numeric tests and [[ ]] for string/file tests. Replace all three checks with the required Bash forms before merging.
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!
2214e81 to
42070cf
Compare
|
I looked at this pull request at 42070cf and it is not classified yet. Two models classified it separately and came to different answers, so I am leaving it unlabelled for the maintainer to decide.
The |
On a stock install this machine has no working speakers, microphone or webcam. Adds a hardware-gated script that installs the two packages from omacom/omarchy-pkgs#124, and the speaker tuning. The audio gate matches the model line; the camera gate also requires the OV05C10 sensor, so an EliteBook with a different camera module does not get it. The call goes after intel/ptl-kernel.sh: both packages pull DKMS modules, and the existing comment for intel-ipu7-camera gives the same reason. The tuning coefficients were decoded from HP's factory DTS:X Ultra data on the machine's own Windows partition. They are derived values; no vendor file is included. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
- The decoder reference pointed at a path that resolves nowhere in this
repository. It is a one-off tool that reads a vendor blob we do not
carry, so the README says where it lives instead of linking into it.
- The README showed a manual copy into /usr/share; the profile ships with
Omarchy, so it now shows the commands that turn it on.
- tuning.conf reported a calculated headroom figure as if measured. The
measured fields are pending and the calculation is kept as a note.
The kernel half of this change (widening the linux-ptl gate) is gone:
linux-omarchy is now every machine's kernel and carries the patches.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Two of the four fields docs/AUDIO-TUNING.md asks for need no capture: group delay and worst-case peak are properties of the biquad cascade. Computed with tools/analyse-filter-chain in the enablement repo, which reproduces the +3.66 dB at 1.86 kHz already noted in filter-chain.conf. The headroom figure is negative, and answers the review comment that prompted looking. The declared 0.0 described the 48 kHz bank only. The 44.1 kHz bank DTS ships peaks 2.12 dB hotter, at +5.78 dB, which puts a full-scale sine at 1.85 kHz above the limiter threshold rather than at it. Nothing clips, because that is what the limiter is for, but the tuning is not transparent at that rate and the reported number should say so. Levelling the 44.1 kHz bank would make it zero, at the cost of no longer carrying HP's coefficients bit-exact. That is a change to how the machine sounds, so it is left as a decision rather than made here. magnitude_rms_db and dynamic_range_delta_lu still need a capture run. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Measured on the reference machine, so all four fields docs/AUDIO-TUNING.md asks for are now reported. magnitude_rms_db is 0.01. The probe captured through the tuning, minus the same probe through the bare speaker sink, against the analytic response of the shipped coefficients: 104 tones, worst single point 0.03 dB. It is that small because nothing acoustic is in the path. This tuning is not fitted to a reference, so the target is the arithmetic the graph should be doing, and the figure says the filter-chain does it. dynamic_range_delta_lu is 0.1, on a 30 s pink-noise signal spanning 15.0 LU and peak-limited to -1 dBFS. The multitone probe cannot measure this at all: it is stationary, so both paths return 0.0 LU whatever the limiter did. The tool now says so rather than reporting the zero. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Three runs gave 15.0 vs 15.1, then 15.0 vs 15.0 twice. ebur128 reports LRA to 0.1 LU, so the limiter's effect on this signal sits at or below the resolution of the measurement. Reporting 0.1 would claim a change the repeat runs do not support. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The tuning matched match_sku=("D4DU1UT#ABA"). "#ABA" is HP's country code
for the US, so the identical laptop sold anywhere else reports a different
SKU and matched nothing -- working speakers with none of the voicing, which
is the exact complaint this tuning exists to fix. The packages beside it
already gate on the DMI product name, so the two disagreed about which
machines they were for.
What actually keys the tuning is the audio board: HP subsystem ID 8E86103C,
the ID the factory DTS blob is named for, reported here as PCI subsystem
0x103c:0x8e86. That would be the precise gate, but match_command is invoked
as a bare single word, so using it would mean shipping an executable next to
what are otherwise two data files. The product name is region-independent
and specific to this model and screen size, so it does not need one.
Measured on one SKU; other units are covered on the assumption they carry
the same speaker hardware, recorded in the file rather than implied. Same
distinction dell-xps-2026 draws between the XPS 14 it measured and the
XPS 16 it covers on report.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The gate's comment repeated the claim that the graph settings expect a 2944-wide readout and produce a negative crop. That reading of the log is wrong -- the numbers are edge insets, and every Intel sensor including the working OV08X40 uses the same idiom. See the camera package README. The camera still needs the bypass. What changed is that the hardware path is described as an open question rather than a closed one. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A DSDT routinely declares hardware the machine was never built with. The HP EliteBook X G2i carries OVTI08F4 and OVTI01AF nodes alongside its actual OV05C10, both with _STA 0, so grepping the HID matches a camera that is not there. The consequence on that machine is not cosmetic. intel/ipu7-camera.sh runs before hp/elitebook-x-g2i.sh, so a fresh install pulls in intel-ipu7-camera for the absent sensor, and hp-elitebook-x-g2i-camera conflicts with it. The install fails, and it fails only on a clean machine, which is where nobody is watching. ACPI already answers the question through _STA, exposed as the device's status file, so omarchy-hw-acpi-present reads that instead. Devices with no status file count as present, as ACPI specifies when _STA is absent. Machines that genuinely have the sensor are unaffected: a fitted device reports the present bit and both gates behave exactly as before. OVTI05C1:00 status=15 present -> hp-elitebook-x-g2i-camera installs OVTI08F4:00 status=0 declared -> intel-ipu7-camera no longer does Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Both HP packages now appear in omarchy-other.packages: the ISO builder folds every entry into one pacman -Syw transaction, and a missing entry fails offline installs at omarchy-pkg-add. Machines set up before ipu7-camera.sh checked _STA carry intel-ipu7-camera for a sensor the DSDT declares but the board does not fit. It conflicts with hp-elitebook-x-g2i-camera and pacman --noconfirm answers a conflict prompt with no, so setup failed on every rerun. Retire it with omarchy-pkg-drop before the add. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Same OMARCHY_ACPI_DEVICES_PATH override omacom#7773 uses for its tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The X Flip G2i is the same board, 8E86, but its product name does not contain "EliteBook X G2i", so the model match left it out. Kernel support, amp firmware and the DTS tuning all key on the board. - add omarchy-hw-hp-elitebook-x-g2i (HP board 8E86) - use it for setup and as the tuning's match_command - drop the linux-ptl and CamHAL-is-black comments; both are stale Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The speaker sink only exists once the patched kernel is booted, so the tuning cannot be turned on here. Print what to run instead of failing: a migration that exits non-zero holds back every migration after it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Rows in the shared hardware table, not a file of its own. The fake machine gains board DMI attributes and an ACPI tree with _STA, so the board detector and the sensor presence check are driven for real. Covers the Flip, which shares board 8E86 and no product name, and the OVTI08F4 node this DSDT declares for a camera that is not fitted. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Matches the keys the ASUS and Dell tunings carry. The BIOS version matters here: the amps only split left from right from 01.02.02. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
42070cf to
0a466ed
Compare
|
I read the updated diff at Classification remains unresolved. The configured second classifier, |
Adds hardware support for the HP EliteBook X G2i, a Panther Lake laptop. On a
stock install it has no working speakers, microphone or webcam.
The packages are in omacom/omarchy-pkgs#124. This PR installs them, puts the
machine on the kernel they need, and adds the speaker tuning.
What this changes
install/hardware/intel/ptl-kernel.shis widened so this machine also getslinux-ptl:The audio and camera fixes for this machine are patches to files the kernel
already ships, and they live in
linux-ptlalongside the existing XPS ones.Both machines the gate now covers have no working speakers on a stock kernel.
bin/omarchy-hw-acpi-presentis new, andinstall/hardware/intel/ipu7-camera.shnow uses it. A DSDT can declare hardware the machine was never built with: this
laptop carries
OVTI08F4andOVTI01AFnodes alongside its actual OV05C10,both reporting
_STA 0. Matching the ACPI ID alone therefore installedintel-ipu7-camerafor a sensor that is not there, and since the camera packagefor this machine conflicts with it, a fresh install failed. The helper reads the
present bit instead. Machines that genuinely have the sensor are unaffected.
install/hardware/hp/elitebook-x-g2i.shis new, following the existingasus/,apple/,lenovo/layout. Audio applies to the whole model line; the cameraalso needs the OV05C10 sensor to be fitted, so an EliteBook with a different
camera module does not get it.
default/audio/tunings/hp-elitebook-x-g2i/is new, same shape asdell-xps-2026. A 100 Hz high-pass, thirteen biquads and a limiter in front ofthe speaker sink, matched on
match_dmi=("EliteBook X G2i"). The coefficientsare HP's own factory DTS values, decoded from the machine's Windows partition.
They are derived values; no vendor file is included.
Measurements
All four fields
docs/AUDIO-TUNING.mdasks for, measured on the machine.magnitude_rms_dbbass_group_delay_swing_mslimiter_headroom_dbdynamic_range_delta_luThe last two are not typos. See the comment below.
Testing
All gates match correctly on the reference machine, SKU
D4DU1UT#ABA, and theXPS gate correctly does not. Speakers, microphone and webcam work after a cold
boot on
linux-ptl 7.1.8.arch1-2, the version built fromomacom/omarchy-pkgs#124. The tuning applies and measures as above.