mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[PR #90] [CLOSED] mkinitcpio: use plain gpu_unlock module name #143
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Zagitta/gpu-unlock/pull/90
Author: @xkeyC
Created: 10/25/2026
Status: ❌ Closed
Base:
main← Head:fix/mkinitcpio-systemd-modules-load📝 Commits (1)
7aa4a09mkinitcpio: use plain gpu_unlock module name📊 Changes
2 files changed (+6 additions, -4 deletions)
View changed files
📝
packaging/boot/mkinitcpio.conf(+4 -2)📝
tests/test_packaging.py(+2 -2)📄 Description
Problem
packaging/boot/mkinitcpio.confadds the module asgpu_unlock?. The trailing?is mkinitcpio's own "optional module" syntax and is stripped when mkinitcpio copies the module into the image, but the string stored inMODULESis used verbatim by the systemd hook:systemd-modules-load then tries to load a module named
gpu_unlock?, which is not a valid module name, and fails. The module and its firmware are in the initramfs, butgpu_unlocknever runs: no FWSEC/FLR lines, no unlock, and the card stays at half rate. On Arch (and any image built with the systemd hook) this makes the package look broken while giving no useful error. The?suffix was meant to tolerate a missing module at image build time, not at modules-load time.Fix
Use the plain module name
gpu_unlockin the drop-in, keep the optional handling when an existing entry is matched, add a comment explaining the constraint, and update the packaging test's expected result.Validation
Arch Linux, kernel
7.2.8-zen1-2-zen, mkinitcpio 42.2,HOOKScontainssystemd:/etc/modules-load.d/MODULES.confcontainedgpu_unlock?;lsmodhad nogpu_unlockafter boot.gpu_unlock; the module loads at boot (refcount 0, inert withouttargets=).gpu_unlock.targets=0000:01:00.0on an RTX 3060 (10de:2504) completed the transaction:FWSEC: reading PROM,selector result: SS0=0x88888888 matched=1,PCIe FLR returned: result=0,gpu_unlock: unlocked; the RM getter reportedfmla32/imla4changing from 1 (half) to 0 (full).python3 -m unittest tests.test_packagingpasses; no other changes.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.