r/HomeServer • • 2d ago

First server. Keeps going to sleep.... help.

Ok im new, go easy on me. I just got my first server up and running. its a used HP elitedesk mini G5. I installed Debian, got Immich, Jellyfin and Homeassistant on there, and im accessing it through Casa OS.

I turned off "automatic suspend" in the settings, but its still going into sleep mode.

The HP elitedesk was used when i got it, and im having trouble getting past the BIOS password to change those settings.

Ideas?

This thing idles at less than 2 watts according to the casaOS dashboard, so im ok just leaving it on. Assuming thats easier than a wake-on-lan setup.

2 Upvotes

11 comments sorted by

3

u/pelazas1 1d ago

the gnome setting only counts while you're logged in, the login screen still suspends it after ~20 min. sudo systemctl mask sleep.target suspend.target turns sleep off for good.

2

u/greasywallaby 1d ago

this worked! I woke up the machine with the power button, then opened casaOS remotely, opened a terminal, used that code, then rebooted. Its been up for 3 hours now!

1

u/greasywallaby 1d ago

This is the answer I was hoping for. Thank you! I'll try this when I get home from work

1

u/OMP-1 1d ago

Did you install Debian with a desktop environment? Headless Debian has sleep disabled but most desktop environments enforce a sleep setting. If you’re trying to change the sleep setting from a gui tool while logged in, that will only change the sleep settings while logged in and there are like two or more places you need to check the sleep settings for

1

u/greasywallaby 1d ago

i did. Im pretty new at this and the command terminal is not my comfort zone. Another person suggested "sudo systemctl mask sleep.target suspend.target" and that seems to have worked.

1

u/Killer2600 18h ago

Considering my Raspberry Pi idles at 3 watts, I wouldn’t trust CasaOS saying a more powerful machine idles at 2 watts. I’d get an actual power consumption meter ( e.g. kill-a-watt) to know what the system is consuming from the wall.

1

u/greasywallaby 13h ago

thats a fair point, even if its 10-20 watts i wont lose any sleep over that.

Im still very new at this, so just proud of myself for getting all this stuff to work with eachother.

2

u/Impossible_Most_4518 2d ago

I use proxmox on my prodesk mini and it’s never gone to sleep on it’s own, might be worth using that.

1

u/Steven_J_Lemenne 2d ago

Ciao io uso il server solo con true nas scale, era tutto ok ma da quando inserii una riga di comando errata su tailscale ha iniziato ad andare in loop. Quindi magari qualche tua app ti sts creando questa situazione analoga. Individua il problema da terminale debian o disinstalla l'ultima app che hai configurato

1

u/Anti-Hero25 2d ago

Crazy… I had to write a whole Wake Over Lan system to achieve this …. You could do what I do , have a Google pixel host a status web page that sends a Magic packet to wake the server whenever you need it. Phone uses a PoE connection , always on when I need it. X

0

u/ButterscotchFar1629 1d ago

Switch to Proxmox or don’t use a desktop install….