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

Gdm on nvidia #25621

Closed
wants to merge 5 commits into from
Closed

Gdm on nvidia #25621

wants to merge 5 commits into from

Conversation

roastiek
Copy link
Contributor

@roastiek roastiek commented May 8, 2017

Motivation for this change

This PR should fix #24172 and possibly problems caused by #22470 together with other small tweaks for GDM.

I can only test it on system with a single NVIDIA card so feedback from different setups is welcome.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@deedrah, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @lethalman and @aszlig to be potential reviewers.

Copy link
Member

@zimbatm zimbatm left a comment

Choose a reason for hiding this comment

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

Needs to be tested but looks good!


# Create /dev/nvidia-uvm when the nvidia-uvm module is loaded.
services.udev.extraRules =
''
KERNEL=="nvidia", RUN+="${pkgs.stdenv.shell} -c 'mknod -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) 255'"
Copy link
Member

Choose a reason for hiding this comment

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

$(awk '/nvidia-frontend/ { print $1 }' /proc/devices) is slightly shorter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to stay consistent with the already present rule for nvidia-uvm. And awk is not in the path of udev service that will execute this.

@zimbatm zimbatm mentioned this pull request Sep 23, 2017
8 tasks
@fpletz fpletz added this to the 17.09 milestone Sep 26, 2017
@fpletz
Copy link
Member

fpletz commented Sep 26, 2017

Superseeded by #29697 with commits from this PR. Thanks!

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.

gdm crash on unstable
7 participants