Conversation
How do I tell mobian "don't try to autosuspend for next 8 hours" or better "don't try to autosuspend until kernel build is finished"? Unix was not expecting sleepy computers...
2
0
2

@pavel you're building kernels on the PinePhone?

1
0
0
@martijnbraam Yep. I do have faster machines, but for light development working on device is usually easier.
1
0
0

@pavel heh for a lot of userspace stuff I would agree but for kernels...

For autosuspend there's a hook in pmos at least that disables sleep when an SSH session is active. If it works with the elogind stuff I assume it's also possible on the systemd stuff :)

0
0
1

@pavel

gnome-session-inhibit --reason "Building kernel" --inhibit suspend bash -c "sleep 100"

1
0
1
@agx Thank you, gnome-session-inhibit does the trick. ... once user is logged in on the console. One day we'll need an API to do that regardless of desktop environment.
0
0
1