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.

  1. Access the terminal: Open the terminal on your Proxmox system.
  2. Navigate to the backlight directory: Type cd /sys/class/backlight/.
  3. Identify the backlight device: You may need to identify the specific device, for example, intel_backlight or similar.
  4. Edit the brightness file: Use nano brightness to open the brightness file.
  5. Set brightness to 0: Change the value to 0 to turn off the screen.
  6. 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.

  1. Access the terminal: Open the terminal on your Proxmox system.
  2. Run the setterm command: Type the command setterm -blank 1 and press Enter. This will turn off the screen after one minute. 

By admin

WordPress Appliance - Powered by TurnKey Linux