Skip to content

tuxedo-rs: 0.3.1 -> 0.3.2 - #578782

Merged
wegank merged 1 commit into
NixOS:masterfrom
mserajnik:tuxedo-rs-second-fan
Nov 5, 2026
Merged

wegank merged 1 commit into
NixOS:masterfrom
mserajnik:tuxedo-rs-second-fan

Conversation

@mserajnik

@mserajnik mserajnik commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

tailord 0.3.1 detects only one of the two fans on the TUXEDO InfinityBook Pro AMD Gen9 and Gen10 (model ID 26), so the second fan stays idle. Since tuxedo-drivers 4.22.0, the driver writes a base speed of 1 to both fan tables when software takes over the fans, and with the second fan left at that speed, the embedded controller asserts PROCHOT under load and holds the CPU at its lowest clock.

Once #577948 updates tuxedo-drivers from 4.20.1 to 4.25.0, the PROCHOT issue will affect these laptops when they run tailord. Details can be found in https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers/-/work_items/405 and #576266.

Upstream fixed the fan detection in AaronErhardt/tuxedo-rs#184 and AaronErhardt/tuxedo-rs#185 and released it in tailor 0.3.2, so this PR updates tuxedo-rs to that release. The tailor-v0.3.2 tag is main at 74bbabe plus the release commit. Since 0.3.1 from April 2024, it also brings charging profiles in tuxedo_sysfs, a minimum fan speed in tailord that now starts at 75 °C and reaches 100% at 95 °C (previously 50 °C and 100 °C), a fix for profiles without an LED mode, and dependency updates.

I tested this on an InfinityBook Pro AMD Gen10 with Linux 7.3 and tuxedo-drivers 4.25.0, with main at 74bbabe (the same code as this release) on nixos-unstable:

  • tailor_hwcaps reports Number of fans: 2 (1 with 0.3.1), and both fans run.
  • A four-thread load holds about 4.5 GHz at 45 W and 90 °C, with no PROCHOT. With the unchanged 0.3.1, the same load drops every core to about 610 MHz within 15 seconds.

The 0.3.2 build reports tailor 0.3.2, and versionCheckPhase passes when enabled.

Note that tailor-gui shares the source, so its cargoDeps hash changes as well, and it builds without errors. Its version in nixpkgs is still 0.2.3, while the version in its Cargo.toml has been 0.2.5 since tuxedo-rs 0.3.1. So that mismatch predates this PR, and since tailor-gui currently has no maintainer and I do not use it, I did not change it.

I used Claude Code (Claude Opus 5.5) to find the cause, write the change, run the builds and tests, and draft this PR description (I ended up using it largely as-is, with some minor wording changes). I also reviewed and tested the change myself. The commit carries the Assisted-by: trailer.

Things done

@nixpkgs-ci
nixpkgs-ci Bot requested a review from xaverdh October 25, 2026 12:37
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. llm-assisted Contributions that include code generation with LLMs labels Oct 25, 2026
@mserajnik

Copy link
Copy Markdown
Member Author

