0

After about 10 minutes my monitor turns off, am wondering if I can set it to 30 minutes? I am on Ubuntu server with no GUI, just terminal.

I found a tutorial that completely turns off power management:

https://en-wiki.ikoula.com/en/Disable_Ubuntu_sleep_mode

not exactly what I want, I figure there is a config file somewhere?

ubudoge
  • 31
  • As far as I know, the Ubuntu server default console blank time is that it never turns off. If you have 10 minutes, then I assume you set it at some point. Anyway, see here. Many many releases ago, there was a default screen blank time of 5 or 10 minutes. – Doug Smythies Jun 08 '23 at 22:12
  • @DougSmythies Thank you, I forgot my brother helped my edit that grub file when we first installed. – ubudoge Jun 09 '23 at 01:26

1 Answers1

0

I set up a systemctl unit by creating a file in

sudo vi /etc/systemd/system/console-blanking.service

Then put these lines into the file:

[Unit]
Description=Enable virtual console blanking

[Service] Type=oneshot Environment=TERM=linux StandardOutput=tty TTYPath=/dev/console ExecStart=/usr/bin/setterm -blank 60

[Install] WantedBy=multi-user.target

This will turn off the monitor after 60 minutes.

ubudoge
  • 31