Menu

How to put black screen when the laptop's lid is closed? [Resolved]

dr_pompeii
2024-03-13
2024-03-16
  • dr_pompeii

    dr_pompeii - 2024-03-13

    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

     
    • John Faulk

      John Faulk - 2024-03-14

      Let me get this correct: You want it to simply lock the screen, and not go into hibernation/sleep?

       
      • dr_pompeii

        dr_pompeii - 2024-03-14

        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

         
        • John Faulk

          John Faulk - 2024-03-14

          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

           
          • dr_pompeii

            dr_pompeii - 2024-03-15

            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

             
  • Anonymous

    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 period article on laptop resume: https://www.linux.com/news/improved-ways-suspend-and-hibernate-laptop-under-linux/

     
  • dr_pompeii

    dr_pompeii - 2024-03-14

    Hello @cavy

    The scenario is the following:

    1. A laptop as client with Ubuntu, when the laptop's lid is closed, the screen goes to black and OS still running.
    2. 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

    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
    4. 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.

     
  • dr_pompeii

    dr_pompeii - 2024-03-14

    BTW, I was able to do:

    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

     
  • dr_pompeii

    dr_pompeii - 2024-03-15

    The final and correct configuration is:

    Menu
     Settings
      Power Manager
       System
        Plugged in <--- very important
         Laptop Lid
          Switch off display
    

    Solved

     
    👍
    1

Log in to post a comment.