Question HandleLidSwitch=ignore configuration does not work very well in a MacBook Pro 2012

Manuel Jordan

Commendable
Apr 3, 2022
247
5
1,585
Hello Friends

In a LAN exist 2 laptops HP and Toshiba having installed Ubuntu Desktop 24.04. Because they are accessed only by me through Remmina was applied the following configuration to avoid use unnecessarily the screen of each laptop:

  1. Open the /etc/systemd/logind.conf file
  2. Edit from #HandleLidSwitch=suspend to HandleLidSwitch=ignore
  3. Execute the sudo systemctl restart systemd-logind command
Thus for each laptop when the laptop's lid is closed happens 2 things:

  1. The screen goes black
  2. The laptop is still working in peace
Remember each laptop is accessed through Remmina.

Observation: if the laptop's lid is opened - at least with an angle more of 05 degree angle - the screen shown what is being executed. In other words is not the screen is not black any longer. Furthermore if the laptop's lid is opened with less of 5 degree angle the screen remains in black.

In a MacBook Pro 2012 was installed directly in its new SSD Ubuntu Desktop 24.04. Now, applying by complete all the same procedures indicated above: when the laptop's lid is closed the screen remains working - it is not turned black - I've confirmed this by opening the laptop's lid with a small degree angle.

How to fix this?

Just in case when the laptop's lid is closed by complete the "apple" light is turned on in white