My Linux system keeps restarting after it has been idle for a while and returns to the login screen. I tried to figure out why it restarts and tried to look everywhere for what is causing it.
I'm using Red Hat/Gnome.
The problem is that I want the jobs activated on the logged-in user to continue running forever.
(a) It is not a power failure as the computer is on a UPS and the UPS log shows that everything is okay.
(b) I looked for TMOUT set somewhere (/etc/profile, SET command) and it does not seem to be set.
(c) I looked in the /var/log/messages and I saw that the first message (when the system "disappeared" was "apm: busy: unable to enter requested state", after researching on that, I think that the system is suspending (?). Does Linux or Gnome automatically suspend when the system is idle? How do I stop that?