You are not logged in.

#1 2018-05-01 05:19:17

feminaexlux
Member
From: /home/lani
Registered: 2008-08-28
Posts: 29
Website

[SOLVED] Headless server keeps suspending

Hi all, I have a headless server that currently has no periphery attached except for ethernet. I'm using ssh to remote terminal in and do some work, but it keeps suspending every couple of minutes.

I know that my

/sys/module/pcie_aspm/parameters/policy

has

powersave

listed in it and I can't remove it. It keeps giving me error E514, but I know that I have space on my disk to write in so I think some other system thing is preventing me from write.

I've looked through the Power Management wiki but I can't seem to find anything for preventing suspension.

I have not customized anything for udev and I think this was a recent update that introduced power-saving configs because my server did not previously suspend itself.

I think it's related to this but after setting the

sleep-inactive-ac-type

to 'nothing' I still get suspended.

Anything else I can look into?

I've also checked out this post.

Last edited by feminaexlux (2018-05-02 20:20:13)


Love, love is a verb. Love is a doing word.

Offline

#2 2018-05-01 06:12:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Re: [SOLVED] Headless server keeps suspending

sysfs has nothing to do with your hard disk, is "powersave" the
* only
* active
* third
entry in /sys/module/pcie_aspm/parameters/policy?

Does the server suspend like S3 or is is just the NIC?
Do you use WOL?
Do you have power management tools like powertop, TLP or laptop-mode-tools installed?

Offline

#3 2018-05-01 16:58:03

feminaexlux
Member
From: /home/lani
Registered: 2008-08-28
Posts: 29
Website

Re: [SOLVED] Headless server keeps suspending

[lani@Tianne ~]$ cat /sys/module/pcie_aspm/parameters/policy
[default] performance powersave powersupersave

I don't use Wake on LAN, powertop/laptop-mode-tools are NOT installed. Server goes into S3, I think?

I currently have a long running `watch` command just to keep pinging my server to keep it online.


Love, love is a verb. Love is a doing word.

Offline

#4 2018-05-01 19:02:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Re: [SOLVED] Headless server keeps suspending

What do you mean "I think"? Do you have physical access to the server? How do you re-gain access?

As long as you have network IO, the server keeps alive and you do not use any powersaving mechanisms?
Check the journal of the last boot (after you lost the server) to figure whether it went S3 or maybe there're some kernel messages indicating the NIC takes a nap.
Did you ever try to "wol <server_ip>"?

Offline

#5 2018-05-01 19:22:45

feminaexlux
Member
From: /home/lani
Registered: 2008-08-28
Posts: 29
Website

Re: [SOLVED] Headless server keeps suspending

Apr 30 12:32:56 Tianne NetworkManager[297]: <info>  [1525113176.8932] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Apr 30 12:32:56 Tianne NetworkManager[297]: <info>  [1525113176.8933] manager: NetworkManager state is now ASLEEP
Apr 30 12:32:56 Tianne gnome-shell[571]: Screen lock is locked down, not locking
Apr 30 12:32:56 Tianne systemd[1]: Reached target Sleep.
Apr 30 12:32:56 Tianne systemd[1]: Starting Suspend...
Apr 30 12:32:56 Tianne systemd-sleep[879]: Suspending system...

I guess this means it's NIC/gnome after all, but I'm not sure what other settings I need to update.


Love, love is a verb. Love is a doing word.

Offline

#6 2018-05-01 19:26:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Re: [SOLVED] Headless server keeps suspending

No, it suspends.

WTF do you run gnome-shell on a headless server? VNC?
It looks a lot like gnome is configured to S3 the system on inactivity (screesaver settings, I guess - but I never used gnome 3)

Offline

#7 2018-05-01 19:32:39

feminaexlux
Member
From: /home/lani
Registered: 2008-08-28
Posts: 29
Website

Re: [SOLVED] Headless server keeps suspending

Yeah, I VNC occasionally. I'll see what I can do to disable screensaver through the terminal.


Love, love is a verb. Love is a doing word.

Offline

#8 2018-05-01 19:36:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Offline

#9 2018-05-02 20:20:48

feminaexlux
Member
From: /home/lani
Registered: 2008-08-28
Posts: 29
Website

Re: [SOLVED] Headless server keeps suspending

I had to update the gnome settings on the root account to prevent suspension. Seems to be keeping my server online for now.


Love, love is a verb. Love is a doing word.

Offline

Board footer

Powered by FluxBB