Results 1 to 8 of 8

Thread: Laptop doesn't suspend when closing the lid

  1. #1
    Join Date
    Dec 2019
    Beans
    3

    Laptop doesn't suspend when closing the lid

    Hello,
    I have a fresh Ubuntu 18.04 LTS install on a brand new Lenovo IdeaPad 330 laptop. Everything works perfectly, except for one thing: when closing the lid, nothing happens. It isn't the problem with suspending itself (it works fine with pressing ALT button and clicking the power icon), what I discovered is that Ubuntu recognizes the laptop lid state always open. However, when I suspend it this way (ALT+click pwr icon), close the lid, then open, it wakes up automatically - no problem with the hardware I guess.

    Code:
    while true; do sleep 1; cat /proc/acpi/button/lid/LID0/state ; done
    Running the script above, closing and opening the lid shows the state "Open" with every measurement, no matter if the lid is open or closed.
    Tried to edit /etc/systemd/logind.conf, but it doesn't do anything, because the system thinks that lid is open all the time.

    I have no clue what to do now, I need some help
    Thank you,
    Pat

  2. #2
    Join Date
    Aug 2007
    Location
    Canada
    Beans
    458
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Laptop doesn't suspend when closing the lid

    Can you post the output of:

    $ uname -a
    $ lsb_release -a
    Best, Gnusci

    "Never make a calculation until you know the answer." -- Wheeler, Spacetime Physics, pg 60.

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    14,701
    Distro
    Kubuntu Development Release

    Re: Laptop doesn't suspend when closing the lid

    Have you checked the options in Power settings? What do you have as the setting for what to do when the lid is closed?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  4. #4
    Join Date
    Dec 2019
    Beans
    3

    Re: Laptop doesn't suspend when closing the lid

    Code:
    uname -a
    Linux joanna-Lenovo-ideapad-330-15ICH 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    Code:
    lsb_release -a
    No LSB modules are available.
    Distributor ID:    Ubuntu
    Description:    Ubuntu 18.04.3 LTS
    Release:    18.04
    Codename:    bionic
    There's no options in preferences for the lid, only for the power button. I read somewhere it was removed because of a bug that caused problems when connecting external monitor. However I installed the Tweak Tool and there is indeed an option to suspend when lid is closed and it's set to "on".

  5. #5
    Join Date
    Jun 2019
    Location
    Dirndl-land
    Beans
    198
    Distro
    Lubuntu 19.10 Eoan Ermine

    Re: Laptop doesn't suspend when closing the lid

    Edit the contents of /etc/systemd/logind.conf
    Suspend is normally not a big issue, Hibernate needs much more attention and setup.

  6. #6
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    14,701
    Distro
    Kubuntu Development Release

    Re: Laptop doesn't suspend when closing the lid

    Quote Originally Posted by paperos View Post
    There's no options in preferences for the lid, only for the power button.
    Hmm. I use Kubuntu, and that option has been in System Settings for as long as I can remember. I just checked now, and it's still there in 19.10.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  7. #7
    Join Date
    Dec 2019
    Beans
    3

    Re: Laptop doesn't suspend when closing the lid

    I edited /etc/systemd/logind.conf, but no luck. Ubuntu doesn't recognize the lid closed, so it has no effect.

  8. #8
    Join Date
    Aug 2007
    Location
    Canada
    Beans
    458
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Laptop doesn't suspend when closing the lid

    You need to upgrade to a newer Ubuntu. 19.10:

    http://releases.ubuntu.com/19.10/

    LTS, support older hardware, you need a newer kernel.
    Best, Gnusci

    "Never make a calculation until you know the answer." -- Wheeler, Spacetime Physics, pg 60.

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
  •