Results 1 to 2 of 2

Thread: 18.04 - Log out instead of suspension when laptop lid is closed.

  1. #1
    Join Date
    Jul 2008
    Location
    Israel
    Beans
    25
    Distro
    Ubuntu 13.10 Saucy Salamander

    18.04 - Log out instead of suspension when laptop lid is closed.

    Hi all,

    Im using Asus laptop, with Ubuntu 18.04.
    I would like an advice on the following scenario:

    When I close the lid, I would like the laptop go to sleep / suspension.

    I've set it up using Tweaks, however what happens is that the session is logged out, with all the open apps are closed of course.
    As far as I know, there is no OS function that will allow it, as there is only a general suspension settings.

    Thank you for any idea,
    Kirill

  2. #2
    Join Date
    Aug 2009
    Location
    United States
    Beans
    4,478
    Distro
    Ubuntu Development Release

    Re: 18.04 - Log out instead of suspension when laptop lid is closed.

    Settings to power to suspend when push power button

    #Shutdown normal GUI way or by command line.

    #Just a bit of the old for info easier ways with GUI

    #Open terminal
    shutdown -h now
    #Shutdown in specific time say two hours
    shutdown -h +120
    #Reboot
    reboot -r now
    Last edited by garvinrick4; 1 Day Ago at 03:38 AM.
    Remember hence where you come and pass it down.
    Ubuntu Forums member #899097 and Ubuntu Member:


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •