Comment 24 for bug 1767568

Revision history for this message
David R. Bergstein (dbergst) wrote : Re: Console DPMS Nonfunctional in Ubuntu Server 18.04

After revisiting this issue I was able to find a solution, via the setterm command. This is based on the guidance posted at https://superuser.com/questions/152347/change-linux-console-screen-blanking-behavior

For my system I created a new file in /etc/rc.local with the following contents:

#!/bin/bash
setterm -blank 5

Followed by the following command to register rc.local in systemd:

sudo systemctl enable rc.local

Alternatively, I could have set a boot parameter:
consoleblank=Y (Y in seconds, 0 to disable) to the kernel commandline by adding it to the parameter lists in /etc/default/grub, either GRUB_CMDLINE_LINUX or GRUB_CMDLINE_LINUX_DEFAULT

In any event console blanking does work now and this bug can probably be closed.