Question "systemctl suspend" command 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. Through the Terminal for each one is executed the following command:


sleep 60 && systemctl suspend


As expected the screen goes black and the suspend mode starts. To resume is pressed the "PowerOn" button of the laptop itself and if my memory does not fail can be pressed either the Esc or Intro keys. For any case the login screen again appears and is possible be working. Until here no reason to create this post

In a MacBook Pro 2012 was installed directly in its new SSD Ubuntu Desktop 24.04. Now, when the same command is executed the screen goes black as expected but in less of 5 seconds always and automatically appears the login screen.

How to fix this?

Note the sleep 60 command is only used to let a Remmina client time to close the remote connection
 
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
 
Hello Friends

Ubuntu Desktop 24.04 was installed on a new SSD in a MacBook Pro 2012. It works fine. The following situation has happened only twice:

The laptop is turned off and of course it's lid is closed. At any time suddenly it will startup by itself - even with the lid closed. The first time it happened was when I returned after shopping but I did not realize because the external cooler was still working. After 1 or 2 weeks it happened just one hour ago, meanwhile I was working on another laptop.

As you can see it happened between a considerable range of time.

Observation: just in case, the following configuration was done:

In the /etc/systemd/logind.conf file was edit from #HandleLidSwitch=suspend to HandleLidSwitch=ignore and was executed the sudo systemctl restart systemd-logind command

I am sure the second event happened after of that configuration but I don't remember if the first event happened before or after the configuration.

How to fix this situation?