Subject: bug#78040: elogind's suspend-then-hibernate requires dmi-sysfs to detect wakeup type

From: Danny Milosavljevic <[email-masked]>
Date: Fri, 25 Apr 2025 02:01:14 +0200

>> Loading dmi-sysfs manually solves this issue, but I don't know how to do
>> that with the elogind-service-type implementation.

>Maybe an activation snippet could do:
>  (load-linux-modules-from-directory '("dmi-sysfs")
>                                     (current-kernel-directory))

Why not use the kernel module loader service extension?
That's what it's there for.

(service-type
...
   (extensions
    (list (service-extension kernel-module-loader-service-type
                             (const '("dmi-sysfs"))))))