Turn off the HAOS server screen after some time without interaction on the machine

I installed HAOS on a notebook and after starting the server the screen stays on indefinitely, burning the monitor with the banner image.

I thought about using a command like; ‘setterm -blank 10’ in terminal or using the variable ‘BLANK_TIME=10’ somewhere in the system settings through the instructions in {…/home-assistant/operating-system/blob/4a1d2b75b94483efc749e88aab95fa639aa2bb0a/buildroot-external/configs/generic_x86_64_defconfig}…

but I also found this reference in another web search; ‘$ cat /sys/module/kernel/parameters/consoleblank’ where I think the desired effect of the system can be inferred.
and looking a little more I found this other material {…/home-assistant/operating-system/blob/dev/buildroot-external/kernel/v6.12.y/hassos.config} that shows the [CONFIG_CMDLINE=“”] boot resource, but then the answer came on the page {operating-system/Documentation/configuration.md at dev · home-assistant/operating-system · GitHub} where the option ‘consoleblank=600’ is informed in the boot in this file “/boot/cmdline.txt”

While you’re playing around with settings, it might be a good time to also ignore the lid closed power off behaviour for your notebook.

This post is for instructions on how to do it in Proxmox. The command should be the same if you’re running HAOS directly on baremetal, but the folder location might be different.

Setting this will allow you to close your notebook lid without shutting down your server :wink:

Guys, thanks for your attention, I wanted to say that I managed to solve this issue with the resource informed on github itself; {operating-system/buildroot-external/board/pc/generic-x86-64/cmdline.txt at 4a1d2b75b94483efc749e88aab95fa639aa2bb0a · home-assistant/operating-system · GitHub}, it was a little complicated but I managed it, the fact is that the instructions that will be passed when starting the system through the contents of the file; [cmdline.txt] in (/mnt/boot) must all be on a single line with the ‘end of line: Unix (LF) end of line character’ sign at the end of that single line.

so include the term “consoleblank=240” there through the command:
“# echo “$(cat /mnt/boot/cmdline.txt) consoleblank=240” > /mnt/boot/cmdline.txt”

and it worked perfectly.

1 Like

This would be VERY hardware and OS dependent, and would not be something that I can see them adding to core.

I would recommend changing the category to configuration, and ask the best way to do this outside of HA

1 Like

It’s already implemented in Linux as a generic config. Once you figure out that HA is essentially a stripped-down version version of Linux, google will get you most of the way there