I had a space Macbook Pro which I installed minimal centos 7 on it to use it as a server machine. To make sure the machine never turns off, I modified the
logind.conf to the following:
#NAutoVTs=6 #ReserveVT=6 #KillUserProcesses=no #KillOnlyUsers= #KillExcludeUsers=root #InhibitDelayMaxSec=5 #HandlePowerKey=poweroff HandleSuspendKey=ignore HandleHibernateKey=ignore HandleLidSwitch=ignore #HandleLidSwitchDocked=ignore #PowerKeyIgnoreInhibited=no #SuspendKeyIgnoreInhibited=no #HibernateKeyIgnoreInhibited=no LidSwitchIgnoreInhibited=no IdleAction=ignore #IdleActionSec=30min #RuntimeDirectorySize=10% #RemoveIPC=no #UserTasksMax=
Still after some time of inactivity, I cannot ssh to the machine anymore. When I go to the machine, the screen is on but does not show anything (not the terminal login prompt). I have to hard shutdown and restart to make it work again.
I could not find anything in the log files on why the machine halted. Any clue how to resolve this?
Update: I noticed the computer's screen is turned off 10 minutes after inactivity. I suspect whatever module is responsible for turning off the screen (ACPI? APM?) causes the hang as well. But I have no idea how to investigate this further.