Frogging-Family / linux-tkg

linux-tkg custom kernels
GNU General Public License v2.0
1.25k stars 157 forks source link

Install script does not temporarily prevent system suspend #929

Open xezrunner opened 2 months ago

xezrunner commented 2 months ago

When using install.sh install, on systems where the compilation process takes longer than the configured suspend timeout, the system will enter sleep mode, pausing (and potentially breaking) the compilation process.

In my case, the compilation successfully continued without errors, but I doubt this is guaranteed in every scenario or during any other step of the script.

AdelKS commented 2 months ago

Hello. Thanks for bringing this up, a little googling made me discover systemd-inhibit. For now, anyone affected can simply use systemd-inhibit ./install.sh install and should be fine. Since it's a one-liner, we may embed it in the near future.