suspending on shutdown when lid is closed

Bug #1276659 reported by Patrik Nilsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description of the problem:
When power-settings are set to do nothing when lid is closed, my computer most of the times suspends on shutdown, only shutdown. When lid is opened the shutdown is continued.

Result 9 cases out of 10:

1. Setting options to do nothing (not suspending) on closing lid on my laptop.
2. Open terminal and type "sudo shutdown -P 5 min"
3. Close Lid.
4. Wait for shutdown.
5. Wait for suspend.
6. Open the lid. (You will find the computer in suspended mode. It always displays its final logo before shutdown when opened. So actually the shutdown is triggered and in progress, but is then interrupted by a suspend instruction.)
7. The computer continues to shutdown, when lid is opened.

Expected result:

1. Setting options to do nothing (not suspending) on closing lid on my laptop.
2. Open terminal and type "sudo shutdown -P 5 min"
3. Close Lid.
4. Wait for shutdown.
5. The computer is off.

When I don't close the lid everything goes as expected.

I actually have a backup script running when I shutdown the computer and the last thing it does is to shutdown the computer.

I have run Debian with gtk 2 successfully. I have run Ubuntu successfully before Unity. Now I run UbuntuGnome.

I think there is a change in option, set to the kernel during shutdown, which triggers the suspend.

A page (https://wiki.ubuntu.com/Bugs/FindRightPackage) suggests gnome-power-manager, pm-utils, or the kernel to be the failure.

patrik@Ubuntu:~$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10

Tags: bot-comment
summary: - suspending on shutdown when closed lid during shutdown
+ suspending on shutdown when lid is closed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1276659/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → sysvinit (Ubuntu)
affects: sysvinit (Ubuntu) → gnome-power-manager (Ubuntu)
Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

The message that appears when lid is opened is something about "acpi".

Revision history for this message
Lionel Conrad-Bruat (lionelcb) wrote :

I have exactly the same problem. Same settings (do nothing on closing lid).
Kubuntu 13.10
Dell Inspiron 9400, latest BIOS

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

This bug is still present in Ubuntu 14.04.

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

This bug is from Xorg:

Log of Acpid:
acpid: received input layer event "button/lid LID close"
acpid: rule from 1606[0:0] matched
acpid: notifying client 1606[0:0]
acpid: 1 total rule matched
acpid: completed input layer event "button/lid LID close"
acpid: received input layer event "button/lid LID open"
acpid: rule from 1606[0:0] matched
acpid: notifying client 1606[0:0]
acpid: 1 total rule matched
acpid: completed input layer event "button/lid LID open"

Process 1606 is notified:

ps -Al | grep 1606
4 S 0 1606 1262 1 80 0 - 90365 poll_s tty7 00:00:18 Xorg

patrik@ubuntu:/home/files$ dpkg -S Xorg
xserver-xorg-core: /usr/share/man/man1/Xorg.1.gz
xserver-xorg-core: /usr/bin/Xorg

=> xorg-server

affects: gnome-power-manager (Ubuntu) → xorg-server (Ubuntu)
Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

This bug is also in effect when shutting down in the normal way: 1) Select shutdown from the menu 2) Select restart or shutdown 3) Close the lid

The computer suspends, when x-org exit.

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

It is also present in Ubuntu 14.10.

affects: xorg-server (Ubuntu) → systemd (Ubuntu)
Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :

Here is a fix for this bug:

To "/etc/systemd/logind.conf" add...

HandleLidSwitch=ignore

Revision history for this message
Patrik Nilsson (nipatriknilsson) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.