<div dir="ltr"><div dir="ltr"><div>Hi Andreas,</div><div><br></div><div>Those locations work. But the correct environment variable turns out to be SYSTEMD_SLEEP_FREEZE_USER_SESSIONS (plural), the NEWS file has it wrong. (I've no idea why suspend seemed to work for me yesterday with the wrong variable. Today it definitely didn't.) The overrides probably also need to be installed for the other service files that run systemd-sleep: systemd-hybrid-sleep.service, systemd-hibernate.service and systemd-suspend-then-hibernate.service.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 7, 2024 at 10:05 PM Luca Boccassi <<a href="mailto:bluca@debian.org">bluca@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 7 Jun 2024 at 21:03, Andreas Beckmann <<a href="mailto:anbe@debian.org" target="_blank">anbe@debian.org</a>> wrote:<br>
><br>
> On 07/06/2024 08.17, Peter De Wachter wrote:<br>
> > systemd 256-rc3 was recently uploaded to Debian. Its NEWS file mentions:<br>
> ><br>
> > * The behavior of systemd-sleep and systemd-homed has been updated to<br>
> > freeze user sessions when entering the various sleep modes or when<br>
> > locking a homed-managed home area. This is known to cause issues with<br>
> > the proprietary NVIDIA drivers. Packagers of the NVIDIA proprietary<br>
> > drivers may want to add drop-in configuration files that set<br>
> > SYSTEMD_SLEEP_FREEZE_USER_SESSION=false for systemd-suspend.service<br>
> > and related services, and SYSTEMD_HOME_LOCK_FREEZE_SESSION=false for<br>
> > systemd-homed.service.<br>
><br>
> Thanks for catching that. I'll try to include a fix with the upcoming<br>
> uploads of the recent CVE series.<br>
><br>
> As I'm not that familiar with configuring systemd bits, do you know what<br>
> would be the correct locations and contents to ship the fix?<br>
><br>
> If I read the documentation correctly, that should be<br>
><br>
> /usr/lib/systemd/system/systemd-suspend.service.d/nvidia.conf<br>
> ===== 8< =====<br>
> [Service]<br>
> Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSION=false"<br>
> ===== >8 =====<br>
><br>
> and<br>
><br>
> /usr/lib/systemd/system/systemd-homed.service.d/nvidia.conf<br>
> ===== 8< =====<br>
> [Service]<br>
> Environment="SYSTEMD_HOME_LOCK_FREEZE_SESSION=false"<br>
> ===== >8 =====<br>
><br>
> Could you verify that this works (after unapplying your temporary solution)?<br>
<br>
Hi Andreas, I can confirm those are the correct locations. You can<br>
also omit the quotes.<br>
</blockquote></div></div>