You are not logged in.

#1 2017-03-14 13:17:43

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

How to suspend with lid open?

If I close the lid, the laptop suspends normally. If I run "systemctl suspend" with lid open, it suspends and wakes up immediately. I pasted several lines right before and after waking up below.

Mar 14 10:14:18 balanchine kernel: ACPI: Preparing to enter system sleep state S3
Mar 14 10:14:18 balanchine kernel: ACPI : EC: EC stopped
Mar 14 10:14:18 balanchine kernel: PM: Saving platform NVS memory
Mar 14 10:14:18 balanchine kernel: Disabling non-boot CPUs ...
Mar 14 10:14:18 balanchine kernel: smpboot: CPU 1 is now offline
Mar 14 10:14:18 balanchine kernel: smpboot: CPU 2 is now offline
Mar 14 10:14:18 balanchine kernel: smpboot: CPU 3 is now offline
Mar 14 10:14:18 balanchine kernel: ACPI: Low-level resume complete
Mar 14 10:14:18 balanchine kernel: ACPI : EC: EC started
Mar 14 10:14:18 balanchine kernel: PM: Restoring platform NVS memory
Mar 14 10:14:18 balanchine kernel: Suspended for 3.390 seconds
Mar 14 10:14:18 balanchine kernel: Enabling non-boot CPUs ...

Offline

#2 2017-03-14 13:51:15

Jeroen)Mathon
Member
From: Netherlands
Registered: 2013-08-29
Posts: 82

Re: How to suspend with lid open?

Hey Cemsbr,

This can be achieved by running

systemctl suspend

Last edited by Jeroen)Mathon (2017-03-14 13:51:36)

Offline

#3 2017-03-14 14:03:03

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How to suspend with lid open?

@Jeroen)Mathon - Did you actually read the OP?

cemsbr wrote:

If I run "systemctl suspend" with lid open, it suspends and wakes up immediately.

Last edited by Slithery (2017-03-14 14:03:52)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2017-03-14 14:45:22

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: How to suspend with lid open?

The exact laptop model and type would help to investigate this issue.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#5 2017-03-14 17:47:58

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: How to suspend with lid open?

Alad wrote:

The exact laptop model and type would help to investigate this issue.

# dmidecode -s system-product-name
MacBookPro8,1

Offline

#6 2017-03-14 17:55:51

nokangaroo
Member
Registered: 2013-09-08
Posts: 25

Re: How to suspend with lid open?

You can try

HandleLidSwitch=ignore

in /etc/systemd/logind.conf. Also, do you have acpid installed? Try disabling it.
Also systemctl has an " --ignore-inhibitors" option.

Last edited by nokangaroo (2017-03-14 17:59:22)

Offline

#7 2017-03-14 18:15:29

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: How to suspend with lid open?

nokangaroo wrote:

You can try

HandleLidSwitch=ignore

in /etc/systemd/logind.conf. Also, do you have acpid installed? Try disabling it.
Also systemctl has an " --ignore-inhibitors" option.

I tried ignoring HandleLidSwitch and then running "systemctl --ignore-inhibitors suspend" and got same results.

Offline

#8 2017-03-14 18:39:03

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: How to suspend with lid open?

Did you restart systemd-logind?

Offline

#9 2017-03-14 21:03:57

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: How to suspend with lid open?

qinohe wrote:

Did you restart systemd-logind?

Just did that (and kicked off from my X session sad), but got same results. I also disconnected all USB and ethernet cablea before suspending.

Offline

#10 2017-03-14 22:47:47

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: How to suspend with lid open?

Sorry for that, yes it kills your session..
I have no further solutions, but, you could try to get it working with acpid

Offline

#11 2017-03-14 23:37:13

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: How to suspend with lid open?

I forgot to answer @nokangaroo that I didn't install acpid. I was wondering what actually happens when the lid is closed so I can do the same with the lid open.

Offline

#12 2017-03-15 01:32:26

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: How to suspend with lid open?

When lid is closed, systemd suspends your system, (provided "HandleLidSwitch=suspend" is set in logind or the option is commentedout to default value). As long as lid remain closed your laptop keeps suspending in case it is wakeup by some event.

Offline

Board footer

Powered by FluxBB