@cguentherTUChemnitz since you have the same laptop and wrote one of the upstream fixes (AaronErhardt/tuxedo-rs#185), could you test this and review it? xaverdh, the maintainer of tuxedo-rs, recently stepped down from tuxedo-drivers because he no longer has a TUXEDO device (#577956), so he may not be able to test this himself.

@mserajnik mserajnik mentioned this pull request Oct 25, 2026
4 of 13 tasks
@cguentherTUChemnitz

cguentherTUChemnitz commented Oct 26, 2026 •

Copy link
Copy Markdown

@mserajnik

I am running nixos 26.05 with those patches here to verify:

  # https://github.com/NixOS/nixpkgs/pull/578782
  # Second fan detection on InfinityBook Pro AMD. Uses the package expression from the PR head.
  nixpkgs.overlays = [
    (final: _prev: {
      tuxedo-rs = final.callPackage (final.fetchurl {
        url = "https://raw.githubusercontent.com/NixOS/nixpkgs/fcf0b1fb075276f7384a2abead5fb78a12781f30/pkgs/by-name/tu/tuxedo-rs/package.nix";
        hash = "sha256-UNbLZ8R8Z8uiMmQRwJe2XqP/EqcOUFGzZ17uAqF+5jg=";
      }) { };
    })
  ];

  # https://github.com/NixOS/nixpkgs/pull/577948#issuecomment-6401766211
  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/*
          '';
          });
        }
      );

I can verify on TUXEDO InfinityBook Pro AMD Gen10:

  • i can switch to overboost mode using tailor-rs ui tool
  • i can run stress-ng -c 24 produces 65W power reading in btop --> both fans are running and temps are ~80° Celsius
  • i run on kernel 7.3.0

My takeway: everything works as expected.

@xaverdh

xaverdh commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Indeed I can no long test this. If somebody wants to take over as maintainer, feel free to do so.

@mserajnik

Copy link
Copy Markdown
Member Author

@cguentherTUChemnitz

Thanks a lot for testing! Could you also approve the PR through "Review changes"? An approval from someone besides me with the hardware probably makes it easier to get this merged.

@xaverdh

Thanks for the quick reply. I would be happy to take over maintaining tuxedo-rs, since I use it on my InfinityBook Pro AMD Gen10. I will open a separate PR that adds me as a maintainer (as described in maintainers/README.md).

@cguentherTUChemnitz, would you want to maintain it as well? With two of us using the same hardware, one of us can usually test changes. If you want to, you can also open a PR to get added.

@mserajnik mserajnik mentioned this pull request Oct 26, 2026
2 of 13 tasks

@cguentherTUChemnitz cguentherTUChemnitz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ;)

Nice small patchset, good workaround for the not-yet released state of tailor-rs. Already tested on my side

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 26, 2026
@mserajnik

Copy link
Copy Markdown
Member Author

For a committer looking at this: I became a maintainer of tuxedo-rs with #579253, after opening this PR. xaverdh is still listed as a maintainer, but he can no longer test it (see his comment above). With cguentherTUChemnitz's approval on the same hardware, I think this is ready to merge.

@nixpkgs-ci nixpkgs-ci Bot added the 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. label Oct 26, 2026
@mserajnik

mserajnik commented Oct 29, 2026 •

Copy link
Copy Markdown
Member Author

@Sigmanificient, would you have time to review this? tuxedo-drivers currently fails to build (for every kernel on nixos-unstable, and for linuxPackages_latest on 26.05, see #576266), and the fix for that in #577948 is waiting for this PR, because without it the CPU on the InfinityBook Pro AMD Gen9 and Gen10 gets throttled under load (see PR description).

0.3.2 detects both fans on the InfinityBook Pro AMD Gen9 and Gen10.
tailord 0.3.1 detects only one, so the second fan stays idle, and with
tuxedo-drivers 4.22.0 and later the embedded controller then also
asserts PROCHOT under load and holds the CPU at its lowest clock.

tailor-gui builds from the same source, so its cargo hash changes too.

Changelog: https://github.com/AaronErhardt/tuxedo-rs/releases/tag/tailor-v0.3.2

Assisted-by: Claude Code (Claude Opus 5.5)
@mserajnik
mserajnik force-pushed the tuxedo-rs-second-fan branch from fcf0b1f to ada2463 Compare November 2, 2026 22:25
@mserajnik mserajnik changed the title tuxedo-rs: detect the second fan on InfinityBook Pro AMD tuxedo-rs: 0.3.1 -> 0.3.2 Nov 2, 2026
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! and removed 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Nov 2, 2026
@mserajnik

Copy link
Copy Markdown
Member Author

tuxedo-rs 0.3.2 is out with both fan fixes, so I changed this PR to a plain version bump. The release is main at 74bbabe plus the release commit, which is the code I have been testing.

@yzhou216

yzhou216 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (c964f36)

Command: nixpkgs-review pr 578782
Commit: ada24634829989f36121226dff910ae796d39013 (subsequent changes)
Merge: 748f157d0016ca2ab4a0e3afd0c3dbcf857103ad

Logs: https://github.com/yzhou216/nixpkgs-review-gha/actions/runs/41592686139/attempts/1

Download packages from cache:
  • x86_64-linux
    nix-store -r \
      --option binary-caches 'https://cache.nixos.org/ https://yzhou216.cachix.org' \
      --option trusted-public-keys '
        cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
        yzhou216.cachix.org-1:O7nGwQnLGGBGE8zYFMipVzPVN956FcV57y9SqwEP+O8=
      ' \
      /nix/store/wglq82kh5s85sbb7zk95y92r3k08l7fk-tuxedo-rs-0.3.2 \
      /nix/store/rfvkwfb9knk1hcaamr1dzc6n8x8a6sl1-tailor_gui-0.2.3
  • aarch64-linux
    nix-store -r \
      --option binary-caches 'https://cache.nixos.org/ https://yzhou216.cachix.org' \
      --option trusted-public-keys '
        cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
        yzhou216.cachix.org-1:O7nGwQnLGGBGE8zYFMipVzPVN956FcV57y9SqwEP+O8=
      ' \
      /nix/store/vxdhp31n7g1jr7carzmvqgvm06i180vw-tailor_gui-0.2.3 \
      /nix/store/kn4r0z7yj1rbnqzy5jxlv346acipgpns-tuxedo-rs-0.3.2

x86_64-linux

✅ 2 packages built:
  • tuxedo-rs
  • tailor-gui

aarch64-linux

✅ 2 packages built:
  • tuxedo-rs
  • tailor-gui

@yzhou216 yzhou216 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved automatically following the successful run of nixpkgs-review.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Nov 3, 2026

@cguentherTUChemnitz cguentherTUChemnitz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean version bump here. Nothing unexpected visible.

@mserajnik

mserajnik commented Nov 5, 2026 •

Copy link
Copy Markdown
Member Author

@wegank, would you have time to review this? I asked Sigmanificient before (see a comment above), but he did not respond, so I assume he did not have time.
Edit: Thanks, that was quick!

This PR is now a plain version bump to the new upstream release, so it hopefully should not be controversial. It would be great to get this and #577948 merged soon so that TUXEDO users running nixos-unstable can update without requiring an overlay as a workaround.

Once this is merged, I plan to label it for a backport to 26.05 as well, so that the tuxedo-drivers update can be backported too (linuxPackages_latest also fails to build on 26.05).

@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 9e99dab Nov 5, 2026
36 checks passed
@mserajnik
mserajnik deleted the tuxedo-rs-second-fan branch November 5, 2026 10:23
@nixpkgs-ci

nixpkgs-ci Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-26.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 8.has: package (update) This PR updates a package to a newer version 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: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons. backport release-26.05 Backport PR automatically llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants