-
Notifications
You must be signed in to change notification settings - Fork 3
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
nvidia-video-G06/nvidia-compute-G06: Configure services according to presets #50
Conversation
Despite service was already moved to nvidia-persistenced package, which is now required by nvidia-compute-G06 package, the preset for this service was still in nvidia-compute-G06. Fixed this now by moving the preset to this separate package as well.
Not only define presets for service, but also use these settings. - nvidia-hibernate.service - nvidia-powerd.service - nvidia-resume.service - nvidia-suspend.service
@scaronni-nvidia JFYI ... |
Hi, a couple of points. I'm surprised about the preset, that's a built in thing in Regarding moving the preset, that's on purpose in the main CUDA driver package part, as you don't want to have the persistence daemon starting (and failing) if someone just installs it standalone. I think you should revert that. |
Another example (fedora): https://src.fedoraproject.org/rpms/fedora-release/tree/rawhide Depending on the release (workstation, server, etc.) a different subset of services get started, and that is done only with the preset file. |
I'm definitely not an expert in this area, but recently I noticed that defining a preset to enable a service by default does not enable it. So I was looking what needs to be done and found this. https://chatgpt.com/share/673f0048-b398-800c-9bf5-2cb166898de8 Tried this and noticed, that
And since nothing touches
Ok. I thought you just forgot about moving it to the external package. Well, I don't think anyone is going use the nvidia-persistenced package without the nvidia driver though. I'm not a big supporter of referencing filenames from other packages and having that to keep in sync. But I guess it can't be done differently. |
Interesting. Maybe things on RH/Fedora and SUSE work differently. As said I'm not an expert here. |
I've made a test on a VM and it looks fine:
It's enabled. Not the moment you install it, of course, but you're supposed to reboot. |
The command |
I don't know what the expected behaviour should be, but I can't reproduce this. On sle15-sp6-aarch64. Different driver package but also enabled via presets. Right after installation
Reboot and then still the same.
Nobody enables that. There is no such magic apparently during boot process. |
I'm afraid I need some working solution, not sth. officially correct and looking clean. :-( |
According to the openSUSE documentation it should work: https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines#Enabling_units Also there are other presets already installed on the system... |
I'll make some tests. |
Just installed on a freshly installed opensuse VM:
Note that the output is slightly different than my comment #50 (comment) |
And all the other nvidia units attempt to start as well as boot. Please note that they appear as failed when the system is booting but somehow on suse they are not reported as failed once the system is started, they still show as inactive. Are you by chance testing these things on a VM without an nvidia GPU? |
|
Nope. It's a nVidia Jetson Orin AGX (aarch64) running SLE15-SP6. I'm wondering which system you're using. /usr/lib/systemd/system/load-nvidia-drm-default.service
/usr/lib/systemd/system-preset/70-nvidia-jetson-36_4-kmp-default.preset
|
the service file doesn't occur in this list at all. Not even if I enabled and started it manually. |
Sorry, my command above was also wrong, it was supposed to be:
I think I found something, if the system has been upgraded from a driver version where the Was that your case? I still believe you shouldn't do anything, as all the tests I've done result in correctly enabled services. At maximum a |
On a freshly installed system:
|
Ok. I will check on a Leap 15.5/15.6 x86_64 system as soon as possible. Could be that behaviour on sle15-sp6-aarch64 is just broken. |
…nced" This reverts commit 83d344f. This was just wrong. For more details see #50 (comment)
Not only define preset for service, but also use this setting. - nvidia-persistenced.service
I reverted move of I see different results on a freshly installed Leap 15.6. Every service is disabled (preset: enabled) unless I add a |
Let's accept this now. I openened issue #51 to track that we would like to get rid of this |
No description provided.