Repository navigation
Open
Labels
0.kind: bugSomething is broken
Description
Nixpkgs version
- Stable (26.05)
Describe the bug
After linux 7.3 update the tuxedo-driver package does not build anymore.
Steps to reproduce
nix build github:NixOS/nixpkgs/nixos-26.05#linuxPackages_latest.tuxedo-drivers
Minimal reproducer
Expected behaviour
It should build. Also unclear for me, if it is related to the point that the drivers package got outdated:
https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers
A current version is 4.25.0
Screenshots
No response
Relevant log output
error: build of '/nix/store/a4dhqb1r2d6izf4gssr6npfardx58fcl-tuxedo-drivers-7.3-4.20.1.drv' on 'ssh-ng://remotebuild@runner-1' failed: Cannot build '/nix/store/a4dhqb1r2d6izf4gssr6npfardx58fcl-tuxedo-drivers-7.3-4.20.1.drv'.
Reason: builder failed with exit code 2.
Output paths:
/nix/store/19la2xsk40ylq8g4m143lsim18rydsz9-tuxedo-drivers-7.3-4.20.1
Last 25 log lines:
> src/clevo_acpi.c:258:16: note: (near initialization for 'clevo_acpi_driver')
> src/clevo_acpi.c:264:10: error: 'struct acpi_driver' has no member named 'drv'
> 264 | .drv.pm = &clevo_driver_pm_ops
> | ^~~
> src/clevo_acpi.c:264:19: warning: excess elements in struct initializer
> 264 | .drv.pm = &clevo_driver_pm_ops
> | ^
> src/clevo_acpi.c:264:19: note: (near initialization for 'clevo_acpi_driver')
> src/clevo_acpi.c:268:1: warning: data definition has no type or storage class
> 268 | module_acpi_driver(clevo_acpi_driver);
> | ^~~~~~~~~~~~~~~~~~
> src/clevo_acpi.c:268:1: error: type defaults to 'int' in declaration of 'module_acpi_driver' [-Wimplicit-int]
> src/clevo_acpi.c:268:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
> src/clevo_acpi.c:250:27: error: storage size of 'clevo_acpi_driver' isn't known
> 250 | static struct acpi_driver clevo_acpi_driver = {
> | ^~~~~~~~~~~~~~~~~
> src/clevo_acpi.c:250:27: warning: 'clevo_acpi_driver' defined but not used [-Wunused-variable]
> make[5]: *** [/nix/store/nwbp0bvjzvhbf4w6mximhl3ws44vrrj3-linux-7.3-dev/lib/modules/7.3.0/source/scripts/Makefile.build:290: src/clevo_acpi.o] Error 1
> make[4]: *** [/nix/store/nwbp0bvjzvhbf4w6mximhl3ws44vrrj3-linux-7.3-dev/lib/modules/7.3.0/source/scripts/Makefile.build:551: src] Error 2
> make[3]: *** [/nix/store/nwbp0bvjzvhbf4w6mximhl3ws44vrrj3-linux-7.3-dev/lib/modules/7.3.0/source/Makefile:2229: .] Error 2
> make[2]: *** [/nix/store/nwbp0bvjzvhbf4w6mximhl3ws44vrrj3-linux-7.3-dev/lib/modules/7.3.0/source/Makefile:248: __sub-make] Error 2
> make[2]: Leaving directory '/build/source'
> make[1]: *** [/nix/store/nwbp0bvjzvhbf4w6mximhl3ws44vrrj3-linux-7.3-dev/lib/modules/7.3.0/source/Makefile:248: __sub-make] Error 2
> make[1]: Leaving directory '/nix/store/nwbp0bvjzvhbf4w6mximhl3ws44vrrj3-linux-7.3-dev/lib/modules/7.3.0/build'
> make: *** [Makefile:29: all] Error 2
For full logs, run:
nix log /nix/store/a4dhqb1r2d6izf4gssr6npfardx58fcl-tuxedo-drivers-7.3-4.20.1.drv
error: Cannot build '/nix/store/a4dhqb1r2d6izf4gssr6npfardx58fcl-tuxedo-drivers-7.3-4.20.1.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/19la2xsk40ylq8g4m143lsim18rydsz9-tuxedo-drivers-7.3-4.20.1Additional context
No response
System metadata
❯ nix-shell -p nix-info --run "nix-info -m"
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
- system:
"x86_64-linux" - host os:
Linux 7.2.11, NixOS, 26.05 (Yarara), 26.05.20261018.8ce7336 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.34.9 - nixpkgs:
/nix/store/jp4c6jcd6sr11az6r2754d2ycify5ph1-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reacted by Jonathan Berrisch, tnibler, Michael Serajnik, Very blank, Noah Biewesch, ksbram, Philipp Görz, Adrian Wyssmann, Jost Alemann, Kiril Mihaylov and 1 more
Reacted by Jonathan Berrisch
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is broken
Activity
mserajnik commentedon Oct 21, 2026
tuxedo-driversalso fails before reaching the 7.3 compile errors on nixos-unstable (02c087f), and not only for 7.3;linuxPackages_7_2.tuxedo-drivers(7.2.11) fails as well.This seems to be caused by the module signing flags from #571181. The make flags now include
cmd_sign=/nix/store/...-kmodigest-0.1.0/bin/kmodigest$$(space)$$@, and thealltarget intuxedo-drivers' own Makefile passes them through the shell again (make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) modules), where the parenthesis breaks:Calling the kernel's build directly (
make -C $KDIR M=$PWD modules) instead of the package'salltarget would presumably avoid this. Of course, the 7.3 errors still need a newertuxedo-driversrelease.Hold creek's kernel modules at nixpkgs fe13242
fxthiry commentedon Oct 21, 2026
Can confirm @mserajnik's analysis. This override works for me on 7.3 (unstable
02c087f, InfinityBook Pro Gen8; Fn keys and backlight OK):$(MAKE)instead ofmake … $(MAKEFLAGS)fixes the(error from the kmodigest flags.struct acpi_driverchanges).usr/tofiles/usr/in 4.21.0. That's why r-ryantm has been failing since then (logs). It also picks the_rctags.rmis for linux: System.map in kernel.dev makes external modules run depmod, breaking aggregateModules (v4l2loopback) #576406 (DEPMOD=trueworks too).feat(tuxedo): ship an overlay fixing the driver on kernel 7.3
mserajnik commentedon Oct 22, 2026
I tested a similar override on an InfinityBook Pro AMD Gen10 with Linux 7.3 (02c087f). My variant removes
$(MAKEFLAGS)from the Makefile and setsDEPMOD=true.However, after a minute or two of sustained load, every core drops to about 610 MHz (apparently the CPU's minimum) and does not recover to normal speeds even after the load ends, until rebooting. I do not see anything in the journal relating to the clock drop.
I never had this issue on Linux 7.2.10 with tuxedo-drivers 4.20.1 or any other previous versions, so this seems to be either a Linux 7.3 or tuxedo-drivers 4.25.0 bug, potentially specific to this hardware. I have reported it upstream here (and reverted to Linux 7.2.10 with tuxedo-drivers 4.20.1 for now): https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers/-/work_items/405
cguentherTUChemnitz commentedon Oct 23, 2026
How should we continue from here? Do you @fxthiry think that this can be already placed a a package update merge-request, or should be something elsde discussed about the changed module loading here?
mserajnik commentedon Oct 23, 2026
I am debugging this further at the moment and there is definitely a bug in tuxedo-drivers 4.25.0 that seems unrelated to 7.3, since I can reproduce it under 7.2.10 too. It causes
PROCHOTand thus throttles the CPU. Will update once I know the exact cause.fxthiry commentedon Oct 23, 2026
@mserajnik a data point for #405: I can't reproduce it on a TUXEDO InfinityBook Pro Gen8 (MK1), Linux 7.3.0 + 4.25.0 (same override as above, driver code unpatched), freshly booted.
PH4PRX1_PH6PRX1, BIOS N.1.10A08 (2024-01-30), EC 1.26intel_pstateactive, governorpowersavebalanced, thermald running; no fan-control daemon (no TCC, no tailord), sotuxedo_iois loaded but nothing talks to itMy test differs from yours: 4 minutes of pure CPU load on all 20 threads (one
yes > /dev/nullper thread), then 2 minutes idle, then a 5 s single-thread burst, sampling/proc/cpuinfoevery 10 s.The clock always recovered, and the kernel logged nothing. EPP was
balance_poweron battery andbalance_performanceon AC. The kernel'sthermal_throttlecounters stayed at 0, but those don't count EC-asserted PROCHOT, so they don't rule that out. The all-core clock was lower on AC than on battery. The battery was charging at about 34 W at the time, which may explain it, but I haven't looked into it.So either it's specific to your board/EC, or it needs something my setup doesn't do. The obvious difference is tailord, which you mention driving the fans through
tuxedo_io. Have you tried reproducing it with tailord stopped?mserajnik commentedon Oct 23, 2026
Edit: The fan table revert in the override below is not the right workaround, and my conclusion about a targeted fix for a nixpkgs update is incorrect too. See here.
@fxthiry You just commented while I was writing this comment, I found the cause:
I found the cause of the throttling: tuxedo-drivers commit 95e30d5, first released in 4.22.0. It makes
uw_init_fanwrite0x01instead of0x00as the base speed of the fan tables, and on my InfinityBook Pro AMD Gen10 the embedded controller then assertsPROCHOTunder load. The kernel version does not matter here; 4.25.0 causes the same problem on 7.2.10 as it does on 7.3. I bisected it and updated the upstream issue with the details: https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers/-/work_items/405#note_4075024268uw_init_fanonly runs when software controls the fans, such as tailord or TUXEDO Control Center, and only on boards with "universal EC fan control". The commit was specifically meant for the InfinityBook Pro Gen9 AMD, where reverting it probably brings back the fan burst it works around. So if upstream has not fixed it by then, a nixpkgs update to 4.25.0 should contain a targeted fix, not a revert (for example, one that applies the workaround only to the Gen9 AMD).This is my full override for nixos-unstable (02c087f), which runs without problems on 7.3 now, including under load:
substituteInPlacereverts the fan table values from 95e30d5. This should obviously only be used if the throttling happens on the hardware used.DEPMOD=trueis for linux: System.map in kernel.dev makes external modules run depmod, breaking aggregateModules (v4l2loopback) #576406..ko.cerfrom linux: aggregateModules fails when external kernel modules lack .ko.cer files #575192, and it can go once linuxPackages.yt6801: build with kernelModuleMakeFlags #577453 is merged (and available in the channel used).cguentherTUChemnitz commentedon Oct 23, 2026
@mserajnik , slightly of topic
Since we are here deeply on fan in combination with the InfinityBook Pro AMD Gen10:
AaronErhardt/tuxedo-rs@03e810e
I needed to patch tuxedo-rs for this running currently on a flake build from source for this. Main problem i discovered back than was that this device has two fans and one is registered as cpu and one is registered as gpu fan, when not running tcc or tuxedo-rs. So when doing sustained load on just cpu, only one fan gets spun up to do the cooling load and the other one idles. MAybe also check on your side for that effect. With the linked change i was properly able to switch the device into overboost mode (65W TDP) and get propper sustained load with not too high temperatures. You can easily check with you hand if the airflow is present for both.
mserajnik commentedon Oct 23, 2026
@cguentherTUChemnitz
Thanks for this, as it turns out not off-topic at all:
This shows that the fan table revert I mentioned in my comment above is not the right fix. The throttling only happens because tailord 0.3.1, which nixpkgs packages as
tuxedo-rs, controls only one of the two fans on the InfinityBook Pro AMD Gen9 and Gen10. tuxedo-rs main fixes that (AaronErhardt/tuxedo-rs#185), and with it the unmodified 4.25.0 runs without throttling for me, with both fans running (I somehow never noticed that only one was running under load with 0.3.1, but I was able to confirm this too). I added that info to the upstream issue and closed it accordingly, since it is not a tuxedo-drivers bug.So I dropped the second
substituteInPlacefrom my override and use a newer tuxedo-rs. This is my full overlay now:cguentherTUChemnitz commentedon Oct 23, 2026
So that means, we should aim for https://github.com/AaronErhardt/tuxedo-rs to make a new tag / release that we can version bump here in nixpkgs to properly solve it?
mserajnik commentedon Oct 23, 2026
From what I understand, a release would be the cleanest way. But the fix consists of two small commits to a single file (from AaronErhardt/tuxedo-rs#184 and AaronErhardt/tuxedo-rs#185), and both apply cleanly to 0.3.1 as patches. 0.3.1 with these builds on nixos-unstable with the existing
cargoHash(neither commit touches the dependencies):These are the only changes to the hardware layer since 0.3.1, so the fan detection then matches main, which I tested on my own InfinityBook Pro AMD Gen10. So nixpkgs could apply these patches downstream to fix the throttling issue that would be introduced once
tuxedo-driversgets bumped to 4.25.0 and to get the second fan running at all (which is already a problem right now).Side note: since this concerns
tuxedo-rsand nottuxedo-drivers, it should probably be a separate PR.cguentherTUChemnitz commentedon Oct 23, 2026
Exactly my thinking. That means we could already start a merge request to version-bump tuxedo-drivers for nixpkgs, right? But this still needs this postpatch makefile stuff or should we wait for something settling there on kernel depmod changes settling here?
mserajnik commentedon Oct 23, 2026
Yes, I think the
tuxedo-driversupdate can proceed regardless. I am not comfortable making that PR myself since I am quite new to NixOS, but from what I can tell, these changes are needed besides the version and the hash:$(MAKEFLAGS)from the kernel make calls in the top-levelMakefile, for example withsubstituteInPlace Makefile --replace-fail ' $(MAKEFLAGS)' ""inpostPatch. That is about thecmd_signflag from linux: generate deterministic module signatures and certificates #571181, not about depmod.postInstallfromusr/lib/udevtofiles/usr/lib/udev, since upstream moved it in 4.21.0.Depmod does not need any adjustments anymore: on master,
kernelModuleMakeFlags(which the package uses) already containsDEPMOD=true(since b46ebdd). And the existingno-cp-usr.patchstill applies to 4.25.0.mserajnik commentedon Oct 25, 2026
Someone opened a PR to update tuxedo-drivers to 4.25.0 here: #577948
mserajnik commentedon Oct 25, 2026
And I opened a PR to apply those patches to tuxedo-rs 0.3.1 while we wait for a new upstream release: #578782
fix(kernel): build signed out-of-tree modules for CachyOS kernels
silikeite commentedon Oct 27, 2026
Question here: Is this only supposed to affect linux 7.3 or also 6.18? Not sure if that should be a separate bug to this one.
BerriJ commentedon Oct 29, 2026
The reason why the build fails is #571181 and since this was merged, the build failure happens regardless of 6.18 or 7.3. I'm really eager for the fix being merged. Tried to craft an overalay from PR #577948 but I wasn't succesfull with it.
BerriJ commentedon Nov 2, 2026
While waiting I was able to create a working overlay. Maybe someone else also wants to use it while we wait for the PR's to get merged (and reach the channels). Below you find the overlay for tuxedo-drivers. I'm not using tuxedo-rs so thats left out.
Overlay
Make sure to include an empy last line in no-cp-usr.patch.
mserajnik commentedon Nov 2, 2026
@BerriJ #577453 got merged a while ago so I think you can remove the yt6801 part.
BerriJ commentedon Nov 2, 2026
Thanks for the hint! It hasn't been in nixos-unstable when I created this overlay (I think 3 days ago) so I thought its still needed but now it is. I have adjusted my previous comment and remove the yt6801 part. Thanks! :)
cguentherTUChemnitz commentedon Nov 2, 2026
@BerriJ
I am currently using this config for TUXEDO InfinityBook Pro 14 - Gen10 - AMD, until we get the merges through:
config
The nixos-hardware input is a flake input from: https://github.com/NixOS/nixos-hardware/
vbrandl commentedon Nov 2, 2026
https://github.com/AaronErhardt/tuxedo-rs/releases
There have been new releases in tuxedo-rs. Once those get released in nixpkgs, the kernel should build again, I guess?
Will this still get into NixOS 26.05, or do we have to use unstable or wait for 26.11?
mserajnik commentedon Nov 2, 2026
@vbrandl
There is already a PR open with the patches applied that make it work with the old version: #578782
I will update it to bump the version instead tomorrow when I find the time.Edit: Found some time today still, so I updated it already.
I will also tag it for backporting once it got merged, so 26.05 should get the fix too.
devurandom commentedon Nov 25, 2026
The fix for 26.05 (#583561) requires someone to approve and merge. 🙏
Similarly, the fix for the overheating issue for 26.05 (#583557) is also waiting for a review. 🙏