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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applespi: Package and Nixos flag #51539

Closed
wants to merge 2 commits into from
Closed

Conversation

justgerd
Copy link

@justgerd justgerd commented Dec 5, 2018

Motivation for this change

Applespi is required on newish macbooks for keyboard and trackpad to work. This adds a package for the driver and a flag to enable it.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Copy link
Member

@infinisil infinisil left a comment

Choose a reason for hiding this comment

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

LGTM, just need to fix the conflict and I'll merge it

@samueldr
Copy link
Member

I think it'd be interesting to have either this or #57419 merged by 19.09, so that newer apple laptops can be made more reasonably usable. Though, I think this PR is more appropriate, as it also adds an option to make it more usable.

Adding this one to the 19.09 milestone; the conflicts are likely trivial (module-list, all-packages), meaning that any nixpkgs contributor can fix it by that time. Hopefully one who can test the change.

@justgerd
Copy link
Author

justgerd commented Jul 28, 2019

apparently as of the upcoming v5.3 kernel release, the driver has been upstreamed and merged into the kernel? making this PR partially unnecessary as long as it is built into the kernel as a module.
torvalds/linux@038b1a0#diff-21f587dcb9b25ed3dcff9dade6b0aa67

I do no longer actively use nixos (or any linux for that matter) on my macbook anymore, but I would be willing to test the upstreamed driver and re-visit this PR.

(also, on another note, the original cb22 driver seems to be unmaintained, but roadrunner2's fork seems to be actively worked on)

oh yeah; I almost forgot, only on macbook8,1 (that is the 2015 12-inch macbook), resume from standby still doesn't work as the driver locks up (last time I tried it out was about a month ago; could theoretically be fixed)

@samueldr
Copy link
Member

No worries, I was triaging random PRs.

At least the current status of this PR is known, anyone wanting to take it up now knows.

@xaverdh
Copy link
Contributor

xaverdh commented Oct 25, 2019

I think this can be closed as #71812 landed in master.

@justgerd
Copy link
Author

Yep, I agree with you. Applespi seems to have landed in the mainline kernel.

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

8 participants