XCP-ng on a laptop - turning off the monitor
-
Hi,
I installed XCP-ng 8.3 on a Dell Precision 7550 laptop. However, when I close the display lid, the display does not turn off. Anyone have any idea how to set the monitor to turn off? I have tried editing/etc/systemd/logind.conf
(HandleLidSwitch...), but without success, I am unable to get the monitor to turn off.
Regards,
Abu -
@abudef
setterm -blank 1
display will be blanked after 1 minute
i think it can work with -poweroff and -powerdown to -
Thanks @ph7! I tried that, too. Unfortunately it only clears the screen content, but the monitor is still on, backlight active.
I tried installing Windows 11 on the laptop, and there set it to do nothing when the lid is closed - not switch to sleep. Well, if I close the lid, the computer doesn't go to sleep, but the screen turns off (including the backlight). Same behaviour with Ubuntu 22.04.3 Linux. That's why I got the impression that it's somehow related to the system's reaction to the lid close sensor.
-
@ph7 - Unfortunately, -poweroff and -powerdown don't seem to work
-
@abudef
I ran into the same thing on a dell latitude 5411, but I eventually found a workaround. In the BIOS under System Configuration there was an option called Unobtrusive Mode, and when enabled, a specific key combination will turn off the display and speakers, independent of the OS. The same key combination will then turn them back on when needed.While an automatic feature would be preferable, the manual option meets my needs since it would be rare to need to use the laptop screen. The one downside for me is that if power is lost long enough that the battery drains, the screen will need manual intervention after power is restored - the BIOS will turn the machine back on when it receives power, but won't put the screen back in its previous state.
I put a sticker on the laptop with the key combination so I will remember it when needed.