diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-09 06:57:23 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-09 06:57:23 +0000 |
commit | 2be02ac9ae256e46fd73c585928e70482dd7b993 (patch) | |
tree | 51acb0b26d5a02df712e384f2e180dc73979caef /x11-drivers | |
parent | 45eb9d402352231b0429fffda06244f2bdedd8c8 (diff) |
x11-drivers/nvidia-drivers : disable >=systemd-256's freeze session (https://gitweb.gentoo.org/repo/gentoo.git/commit/x11-drivers/nvidia-drivers?id=380e65161ef386416fd7510fb1538a86f9c50b1c)
Diffstat (limited to 'x11-drivers')
-rw-r--r-- | x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r4.ebuild (renamed from x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild) | 16 | ||||
-rw-r--r-- | x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05-r1.ebuild (renamed from x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild) | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r4.ebuild index db4c9dcb..442dceae 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r3.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r4.ebuild @@ -289,6 +289,22 @@ documentation that is installed alongside this README." # TODO: cleanup after 255.5 been stable for a few months dosym {/usr/lib,/"${libdir}"}/elogind/system-sleep/nvidia + # needed with >=systemd-256 or may fail to resume with some setups + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072722 + insinto "${unitdir}"/systemd-homed.service.d + newins - 10-nvidia.conf <<-EOF + [Service] + Environment=SYSTEMD_HOME_LOCK_FREEZE_SESSION=false + EOF + insinto "${unitdir}"/systemd-suspend.service.d + newins - 10-nvidia.conf <<-EOF + [Service] + Environment=SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false + EOF + dosym -r "${unitdir}"/systemd-{suspend,hibernate}.service.d/10-nvidia.conf + dosym -r "${unitdir}"/systemd-{suspend,hybrid-sleep}.service.d/10-nvidia.conf + dosym -r "${unitdir}"/systemd-{suspend,suspend-then-hibernate}.service.d/10-nvidia.conf + # symlink non-versioned so nvidia-settings can use it even if misdetected dosym nvidia-application-profiles-${PV}-key-documentation \ ${paths[APPLICATION_PROFILE]}/nvidia-application-profiles-key-documentation diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05-r1.ebuild index f86871e4..d47e74b2 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05-r1.ebuild @@ -309,6 +309,22 @@ documentation that is installed alongside this README." # TODO: cleanup after 255.5 been stable for a few months dosym {/usr/lib,/"${libdir}"}/elogind/system-sleep/nvidia + # needed with >=systemd-256 or may fail to resume with some setups + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072722 + insinto "${unitdir}"/systemd-homed.service.d + newins - 10-nvidia.conf <<-EOF + [Service] + Environment=SYSTEMD_HOME_LOCK_FREEZE_SESSION=false + EOF + insinto "${unitdir}"/systemd-suspend.service.d + newins - 10-nvidia.conf <<-EOF + [Service] + Environment=SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false + EOF + dosym -r "${unitdir}"/systemd-{suspend,hibernate}.service.d/10-nvidia.conf + dosym -r "${unitdir}"/systemd-{suspend,hybrid-sleep}.service.d/10-nvidia.conf + dosym -r "${unitdir}"/systemd-{suspend,suspend-then-hibernate}.service.d/10-nvidia.conf + # symlink non-versioned so nvidia-settings can use it even if misdetected dosym nvidia-application-profiles-${PV}-key-documentation \ ${paths[APPLICATION_PROFILE]}/nvidia-application-profiles-key-documentation |