Package Details: opencl-nvidia-470xx 470.256.02-7.95

Git Clone URL: https://aur.archlinux.org/nvidia-470xx-utils.git (read-only, click to copy)
Package Base: nvidia-470xx-utils
Description: OpenCL implemention for NVIDIA
Upstream URL: http://www.nvidia.com/
Keywords: driver nvidia video
Licenses: custom
Conflicts: opencl-nvidia
Provides: opencl-driver, opencl-nvidia
Submitter: jonathon
Maintainer: Sinyria (cysp74, SoftExpert)
Last Packager: SoftExpert
Votes: 103
Popularity: 1.90
First Submitted: 2021-10-31 00:50 (UTC)
Last Updated: 2025-02-03 19:42 (UTC)

Dependencies (2)

Required by (66)

Sources (12)

Pinned Comments

SoftExpert commented on 2025-02-09 10:20 (UTC)

For the beginners in need of assistance, first take a look at this recommended guide https://github.com/korvahannu/arch-nvidia-drivers-installation-guide - maybe it helps to solve the issues your are having with this version of the driver.

Latest Comments

« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 11 12 13 .. 44 Next › Last »

SoftExpert commented on 2024-07-01 05:55 (UTC) (edited on 2024-07-01 06:35 (UTC) by SoftExpert)

@kachelaqa: I picked the target paths from https://gitlab.archlinux.org/archlinux/packaging/packages/nvidia-utils/-/blob/main/PKGBUILD?ref_type=heads.

It seems those paths are not effective, based on what you observed.

Which location would be the best to put both .conf files ?

Would /etc/systemd/sleep.conf.d/systemd-homed-override.conf and /etc/systemd/sleep.conf.d/systemd-suspend-override.conf be sufficient ?

Or it would suffice to modify the current target paths in the PKGBUILD as follows ?

    install -Dm644 "${srcdir}"/systemd-homed-override.conf "${pkgdir}"/usr/lib/systemd/system/systemd-homed.service.d/10-nvidia-no-freeze-session.conf
    install -Dm644 "${srcdir}"/systemd-suspend-override.conf "${pkgdir}"/usr/lib/systemd/system/systemd-suspend.service.d/10-nvidia-no-freeze-session.conf
    install -Dm644 "${srcdir}"/systemd-suspend-override.conf "${pkgdir}"/usr/lib/systemd/system/systemd-suspend-then-hibernate.service.d/10-nvidia-no-freeze-session.conf
    install -Dm644 "${srcdir}"/systemd-suspend-override.conf "${pkgdir}"/usr/lib/systemd/system/systemd-hibernate.service.d/10-nvidia-no-freeze-session.conf
    install -Dm644 "${srcdir}"/systemd-suspend-override.conf "${pkgdir}"/usr/lib/systemd/system/systemd-hybrid-sleep.service.d/10-nvidia-no-freeze-session.conf

edited to add alternative path

kachelaqa commented on 2024-07-01 01:22 (UTC)

@SoftExpert The suspend service file is part of systemd itself, so of course everyone will have it installed by default, since systemd is in core.

The article you linked to seems a little confused because its title refers to the location of configuration files, whereas its text actually refers only to unit files. The systemd.unit docs state that the drop-in ".d/" directories should go alongside the corresponding service file. Thus, given that the location of the suspend service file is /usr/lib/systemd/system/systemd-suspend.service, its drop-in directory should be /usr/lib/systemd/system/systemd-suspend.service.d/.

SoftExpert commented on 2024-06-30 22:23 (UTC)

@kachelaqa: If you have systemd-suspend.service installed and active, then the file /usr/lib/systemd/systemd-suspend.service.d/10-nvidia-no-freeze-session.conf is seen and used by the unit systemd-suspend.service; you will need, however, to restart systemd. If you do not have the unit systemd-suspend.service I would expect the folder /etc/systemd/system/systemd-suspend.service.d/ to be ignored.

According to this article the location we used is perfectly valid.

Can you, please, describe which systemd units are installed on your environment and why they cannot see the .conf files we provided ?

kachelaqa commented on 2024-06-30 14:35 (UTC)

@SoftExpert After the most recent update, I found that sleep still freezes. However, when I used the method described by OxHak (i.e. setting the envar within a file under /etc/systemd/system/systemd-suspend.service.d), everthing works as expected.

I don't really understand your previous comment - why should it be necessary to install anything extra to make the fix work?

SoftExpert commented on 2024-06-29 11:30 (UTC) (edited on 2024-06-29 11:31 (UTC) by SoftExpert)

@OxHaK: Hummm, maybe there is some misunderstanding here: the package will install the .conf files in the /usr/lib/systemd/ path in several sub-folders. Here is the relevant part of the package script:

    install -Dm644 "${srcdir}"/systemd-homed-override.conf "${pkgdir}"/usr/lib/systemd/systemd-homed.service.d/10-nvidia-no-freeze-session.conf
    install -Dm644 "${srcdir}"/systemd-suspend-override.conf "${pkgdir}"/usr/lib/systemd/systemd-suspend.service.d/10-nvidia-no-freeze-session.conf
    install -Dm644 "${srcdir}"/systemd-suspend-override.conf "${pkgdir}"/usr/lib/systemd/systemd-suspend-then-hibernate.service.d/10-nvidia-no-freeze-session.conf
    install -Dm644 "${srcdir}"/systemd-suspend-override.conf "${pkgdir}"/usr/lib/systemd/systemd-hibernate.service.d/10-nvidia-no-freeze-session.conf
    install -Dm644 "${srcdir}"/systemd-suspend-override.conf "${pkgdir}"/usr/lib/systemd/systemd-hybrid-sleep.service.d/10-nvidia-no-freeze-session.conf

In my view, this will suffice to apply the 2 environment variables in the context of the following systemd services:

  • systemd-suspend.service

  • systemd-suspend-then-hibernate.service

  • systemd-hibernate.service

  • systemd-hybrid-sleep.service

  • systemd-homed.service

However, this will require the correspponding systemd services to be installed (they are not in the default set). For example systemd-suspend-modules.

Obviously, if there is another special case not covered by the current configuration, we can add it to the package - we just need to make sure to pick the most "standard" approach.

*edited to fix a typo and the list

OxHaK commented on 2024-06-29 11:16 (UTC)

@SoftExpert The installation probably didn’t fix the issue because the directory /etc/systemd/system/systemd-suspend.service.d/ was missing on my system. I had to create it manually.

SoftExpert commented on 2024-06-29 10:35 (UTC)

@OxHaK: You are right, my mistake: I forgot to push also the nvidia-470xx.rules file. I updated the package to reflect the change; hopefully all is well now.

Regarding your own fix, the same parameter is in the file systemd-suspend-override.conf. You might want to adjust your config when you install this new version.

OxHaK commented on 2024-06-29 09:14 (UTC) (edited on 2024-06-29 09:16 (UTC) by OxHaK)

@SoftExpert checksum fail for nvidia-470xx.rules and updating the package didn't fix the sleep issue. I got it sorted out by creating a file at:

/etc/systemd/system/systemd-suspend.service.d/disable_freeze_user_session.conf

Here's the content for the file:

[Service]

Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false"

SoftExpert commented on 2024-06-29 05:11 (UTC)

@archdub: I updated the package with the suggested fix; please test and keep us up to date ! Note: it might be possible that the package will refuse to install if the nvidia-settings package is not on the same release number - it did on my system; in that case, update first the nvidia-settings package before updating this one.