Bug#1072722: nvidia-driver: Please configure SYSTEMD_SLEEP_FREEZE_USER_SESSION=false
Peter De Wachter
pdewacht at gmail.com
Sat Jun 8 15:42:43 BST 2024
Hi Andreas,
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.
On Fri, Jun 7, 2024 at 10:05 PM Luca Boccassi <bluca at debian.org> wrote:
> On Fri, 7 Jun 2024 at 21:03, Andreas Beckmann <anbe at debian.org> wrote:
> >
> > On 07/06/2024 08.17, Peter De Wachter wrote:
> > > systemd 256-rc3 was recently uploaded to Debian. Its NEWS file
> mentions:
> > >
> > > * The behavior of systemd-sleep and systemd-homed has been
> updated to
> > > freeze user sessions when entering the various sleep modes
> or when
> > > locking a homed-managed home area. This is known to cause
> issues with
> > > the proprietary NVIDIA drivers. Packagers of the NVIDIA
> proprietary
> > > drivers may want to add drop-in configuration files that set
> > > SYSTEMD_SLEEP_FREEZE_USER_SESSION=false for
> systemd-suspend.service
> > > and related services, and
> SYSTEMD_HOME_LOCK_FREEZE_SESSION=false for
> > > systemd-homed.service.
> >
> > Thanks for catching that. I'll try to include a fix with the upcoming
> > uploads of the recent CVE series.
> >
> > As I'm not that familiar with configuring systemd bits, do you know what
> > would be the correct locations and contents to ship the fix?
> >
> > If I read the documentation correctly, that should be
> >
> > /usr/lib/systemd/system/systemd-suspend.service.d/nvidia.conf
> > ===== 8< =====
> > [Service]
> > Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSION=false"
> > ===== >8 =====
> >
> > and
> >
> > /usr/lib/systemd/system/systemd-homed.service.d/nvidia.conf
> > ===== 8< =====
> > [Service]
> > Environment="SYSTEMD_HOME_LOCK_FREEZE_SESSION=false"
> > ===== >8 =====
> >
> > Could you verify that this works (after unapplying your temporary
> solution)?
>
> Hi Andreas, I can confirm those are the correct locations. You can
> also omit the quotes.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20240608/43849ec1/attachment.htm>
More information about the pkg-nvidia-devel
mailing list