Prevent sleep mode/shutdown on CentOS 5.6

6,780

A strange CentOS behaviour indeed. Have you checked the logs? This should be the first step to investigate the problem. First, try syslog:

less /var/log/syslog

Then dmesg for any ACPI events:

dmesg | grep -i acpi

If you need just a remote terminal, then there is no need to keep x-server running. You can try killing it and see if the machine shuts down in this case.

Share:
6,780

Related videos on Youtube

chantheman
Author by

chantheman

Updated on September 18, 2022

Comments

  • chantheman
    chantheman over 1 year

    I have a question about the best practice with a home linux box.

    I recently install CentOS 5.6 on a machine I had lying around, and now I am using it by sshing into it from another machine. All that works fine, but the machine is turning off in the middle of the night. I think it is actually shutting down, or it could be sleeping, but when I push the power button, it boots afresh. I do not think this is a hardware issue.

    I have tried two options:

    1. Logging in as root user to gnome and turning off all the power options. Screen saver, etc.

    But if I just turn the monitor off and leave it on the desktop screen, the server eventually turns off.

    1. Leaving it on the initial login screen. This is the screen where you select kde, gnome, terminal, etc.

    It also eventually turns off here too.

    Thanks in advance for any advise as to how to prevent this. Again, I changed the gnome power settings to 'never' for everything but it does not seem to fix this issue.

    • eagleHL
      eagleHL about 13 years
      I think this question belongs to Server Fault.
  • Admin
    Admin about 13 years
    Hmmm okay. It does not look like there is a syslog for this distro, but the message log does not say much. hmm this is a strange one.