Skip to content

tuxedo-drivers: 4.20.1 -> 4.25.0 - #577948

Merged
wegank merged 2 commits into
NixOS:masterfrom
Zorgosto:tuxedo-drivers-4.25.0
Nov 5, 2026
Merged

wegank merged 2 commits into
NixOS:masterfrom
Zorgosto:tuxedo-drivers-4.25.0

Conversation

@Zorgosto

@Zorgosto Zorgosto commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

New tuxedo drivers version which fixes Kernel 7.3 issues

Things done

  • Fix udev rule folder location
  • Fix make file commands
  • Tested on my Tuxedo Laptop

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 12.first-time contribution This PR is the author's first one; please be gentle! labels Oct 23, 2026
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Oct 23, 2026
@sh4k095

sh4k095 commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

I guess this would fix build failure of latest tuxedo-drivers after #571181 was merged:

> /nix/store/nnm9gdr70ihc6zc9298mzz8jpcgaciql-bash-5.3p20/bin/bash: -c: line 1: syntax error near unexpected token `('

(referencing cmd_sign=…/kmodigest$(space)$@). When will this be merged? 🙂

@mserajnik

mserajnik commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Thank you for this!

However, the rewritten no-cp-usr.patch does not apply to the 4.25.0 Makefile, so the package fails to build for both linuxPackages_latest (7.3) and linuxPackages (6.18.58):

patching file Makefile
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej

The reason is that the patch no longer has its original whitespace: the blank context lines are missing their leading space, and the context line before rm -rf build/ has a space where the Makefile has a tab. The hunk header also starts at line 21, while the change is at line 23 in 4.25.0.

This version, generated with git diff from the v4.25.0 Makefile with the same changes, applies without fuzz:

diff --git a/Makefile b/Makefile
index 757393e..33df020 100644
--- a/Makefile
+++ b/Makefile
@@ -23,14 +23,13 @@
 KDIR := /lib/modules/$(shell uname -r)/build
 
 all:
-	make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) modules
+	$(MAKE) -C $(KDIR) M=$(PWD) modules
 
 install: all
-	make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) modules_install
-	cp -r usr /
+	$(MAKE) -C $(KDIR) M=$(PWD) modules_install
 
 clean:
-	make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) clean
+	$(MAKE) -C $(KDIR) M=$(PWD) clean
 	rm -rf build/
 
 package: package-deb package-rpm package-alpm

With this patch, the PR builds for both kernels. I also run equivalent changes as an override on an InfinityBook Pro AMD Gen10 with Linux 7.3.


Side note: ideally, #578782 gets merged before or together with this PR. Otherwise, InfinityBook Pro AMD Gen9 and Gen10 laptops that run tailord will encounter the PROCHOT throttling described there.

@FliegendeWurst FliegendeWurst changed the title Tuxedo-drivers: 4.25.0 Tuxedo-drivers: 4.20.1 -> 4.25.0 Oct 25, 2026
@FliegendeWurst FliegendeWurst changed the title Tuxedo-drivers: 4.20.1 -> 4.25.0 tuxedo-drivers: 4.20.1 -> 4.25.0 Oct 25, 2026
@Zorgosto

Zorgosto commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Good catch, I made a mistake committing and removed the whitespace.
This was the original patch I tested with the tab included at the end (which also builds):

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -21,12 +21,11 @@
 KDIR := /lib/modules/$(shell uname -r)/build

 all:
-	make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) modules
+	$(MAKE) -C $(KDIR) M=$(PWD) modules

 install: all
-	make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) modules_install
-	cp -r usr /
+	$(MAKE) -C $(KDIR) M=$(PWD) modules_install

 clean:
-	make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) clean
+	$(MAKE) -C $(KDIR) M=$(PWD) clean
 	rm -rf build/

I can add your version which has the correct line number.

Also: Originally I fixed the drivers with this override in my configuration if anyone is intersted in a fix before merge:

boot.kernelPackages = pkgs.linuxPackages_latest.extend (
      kernelFinal: kernelPrev: {
        tuxedo-drivers = kernelPrev.tuxedo-drivers.overrideAttrs (_old: {
          version = "4.25.0";

          src = pkgs.fetchFromGitLab {
            group = "tuxedocomputers";
            owner = "development/packages";
            repo = "tuxedo-drivers";
            rev = "v4.25.0";
            hash = "sha256-AER+JPl3lem1OFV51VdOZAnr3Uy1BFSpEJNrE+shYis=";
          };

          postInstall = ''
          substituteInPlace files/usr/lib/udev/rules.d/* \
            --replace-quiet "/bin/bash" "${pkgs.lib.getExe pkgs.bash}" \
            --replace-quiet "/bin/sh" "${pkgs.lib.getExe pkgs.bash}"

          install -Dm0644 \
            -t "$out/etc/udev/rules.d" \
            files/usr/lib/udev/rules.d/*
        '';
        });
      }
    );

@cguentherTUChemnitz

Copy link
Copy Markdown

Maybe this acts also as a test verifying the current merge request here:
#578782 (comment)

@Zorgosto
Zorgosto force-pushed the tuxedo-drivers-4.25.0 branch from e119418 to c09e503 Compare October 26, 2026 16:53
@Zorgosto

Copy link
Copy Markdown
Contributor Author

Thank you for this!

However, the rewritten no-cp-usr.patch does not apply to the 4.25.0 Makefile, so the package fails to build for both linuxPackages_latest (7.3) and linuxPackages (6.18.58):

patching file Makefile
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej

The reason is that the patch no longer has its original whitespace: the blank context lines are missing their leading space, and the context line before rm -rf build/ has a space where the Makefile has a tab. The hunk header also starts at line 21, while the change is at line 23 in 4.25.0.

This version, generated with git diff from the v4.25.0 Makefile with the same changes, applies without fuzz:

diff --git a/Makefile b/Makefile
index 757393e..33df020 100644
--- a/Makefile
+++ b/Makefile
@@ -23,14 +23,13 @@
 KDIR := /lib/modules/$(shell uname -r)/build
 
 all:
-	make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) modules
+	$(MAKE) -C $(KDIR) M=$(PWD) modules
 
 install: all
-	make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) modules_install
-	cp -r usr /
+	$(MAKE) -C $(KDIR) M=$(PWD) modules_install
 
 clean:
-	make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) clean
+	$(MAKE) -C $(KDIR) M=$(PWD) clean
 	rm -rf build/
 
 package: package-deb package-rpm package-alpm

With this patch, the PR builds for both kernels. I also run equivalent changes as an override on an InfinityBook Pro AMD Gen10 with Linux 7.3.

Side note: ideally, #578782 gets merged before or together with this PR. Otherwise, InfinityBook Pro AMD Gen9 and Gen10 laptops that run tailord will encounter the PROCHOT throttling described there.

I added that make file without the last two lines as the package line is the same anyway. We can wait for the merge of #578782

@wegank wegank added the backport release-26.05 Backport PR automatically label Nov 5, 2026
@wegank
wegank added this pull request to the merge queue Nov 5, 2026
Merged via the queue into NixOS:master with commit 7d8853e Nov 5, 2026
25 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-26.05:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 12.first-time contribution This PR is the author's first one; please be gentle! backport release-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants