Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

tuxedo-drivers: 3.2.14 -> 4.5.0 #316708

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MinerSebas
Copy link
Contributor

Description of changes

This updates the tuxedo-keyboard package to 4.5.0, and renames the package to its new upstream name.
While updating the nixos module, I also removed parts of the option description that were already removed in the 3.2.0 release.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 馃憤 reaction to pull requests you find important.

@MinerSebas
Copy link
Contributor Author

I tested it on my Tuxedo Pulse Gen1 with the 6.6 Linux Kernel, but i would appreciate feedback for newer Tuxedo Models.
From the changelog that would be at least Pulse Gen4, Sirius Gen2, Pulse Gen3 and Stellaris Gen6.

Copy link
Member

@mrcjkb mrcjkb left a comment

Choose a reason for hiding this comment

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

Looks mostly good to me.
Will test this when I am near my tuxedo device.

pkgs/os-specific/linux/tuxedo-drivers/default.nix Outdated Show resolved Hide resolved
pkgs/os-specific/linux/tuxedo-drivers/default.nix Outdated Show resolved Hide resolved
homepage = "https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers";
license = lib.licenses.gpl3Plus;
longDescription = ''
This driver provides support for Fn keys, brightness/color/mode for most TUXEDO
Copy link
Member

Choose a reason for hiding this comment

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

question: Is this description still accurate?

The features list seems to suggest no.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only the Hardware I/O driver for TUXEDO Control Center is missing, but the mentioned TUXEDO Control Center isn't even packaged here, and is used by tuxedo_rs instead.

Copy link
Member

Choose a reason for hiding this comment

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

Then I would suggest to add "Hardware IO driver" without "for Tuxedo Control Center"


meta = {
broken = stdenv.isAarch64 || (lib.versionOlder kernel.version "5.5");
description = "Keyboard and hardware I/O driver for TUXEDO Computers laptops";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
description = "Keyboard and hardware I/O driver for TUXEDO Computers laptops";
description = "Drivers for several platform devices for TUXEDO notebooks meant for the DKMS";

homepage = "https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers";
license = lib.licenses.gpl3Plus;
longDescription = ''
This driver provides support for Fn keys, brightness/color/mode for most TUXEDO
Copy link
Member

Choose a reason for hiding this comment

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

Then I would suggest to add "Hardware IO driver" without "for Tuxedo Control Center"

@LemmusLemmus
Copy link

Nice work!

There is also this open pull request that intends to replace tuxedo-keyboard with tuxedo-drivers: #293017. I guess you can compare your implementation with theirs?

Either way, once this has been merged, would it make sense to enable the package by default in nixos-hardware?

@xaverdh
Copy link
Contributor

xaverdh commented Jun 6, 2024

I can confirm that this works on my Aura Gen1, using tuxedo-rs


mkdir -p "$out/lib/modules/${kernel.modDirVersion}"

for module in clevo_acpi.ko clevo_wmi.ko \
Copy link
Contributor

Choose a reason for hiding this comment

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

#293017 uses INSTALL_MOD_PATH here, which I find nice

@xaverdh xaverdh mentioned this pull request Jun 19, 2024
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants