<arianvp>
> The service manager gained basic support for cgroup v2 freezer. Units
<{^_^}>
undefined variable 'The' at (string):318:1
<arianvp>
can now be suspended or resumed either using new systemctl verbs,
<arianvp>
freeze and thaw respectively, or via D-Bus.
<arianvp>
gchristensen: ^
<arianvp>
you might find this interesting :)
<infinisil>
arianvp: He already talked about it in #nixos-chat earlier :D
<gchristensen>
hell yeah!
<arianvp>
we'll have some major breakage in nixos but for greater good
<arianvp>
you cant set User=nobody anymore
<arianvp>
which we do in quite some services (But which is _always_ the wrong choice; as it's a a security-issue)
<hexa->
should've called nobody everyone
<arianvp>
hexa-: yes :)
<arianvp>
it's horribly named
<arianvp>
oh no; we even have services that store state as the nobody/nogroup user
<arianvp>
yikes
<arianvp>
:)
<hexa->
ouch
<Mic92>
arianvp: does systemd forbid this now?
<arianvp>
Yes.
<arianvp>
Or it throws a warning. Not sure. Let me check the notes
<Mic92>
Makes sense.
<Mic92>
It should throw a warning so and let downstream fix it.
<infinisil>
Hm, though I'm wondering, what's freeze/thaw useful for? I can't quite think of anything right now
<Mic92>
pausing services
<Mic92>
Useful in HPC to schedule different tasks for example
<hexa->
useful for laptops to pause tasks while on battery
<infinisil>
I see, good examples
<gchristensen>
that is what my freezer program does
<hexa->
your freezer runs systemd?
<gchristensen>
lol
<hexa->
just checking
<gchristensen>
all my gui-launched programs are in their own scopes, and if I leave one unfocused for a few minutes it freezes until I give it focus again
<gchristensen>
I want to extend this t oa "nighttime mode" which freezes all programs to encourage me to go to bed
<gchristensen>
but that requires learning how to draw over programs in wayland
<infinisil>
Damn!
<infinisil>
gchristensen: Do you have an exception for background videos/audio
<infinisil>
?
<gchristensen>
not yet, but I would really like to integrate with pulseaudio or something to see if a program I'm about to freeze has an active audio stream
<Mic92>
most video players use the inhibit api.
<Mic92>
audio players unlikely so
<Mic92>
Not sure if they require the ui to be focused though
<gchristensen>
ah so maybe I can just check to see if the program is holding an inhibit lock or something?
<Mic92>
mpv does seem to be listed their, which I find weird.
<gchristensen>
I've stopped hacking on it though because I like what I have so far, and want to focus on running systemd and my whole system outside of the default network namespace, to keep physical NICs in a different namespace
<Mic92>
I actually I don't want any of my gui apps to freeze.
<Mic92>
They are all sending me notifications in one form or the other
<gchristensen>
yeah it'd be cool if it could be more app-ified with background notifications being handled specially, but that isn't likely
<arianvp>
infinisil: the eventual plan for gnome is that windows that don't have focus get frozen
<arianvp>
Just like on Android
<gchristensen>
hey that is what I've got and want, perfect!
<arianvp>
The people from Librem want to use it for improved battery life on their Linux phones
<arianvp>
(me and flokli recently went out for lunch with Lennart and the Librem guys)
<arianvp>
And were discussing exactly this
<flokli>
arianvp: there is more to that. Phones have a very different power management compared to "desktop systems|
<flokli>
there's this whole wakelock concept, which is really different
<gchristensen>
something about the wake lock he wassaying