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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for tuxedo-keyboard LED backlighting. #73885
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I left a few comments. Once you are finished with those, let's get some more people involved.
@@ -0,0 +1,32 @@ | |||
{ stdenv, fetchFromGitHub, kernel, kmod }: | |||
|
|||
# TODO: look at the other kernel modules packages and see if you find improvements to do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That part at installPhase
seems still a bit off. Creating a directory just to move some artefact away seems redundant. Maybe I could find some way to direclty output the module to $out/lib/modules/${kernel.modDirVersion}
.
@@ -944,6 +944,11 @@ | |||
githubId = 5718007; | |||
name = "Bastian Köcher"; | |||
}; | |||
blanky0230 = { | |||
email = "blanky0230@gmail.com"; | |||
github = "blanky0230"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
githubId
missing, see top of this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I wasn't aware that it now is required :)
"tuxedo_keyboard.brightness=255" | ||
"tuxedo_keyboard.color_left=0xff0a0a" | ||
]; | ||
</option> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's <programlisting></programlisting>
to render multiple lines of code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good tip! :)
There are several parameters you can change. It's best to check at the source code description which options are supported. | ||
You can find all the supported parameters at: <link xlink:href="https://github.com/tuxedocomputers/tuxedo-keyboard#kernelparam" /> | ||
|
||
In order to use the 'custom' lighting with the maximumg brightness and a color of '0xff0a0a' one would put pass <literal>boot.kernelParams</literal> like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these 'custom'
ones be <literal>custom</literal>
? Same for the hex value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Makes it more readable in the HTML output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good to me, only thing left to do is to clean up the history, with three subsequent commits
- One for adding yourself as a maintainer
- One for adding the package
- And one for the NixOS module
ping @infinisil wdyt? Please let me know if there's something more to do here :) Thank you! |
The merge commit should be removed from the history now |
Motivation for this change
Additional hardware-support for another hardware vendor.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @zimbatm I have some doubts whether this needs a module at all now, since most things I had to be "configurable" via the module might as well just be set by the user directly. wdyt?