To achieve a “black screen” with Proxmox on a laptop, you can disable the display by modifying the logind.conf file to ignore the lid switch, which prevents sleep, and set the systemd-logind service to ignore lid close events. Alternatively, you can set the screen to blank by creating a terminal file in the /sys/class/backlight/intel_backlight directory and changing its brightness to 0. For a temporary solution, the setterm -blank 1 command can turn off the screen after one minute.
Method 1: Using GRUB (Persistent)
This method adds a kernel parameter to your GRUB bootloader to keep the screen off after a certain period.
Reboot: bash reboot
Open the GRUB configuration file:bash nano /etc/default/grub
Modify GRUB_CMDLINE_LINUX_DEFAULT: Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT="quiet" and change it to: GRUB_CMDLINE_LINUX_DEFAULT="quiet consoleblank=60" Replace 60 with the desired number of seconds before the screen blanks.
Update GRUB: bash update-grub
Method 2: Using /sys/class/backlight/ for the Black Screen
This method directly sets the screen’s brightness to zero.
- Access the terminal: Open the terminal on your Proxmox system.
- Navigate to the backlight directory: Type
cd /sys/class/backlight/. - Identify the backlight device: You may need to identify the specific device, for example,
intel_backlightor similar. - Edit the brightness file: Use
nano brightnessto open the brightness file. - Set brightness to 0: Change the value to
0to turn off the screen. - Save and exit: Save the file.
Method 3: Using setterm -blank 1 for Temporary Black Screen
This command provides a temporary way to turn off the screen.
- Access the terminal: Open the terminal on your Proxmox system.
- Run the setterm command: Type the command
setterm -blank 1and press Enter. This will turn off the screen after one minute.