Repository navigation
Conversation
|
@meirdick Rebase confirmed on the X Flip G2i (board
Also installed Good to see the whole stack land on the new base — thanks again for the work. |
|
@cyberKrakn Thanks, that is a full pass: enumeration, calibration, resume, camera and IOMMU all match what I see here. One question: which BIOS are you on ( On the |
|
4.2: fix for HP BIOS 01.02.02 The new BIOS (sp174220, via Windows Update) describes the amps' SmartAmp function. The tas2783 driver then inits from BIOS data instead of its fixed sequence, and keeps the DSP posture the firmware image programs per side: left amps 1, right amps 4 (reads the second channel).
Verified on 8E86 / 01.02.02: four amps play, no crosstalk, sides within 1 dB. Testers on 01.01.18: no change for you. |
|
@meirdick We're on Good to know the |
|
Before this can build: |
5065550 to
861aad8
Compare
|
All three fixed, and the branch is rebased on current
Also here: a fix to Intel's The kernel is rebased onto |
|
Boot confirmation for the 7.2.5-6.2 rebase on the X Flip G2i, same board as before: Built
Camera: Suspend/resume: s2idle entry/exit clean (12 s under IOMMU: Our path is BIOS |
861aad8 to
36ba361
Compare
|
Rebased onto The kernel packaging was restructured twice since this PR opened. The patches cover board 8E86: an RT712 codec with four TAS2783A amps on SoundWire, and an OV05C10 camera on IPU7. Nine audio, one ipu-bridge, one int3472. Without them the right speakers are silent, resume takes 13 seconds, and the camera does not work. Numbered 0519, 0533, 0534-0540, 0553 and 0809. Generated with Nine of the eleven are not upstream yet. Two have mainline replacements that first appear in 7.4-rc1 and should be dropped when the base moves: the ipu-bridge link frequency ( Two package changes worth noting:
Closes omacom/omarchy#16123, #14172 and #13178 on this hardware; #16393 is a fourth. One caveat: hardware verification was done on 7.2.8-11, with identical patch content. Stable 7.2.9 to 7.2.15 touches none of the six files involved, but this exact build has not been booted. |
36ba361 to
97fa6c0
Compare
|
Hi! Just wanted to add some feedback from another HP EliteBook X G2i owner (board 8E86, BIOS 01.01.18). I've been running the patched linux-omarchy 7.2.5-6.2 kernel since October, and I can confirm that all four internal speakers and the webcam work correctly. I've also successfully upgraded to Omarchy 4.5.0 while keeping the patched kernel. The only downside is that I currently need to keep linux-omarchy and its headers pinned through IgnorePkg to avoid losing hardware support. It would be great to have these fixes integrated into the official kernel so we can return to normal kernel updates. Is there any outstanding technical blocker, or is this mainly waiting for maintainer review? Thanks to everyone working on this, especially @meirdick! |
|
Thanks. I'll send an internal message to someone on the team to get this upstream. |
|
@birkskyum and @ryanrhughes - let me know what you need to get this merged. |
|
@meirdick , this is an x86 machine - i'm working arm machines, so outside my area. |
hp-elitebook-x-g2i-audio, hp-elitebook-x-g2i-camera, hp-elitebook-x-g2i-camhal-runtime, intel-ipu7-drivers and libcamera-ov05c10, unchanged from branch hp-elitebook-x-g2i-v2 (d881977). The kernel side moves to linux-omarchy in the next commit. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Omarchy 4.0.4 installs and boots linux-omarchy and no longer installs linux-ptl. The kernel patches these packages need now ship in pkgbuilds/linux-omarchy (0520-0528, 0543, 0802). Point the audio and camera depends there, bump both pkgrel, and update the comments and docs that named linux-ptl or the old patch numbers. The TAS2783A component name patch (old 0051) is in 7.2 and is no longer listed. Drop the stock linux-headers dependency from hp-elitebook-x-g2i-camera and intel-ipu7-drivers, as omacom#454 did for the other DKMS packages: the base install supplies the matching headers, and a concrete linux-headers dependency pulls in the stock kernel's headers. No functional change to what any of the packages installs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
UCM set the four Speaker Volume trims but never Amp Volume, so the analog output gain was whatever the driver's regcache restored. On linux-omarchy 7.2.5 that came up 20 on the left pair and 12 on the right: right side ~3 dB down, tweeters 2.5 dB apart, audibly left-heavy. Set all four to 20 alongside the Speaker Volume trims. Measured matched to 0.5 dB on the tweeters afterwards. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Every package carries .omarchy/package.json; this one was missing it, so the repo could not build it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Both packages pinned their sources by commit but carried SKIP. pacman 7.1 checksums a VCS source from its checked-out tree, and the value reproduces from a fresh clone, so the pins are verified now rather than trusted. Generated with updpkgsums; makepkg --verifysource passes on both. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
TESTPLAN-v2.md was an internal QA plan, and its install steps read as package documentation for pacman -U of locally built files. It lives outside the repo now; README.package.md stays the only user-facing doc. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ov05c10_set_ctrl() read REG_TIMING_VTS for VBLANK before checking runtime PM. libcamera sets controls while the sensor is suspended, so the read went to a powered-down part and the dummy-line value came from a failed read. Move it under the power check, and stop on a failed control write instead of issuing the trigger sequence after it. Found by bprendie in omarchy-snapdragon, which carries the same Intel driver on an HP EliteBook Ultra G1q. Not upstream yet. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
… path alsa-ucm-conf now ships sof-soundwire/tas2783.conf itself (182d0122a7, after 1.2.16.1), the path this package owned. The next release would fail to install on a file conflict. - ship the Speaker device as sof-soundwire/tas2783-hp-elitebook-x-g2i.conf - add conf.d/sof-soundwire/<card long name>.conf: probed before the driver-wide file, it includes the stock card config and redirects the speaker include to our file, gated on the amps' controls existing - pin Amp Volume to 12 (17 dB) on all four amps, the value HP's firmware writes; 20 was the driver's register default - tested against a pristine 1.2.16.1 tree with and without upstream's tas2783.conf present Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The patches are in linux-omarchy, -eevdf and -muqss. Naming one of them pulled that kernel onto a machine running another, which the dependency did not do while linux-omarchy was still a meta package. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Found on 7.2.8-11: kcontrols at 9.6s, the four amps finishing calibration at 10.8, 11.9, 13.0 and 14.0s, WirePlumber enumerating at 13.6s. The Speaker sequence was abandoned part-way, so the output switches stayed off and the per-amp trim stayed at hardware maximum. Profile HiFi, graph fully linked, every level plausible, no sound. The wait now probes what breaks instead of sleeping a fixed 4s: while an amp initialises its register cache is synced over anything written, so it writes the trim and requires all four to hold it twice. About a second on a settled card. The self-heal gains that check. Gated on the Headphone Jack kcontrol: with headphones in, UCM switches the Speaker device off on purpose and the controls read identically. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
HPCAM_EXPOSURE_RANGE is documented as the way to stop AE riding maximum analog gain. It does not. At 200 ms the sensor stayed at exposure 1978 of 3687 and gain 248 of 248. Raising vertical_blanking by hand lifted the hardware ceiling to 21775 and AE still would not take it, while softisp drives the same sensor to 3687 on the same scene. Documented as known-broken rather than quietly dropped: it is the right lever if a later HAL honours it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Eleven patches for board 8E86: RT712 plus four TAS2783A amps on SoundWire, and an OV05C10 camera on IPU7. Nine audio, one ipu-bridge, one int3472. In all three kernels, pkgrel 2. Numbered 0519, 0533, 0534-0540, 0553 and 0809, into what is free on 7.2.15-1. Generated with git format-patch from the prepared 7.2.15-2 source, so every patch applies at offset 0 with --fuzz=0. Verified with makepkg --nobuild on linux-omarchy. Of the eleven, nine are not upstream yet. Two have mainline replacements that first appear in 7.4-rc1, so they go when the base moves: the ipu-bridge link frequency (f9536a8065d9) and the int3472 handshake delay (844982d3b993). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
97fa6c0 to
8668294
Compare
Confidence Score: 1/5
[Medium impact] The changes affect audio and camera use on the supported EliteBook family. Do not merge yet: the previously reported unsafe device access, legacy driver replacement, and unchanged default-kernel version remain unresolved. Findings
Fix with agent prompt### Issue 1
pkgbuilds/intel-ipu7-drivers/90-ipu7-psys.rules:undefined-1
This gives every local user access to `ipu7-psys0`, including users outside the desktop session. The new package pins the same driver commit as `intel-ipu7-camera` but omits its `0005-ipu7-psys-harden-userptr-pinning.patch`. That leaves the unchecked page-array size and unsafe buffer cleanup reachable by unprivileged users. The existing package keeps this device root-only for that reason.
Keep the device root-only-the new camera service already runs as root-and carry the existing driver fixes.
**How this was verified:** The new rule grants world read/write access, and the pinned driver is packaged without the existing fixes for its unsafe user-buffer allocation and cleanup.
### Issue 2
pkgbuilds/intel-ipu7-drivers/dkms-vision-drivers.conf:3-7
`AUTOINSTALL="yes"` installs the old `intel_cvs` module into `/updates` on the current `linux-omarchy` kernel too. That copy takes precedence over the in-tree module of the same name. Linux 7.2 needs the in-tree CVS driver to expose the camera bridge; the legacy driver does not provide it.
Copy the pre-7.2 `BUILD_EXCLUSIVE_KERNEL` restriction already used by `intel-ipu7-camera`, rather than replacing the current kernel's CVS driver.
### Issue 3
pkgbuilds/linux-omarchy/PKGBUILD:140-147
These patches change the default kernel's contents, but its version remains `7.2.15-2`, exactly as on the base branch. Users who already have that version will not receive the patched kernel through `pacman -Syu`. The two alternative kernels increase `pkgrel`, but `linux-omarchy` does not.
Increase the default kernel's `pkgrel` as well so existing installations receive the hardware fixes.
### Issue 4
pkgbuilds/hp-elitebook-x-g2i-audio/hp-elitebook-x-g2i-audio-recover:43-45
**Translated sessions trigger audio restarts.** `card_profile()` searches translated `pactl` output for the English text `Active Profile`. In a non-English user session, it returns an empty value even when the card is already on `HiFi`. The recovery loop then restarts WirePlumber three times on every login, interrupting working audio.
Run this call with `LC_ALL=C`, or read `pactl`'s JSON output instead.
```suggestion
card_profile() {
LC_ALL=C pactl list cards 2>/dev/null |
grep -A40 "platform-sof_sdw" | grep "Active Profile" | awk '{print $3}'
```
### Issue 5
pkgbuilds/intel-ipu7-drivers/PKGBUILD:undefined-33
`intel-ipu7-drivers` and the existing `intel-ipu7-camera` both install `/usr/lib/udev/rules.d/71-ipu7-hide-isys.rules`. Installing the new driver package alongside the existing camera package therefore fails with a file conflict, but this declaration names only the AUR alternative.
Declare the conflict here, or finish the split by making the existing camera package depend on the shared drivers instead of shipping them itself. The conflict in `hp-elitebook-x-g2i-camera` does not protect direct installs of this package.
### Issue 6
pkgbuilds/hp-elitebook-x-g2i-camera/PKGBUILD:undefined-55
The recipe fetches `ipu6-drivers` through a Git source but does not declare `git` in `makedepends`. The repository's builder preinstalls Git, which hides the omission; a clean Arch build environment with only the declared dependencies cannot fetch the source.
Add `git` to `makedepends` so the package can be built outside that image too.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryAdds HP EliteBook X G2i audio and camera support:
The new audio recovery script misreads healthy cards in non-English sessions and repeatedly restarts WirePlumber.
|
| @@ -0,0 +1 @@ | |||
| KERNEL=="ipu7-psys0", MODE="0666", SYMLINK+="ipu-psys0" | |||
There was a problem hiding this comment.
Unsafe camera device is world-writable. This gives every local user access to
ipu7-psys0, including users outside the desktop session. The new package pins the same driver commit as intel-ipu7-camera but omits its 0005-ipu7-psys-harden-userptr-pinning.patch. That leaves the unchecked page-array size and unsafe buffer cleanup reachable by unprivileged users. The existing package keeps this device root-only for that reason.
Keep the device root-only—the new camera service already runs as root—and carry the existing driver fixes.
How this was verified: The new rule grants world read/write access, and the pinned driver is packaged without the existing fixes for its unsafe user-buffer allocation and cleanup.
| AUTOINSTALL="yes" | ||
|
|
||
| BUILT_MODULE_NAME[0]="intel_cvs" | ||
| BUILT_MODULE_LOCATION[0]="" | ||
| DEST_MODULE_LOCATION[0]="/updates" |
There was a problem hiding this comment.
Legacy CVS replaces current driver.
AUTOINSTALL="yes" installs the old intel_cvs module into /updates on the current linux-omarchy kernel too. That copy takes precedence over the in-tree module of the same name. Linux 7.2 needs the in-tree CVS driver to expose the camera bridge; the legacy driver does not provide it.
Copy the pre-7.2 BUILD_EXCLUSIVE_KERNEL restriction already used by intel-ipu7-camera, rather than replacing the current kernel's CVS driver.
| 0533-soundwire-stream-second-dai-ports.patch | ||
| 0534-tas2783-system-resume-no-wait.patch | ||
| 0535-tas2783-startup-reinit-after-sleep.patch | ||
| 0536-sof-sdw-four-amp-two-pdis.patch | ||
| 0537-tas2783-keep-firmware-image.patch | ||
| 0538-tas2783-calibration-vendor-guids.patch | ||
| 0539-tas2783-runtime-resume-late-peripheral.patch | ||
| 0540-tas2783-firmware-described-whole-port.patch |
There was a problem hiding this comment.
Default kernel never updates. These patches change the default kernel's contents, but its version remains
7.2.15-2, exactly as on the base branch. Users who already have that version will not receive the patched kernel through pacman -Syu. The two alternative kernels increase pkgrel, but linux-omarchy does not.
Increase the default kernel's pkgrel as well so existing installations receive the hardware fixes.
| # left to bind them together. | ||
| # | ||
| # Declaring the conflict makes pacman refuse the combination instead. | ||
| conflicts=('intel-ipu7-dkms-git') |
There was a problem hiding this comment.
Driver package conflict is undeclared.
intel-ipu7-drivers and the existing intel-ipu7-camera both install /usr/lib/udev/rules.d/71-ipu7-hide-isys.rules. Installing the new driver package alongside the existing camera package therefore fails with a file conflict, but this declaration names only the AUR alternative.
Declare the conflict here, or finish the split by making the existing camera package depend on the shared drivers instead of shipping them itself. The conflict in hp-elitebook-x-g2i-camera does not protect direct installs of this package.
| arch=('x86_64') | ||
| url="https://github.com/omacom-io/omarchy-pkgs" | ||
| license=('GPL-2.0-or-later') | ||
| makedepends=('gcc' 'pkgconf') |
There was a problem hiding this comment.
Camera recipe omits Git. The recipe fetches
ipu6-drivers through a Git source but does not declare git in makedepends. The repository's builder preinstalls Git, which hides the omission; a clean Arch build environment with only the declared dependencies cannot fetch the source.
Add git to makedepends so the package can be built outside that image too.
| card_profile() { | ||
| pactl list cards 2>/dev/null | | ||
| grep -A40 "platform-sof_sdw" | grep "Active Profile" | awk '{print $3}' |
There was a problem hiding this comment.
Translated sessions trigger audio restarts.
card_profile() searches translated pactl output for the English text Active Profile. In a non-English user session, it returns an empty value even when the card is already on HiFi. The recovery loop then restarts WirePlumber three times on every login, interrupting working audio.
Run this call with LC_ALL=C, or read pactl's JSON output instead.
| card_profile() { | |
| pactl list cards 2>/dev/null | | |
| grep -A40 "platform-sof_sdw" | grep "Active Profile" | awk '{print $3}' | |
| card_profile() { | |
| LC_ALL=C pactl list cards 2>/dev/null | | |
| grep -A40 "platform-sof_sdw" | grep "Active Profile" | awk '{print $3}' |
Prompt To Fix With AI
This is a comment left during a code review.
Path: pkgbuilds/hp-elitebook-x-g2i-audio/hp-elitebook-x-g2i-audio-recover
Line: 43-45
Comment:
**Translated sessions trigger audio restarts.** `card_profile()` searches translated `pactl` output for the English text `Active Profile`. In a non-English user session, it returns an empty value even when the card is already on `HiFi`. The recovery loop then restarts WirePlumber three times on every login, interrupting working audio.
Run this call with `LC_ALL=C`, or read `pactl`'s JSON output instead.
```suggestion
card_profile() {
LC_ALL=C pactl list cards 2>/dev/null |
grep -A40 "platform-sof_sdw" | grep "Active Profile" | awk '{print $3}'
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Replaces #124, which targeted
linux-ptl. Omarchy 4.0.4 bootslinux-omarchyand no longer installs
linux-ptl, so the kernel side moves there.On a stock install the HP EliteBook X G2i (Panther Lake, board 8E86, SKU
D4DU1UT#ABA; the X Flip G2iD4VJ0UA#ABAis the same board) has nospeakers, no microphone and no webcam. With this PR it has four-speaker stereo
with the factory calibration applied, a working microphone and headset jack,
a webcam on the hardware ISP, and a resume that the amplifiers no longer hold
up.
Kernel
Eleven patches added to
pkgbuilds/linux-omarchy, numbered into the existingranges with gaps kept. Every patch applies at offset 0 and fuzz 0 on 7.2.5-4,
was regenerated with
git format-patchfrom a tree with the base applied, andcarries a full header (subject with subsystem prefix, body, Signed-off-by, and
the upstream SHA or list
Link:where one exists). They are unsigned; thesource=()entries have no.sigcompanion, the way7b11c97("Fixunsigned patch sources for Omarchy kernels") listed them.
052005210522052305240525173cb3147ba2does the hw_params half in the codec and the.set_tdm_slotplumbing has no remaining purpose, so drop the whole patch there; still needed on 7.2.y052605273e56757584d605280543f9536a8065d9for 7.4;b883954d842f(7.4) restructures the table, so the hunk needs a rebase before it is dropped0802844982d3b993(200 ms, Cc stable); on a 7.3 baseedd0dd59aca0changes.hidto.hids[]firstNine patches from #124 are already in this base and were dropped:
0020,0028(carried as0400/0401),0029(0350),0030(stable 7.2.5),0055/0056(stable 7.2.5),0057(0510),0058/0059(0511).pkgrelis4.1for the local build here so it sorts between the published4and the next5; set it to whatever the next release is.Packages
hp-elitebook-x-g2i-audio,hp-elitebook-x-g2i-camera,hp-elitebook-x-g2i-camhal-runtime,intel-ipu7-driversandlibcamera-ov05c10come over from #124 unchanged, then the audio and camerapackages switch their kernel dependency to
linux-omarchyand drop the stocklinux-headersdependency as #454 did for the other DKMS packages. Packagecontents are unchanged;
makepkg --printsrcinfoshows the dependency change.Verification
Verified on the reference board on
linux-ptl 7.2.3.arch1-5with the samepatches before the rebase: four amplifiers each on their own channel, left and
right where the chassis puts them; factory calibration found for all four
unique ids; camera on
engine=camhalfrom a cold start; audio back aftersuspend without the amplifiers holding up resume. A second board (@cyberKrakn, X Flip G2i) confirmed the
camera and the stereo topology on
7.2.3.arch1-4, and reported the late-ampruntime-resume failure that
0528fixes; the retest with0528is pending.For this rebase:
makepkg -oapplies all 102 patches with no offset or fuzz;the seven objects the patches touch compile with zero warnings at
W=1;linux-omarchy 7.2.5-4.1builds to completion in 43 minutes on 8 threads(both packages produced; the only compiler warnings in the log are two
-Wmaybe-uninitializedintools/lib/bpf/libbpf.c, outside anything thisPR touches). In the built modules:
snd-soc-tas2783-sdw.kohasset_tdm_slot,fw_program, the HP GUID bytes, thefactory calibration appliedandstarting the stream without itstrings, and no__pm_runtime_suspend/__pm_runtime_set_statusreferences;snd-soc-sof-sdw.kohas the
splitting into 2 PDIsstring;intel_skl_int3472_discrete.kotheOVTI05C1entry;snd-soc-acpi-intel-match.kothe dummy topology name; andsdw_stream_add_master()insoundwire-bus.kois 192 instructions against157 in the stock 7.2.5-4 module.
Not yet verified: a boot of
7.2.5-4.1-omarchyon the board.linux-omarchyturns
INTEL_IOMMU_DEFAULT_ONon wherelinux-ptlhad it off; the IPU7 andXe have run only in identity mode here, so the first boot should check
/sys/kernel/iommu_groups/*/typeand, if the camera or display misbehave, tryiommu=pt.On the next base bump
0510will conflict ontas2783-sdw.cbecause 7.2.6 contains08331ff6fffaandbfa756f3b8bf, which0510also adds. Once0510isrefreshed,
0521and0528should still apply; they were regenerated againstthe
0510versions of those hunks.f9536a8065d9: drop0543.844982d3b993: drop0802.0525(173cb3147ba2does the same in the codec).0523and
0524are still needed for four amplifiers.0522when jml's v2 lands or Baojun Xu's "firmware download status check"(v4, patchwork 14815978) is merged; re-check
0526against the same patch.0527if the GUID table or his second#defineis merged.intel_ipu6driver (2f4ffd14b6c0,"media: ipu6: Enable support for IPU 7 and IPU 7.5", a 45-patch series).
With
CONFIG_VIDEO_INTEL_IPU6_IPU7on, the Panther Lake IPU7.5 binds tointel_ipu6by default and the in-treeintel_ipu7steps back (moduleoptions in both drivers move it either way). The
intel-ipu7-driversDKMSmodules and the CamHAL runtime are built around the IPU7 driver, so that
base bump needs the camera stack re-tested, not just the patches
re-applied.
Not a bug, so nothing to carry:
tas2783-sdwrequests8E86-2-9.binandthe like and
linux-firmwareships8E86-2-0x9.binsymlinked to15E2-0-0x8.bin. That alias is Arch'smake dedupcollapsing byte-identicalfiles, not an upstream rename; the upstream
8E86files are regular files.The audio package's filename symlinks stay as they are.
Addendum:
hp-elitebook-x-g2i-audio1.1.0-6 pins the per-amp analog gain (Amp Volume) in UCM. On this base the regcache restored 20 for the left pair and 12 for the right, an audible left-heavy imbalance; pinned, the tweeters measure within 0.5 dB.Closes #124.
🤖 Generated with Claude Code