You are not logged in.

#1 2017-09-24 21:34:37

farshadf
Member
Registered: 2017-09-24
Posts: 4

[Solved] prevent system from getting suspended when terminal is downl.

Hi, dear users.

I'm using arch on the cinnamon desktop manager. My question is that is there any way to prevent the system from getting suspended when the terminal is downloading packages? I use terminator emulator.

Last edited by farshadf (2017-09-25 00:10:12)

Offline

#2 2017-09-24 21:59:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] prevent system from getting suspended when terminal is downl.

What is suspending the machine?

Not a GNU/Linux discussion, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-09-24 22:21:38

farshadf
Member
Registered: 2017-09-24
Posts: 4

Re: [Solved] prevent system from getting suspended when terminal is downl.

Thank you so much. I've set the suspend time of my machine on 5 minutes. During terminal is downloading packages, the machine goes to sleep after 5 minutes and downloading is interrupted. I wonder if there is a way to prevent the system to go to sleep during terminal is working whiteout changing the power management settings?

Last edited by farshadf (2017-09-24 22:32:56)

Offline

#4 2017-09-24 23:36:52

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: [Solved] prevent system from getting suspended when terminal is downl.

I believe systemd-inhibit is exactly what you're looking for.

Offline

#5 2017-09-25 00:00:02

farshadf
Member
Registered: 2017-09-24
Posts: 4

Re: [Solved] prevent system from getting suspended when terminal is downl.

It appears to have solved the problem for me!
Many thanks, ooo!

Last edited by farshadf (2017-09-25 00:14:15)

Offline

#6 2017-09-25 00:02:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] prevent system from getting suspended when terminal is downl.

I think you meant to thank ooo

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-09-25 00:21:55

farshadf
Member
Registered: 2017-09-24
Posts: 4

Re: [Solved] prevent system from getting suspended when terminal is downl.

Thank you for all your answers jasonwryan. Marking this issue as solved now.

Offline

Board footer

Powered by FluxBB