@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
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.