You are not logged in.

#1 2015-06-12 09:57:32

beanaroo
Member
Registered: 2013-03-05
Posts: 39

Laptop not suspending on lid close

Lenovo G780 - Kernel 4.0.5-1

My laptop seems to be ignoring lid close events. I can suspend manually with no problem.

# journalctl -b -u systemd-logind

Jun 12 21:30:49 bean-laptop systemd-logind[343]: Lid closed.
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: pci_bus 0000:02: Allocating resources
Jun 12 21:30:49 bean-laptop kernel: pci_bus 0000:03: Allocating resources
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flagsJun 12 21:30:49 bean-laptop systemd-logind[343]: Lid closed.
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: pci_bus 0000:02: Allocating resources
Jun 12 21:30:49 bean-laptop kernel: pci_bus 0000:03: Allocating resources
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: pci_bus 0000:01: Allocating resources
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:55 bean-laptop kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
Jun 12 21:30:55 bean-laptop kernel: ACPI: \_SB_.PCI0.PEG0.PEGP: failed to evaluate _DSM
Jun 12 21:30:55 bean-laptop kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
Jun 12 21:31:01 bean-laptop systemd-logind[343]: Lid opened.
 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: pci_bus 0000:01: Allocating resources
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:49 bean-laptop kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Jun 12 21:30:55 bean-laptop kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
Jun 12 21:30:55 bean-laptop kernel: ACPI: \_SB_.PCI0.PEG0.PEGP: failed to evaluate _DSM
Jun 12 21:30:55 bean-laptop kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
Jun 12 21:31:01 bean-laptop systemd-logind[343]: Lid opened.

Any advice is greatly appreciated.

Offline

#2 2015-06-12 10:48:41

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: Laptop not suspending on lid close

Did you set anything up so that the laptop will react to lid close events? If not, do that first smile

Offline

#3 2015-06-12 22:21:17

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Laptop not suspending on lid close

Post the content of /etc/systemd/logind.conf


Jin, Jîyan, Azadî

Offline

#4 2015-06-13 02:40:09

beanaroo
Member
Registered: 2013-03-05
Posts: 39

Re: Laptop not suspending on lid close

Thanks for the help, guys.

I am using GNOME and by default it suspends on laptop lid close. Setting confirmed in tweak tool. My logind.conf is untouched.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes

Uncommenting HandleLidSwitch=suspend has no effect.

Offline

#5 2015-06-13 10:10:50

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Laptop not suspending on lid close

beanaroo wrote:

Uncommenting HandleLidSwitch=suspend has no effect.

The commented-out lines represent the default settings.

Does it work if you use the LTS kernel instead?


Jin, Jîyan, Azadî

Offline

#6 2015-06-15 01:30:47

beanaroo
Member
Registered: 2013-03-05
Posts: 39

Re: Laptop not suspending on lid close

Head_on_a_Stick wrote:

Does it work if you use the LTS kernel instead?

Strange, I totally expected this to work. Unfortunately no, it makes no difference.

I can suspend on lid close using other distros/OS.

Offline

#7 2015-06-15 07:10:21

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Laptop not suspending on lid close

beanaroo wrote:

I can suspend on lid close using other distros/OS.

Are these other distributions using any kernel parameters you can try on your Arch system?

Check with:

cat /proc/cmdline

Jin, Jîyan, Azadî

Offline

#8 2015-06-15 07:56:27

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,957
Website

Re: Laptop not suspending on lid close

Does

systemctl suspend

Work?

Edit: didn't read your first post wery well.

Last edited by ugjka (2015-06-15 08:06:29)

Offline

#9 2015-06-16 14:59:18

beanaroo
Member
Registered: 2013-03-05
Posts: 39

Re: Laptop not suspending on lid close

Head_on_a_Stick wrote:

Are these other distributions using any kernel parameters you can try on your Arch system?

No unusual parameters, all default. My current parameters are also as suggested by the wiki (root=xxx rw initrd=xxx)

Thanks for the help, sincerely. I might just do a full system wipe. Arch has always suspended and woken with the lid so beautifully on this machine.

Offline

Board footer

Powered by FluxBB