For Peppermint 11.6 bullseye - which it is based on Debian - for 32 bits
Where and how I can configure the OS itself for: when the laptop's lid is closed the OS still working but with the screen as black. So far I can do this approach for Ubuntu but not for Peppermint
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ahh, so you want Peppermint to simply "blank" the screen, without locking it? So that activity continues in the background? If so, I'd be happy to show you how
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the reply. It seems we are in the correct channel, pls share the respective instructions. Once test it I am going to share the results to this friendly community.
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2024-03-14
I understand, if you want to close the lid on a laptop with it still operating, it goes into hibernation mode. Do you have a swap partition that matches your RAM 1 to 1?
With 32bit computers, if memory is correct they have a max of 3GB of RAM, you will have make sure your swap partition is set to 4.5GB to compensate when in hibernation.
A laptop as client with Ubuntu, when the laptop's lid is closed, the screen goes to black and OS still running.
With other Laptop as host, is used Remmina to control the client within the same LAN.
Therefore the laptop as client does not need have the lid open and the monitor/screen showing the current content. Therefore, when the lid closed is clever have the screen as black to avoid have it working unnecessarily.
And yes, even when the client has the lid closed and the monitor as black it thanks to a specfic configuration for Ubuntu through
Open the /etc/systemd/logind.conf file
Edit from "#HandleLidSwitch=suspend" to "HandleLidSwitch=ignore"
Execute the sudo systemctl restart systemd-logind command
Do login again, if it remains in black with underscore in white - Press ctrl + c and do login again
Yes, there is no GUI to configure this at Ubuntu!
Returning to the case - once having the black screen - really as ignore according with the (2) - I can use the client through the host thanks to Remmina. Therefore the screen in the host let me use the client in peace even when it has its screen as black.
Thus it is not about hibernation.
BTW I tried the following:
Menu
Settings
Power Manager
System
Laptop Lid
AAA
Where AAA has the following options:
Switch off display
Suspend
Hibernate
Lock screen (by default)
If is selected Switch off display - and even if Peppermint is restarted - when the lid is closed and reopened, the Login control is requested.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Even when restarted the OS, the desired behavior does not happen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For Peppermint 11.6 bullseye - which it is based on Debian - for 32 bits
Where and how I can configure the OS itself for: when the laptop's lid is closed the OS still working but with the screen as black. So far I can do this approach for Ubuntu but not for Peppermint
Thanks in advance
Let me get this correct: You want it to simply lock the screen, and not go into hibernation/sleep?
Hello John
Pls read my two latest replies. Practically it is about:
How can I tell Ubuntu to do nothing when I close my laptop lid?
Thank You
Ahh, so you want Peppermint to simply "blank" the screen, without locking it? So that activity continues in the background? If so, I'd be happy to show you how
Hello John
Thanks for the reply. It seems we are in the correct channel, pls share the respective instructions. Once test it I am going to share the results to this friendly community.
Thanks in advance
I understand, if you want to close the lid on a laptop with it still operating, it goes into hibernation mode. Do you have a swap partition that matches your RAM 1 to 1?
With 32bit computers, if memory is correct they have a max of 3GB of RAM, you will have make sure your swap partition is set to 4.5GB to compensate when in hibernation.
A period article on laptop resume: https://www.linux.com/news/improved-ways-suspend-and-hibernate-laptop-under-linux/
Hello @cavy
The scenario is the following:
Therefore the laptop as client does not need have the lid open and the monitor/screen showing the current content. Therefore, when the lid closed is clever have the screen as black to avoid have it working unnecessarily.
And yes, even when the client has the lid closed and the monitor as black it thanks to a specfic configuration for Ubuntu through
/etc/systemd/logind.conf
file"#HandleLidSwitch=suspend"
to"HandleLidSwitch=ignore"
sudo systemctl restart systemd-logind
commandctrl + c
and do login againYes, there is no GUI to configure this at Ubuntu!
Returning to the case - once having the black screen - really as ignore according with the (2) - I can use the client through the host thanks to Remmina. Therefore the screen in the host let me use the client in peace even when it has its screen as black.
Thus it is not about hibernation.
BTW I tried the following:
Where
AAA
has the following options:If is selected
Switch off display
- and even if Peppermint is restarted - when the lid is closed and reopened, the Login control is requested.BTW, I was able to do:
1 Open the
/etc/systemd/logind.conf
file2. Edit from
"HandleLidSwitch=suspend
toHandleLidSwitch=ignore
3. Execute the
sudo systemctl restart systemd-logind
commandEven when restarted the OS, the desired behavior does not happen
The final and correct configuration is:
Solved