Repository navigation
tuxedo-rs: 0.3.1 -> 0.3.2 - #578782
tuxedo-rs: 0.3.1 -> 0.3.2#578782
Conversation
|
@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. |
|
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:
My takeway: everything works as expected. |
|
Indeed I can no long test this. If somebody wants to take over as maintainer, feel free to do so. |
|
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. 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. |
cguentherTUChemnitz
left a comment
There was a problem hiding this comment.
lgtm ;)
Nice small patchset, good workaround for the not-yet released state of tailor-rs. Already tested on my side
|
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. |
|
@Sigmanificient, would you have time to review this? |
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)
fcf0b1f to
ada2463
Compare
|
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 |
✅
|
yzhou216
left a comment
There was a problem hiding this comment.
Approved automatically following the successful run of nixpkgs-review.
cguentherTUChemnitz
left a comment
There was a problem hiding this comment.
Clean version bump here. Nothing unexpected visible.
|
@wegank, 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 ( |
|
Successfully created backport PR for |
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 of1to both fan tables when software takes over the fans, and with the second fan left at that speed, the embedded controller assertsPROCHOTunder load and holds the CPU at its lowest clock.Once #577948 updates tuxedo-drivers from 4.20.1 to 4.25.0, the
PROCHOTissue 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.2tag is main at74bbabeplus the release commit. Since 0.3.1 from April 2024, it also brings charging profiles intuxedo_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_hwcapsreportsNumber of fans: 2(1 with 0.3.1), and both fans run.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, andversionCheckPhasepasses when enabled.Note that tailor-gui shares the source, so its
cargoDepshash changes as well, and it builds without errors. Itsversionin nixpkgs is still 0.2.3, while the version in itsCargo.tomlhas 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
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.