Results 1 to 10 of 10

Thread: No suspend when lid closed with kernel 3.8

  1. #1
    Join Date
    Apr 2008
    Beans
    109

    [solved] No suspend when lid closed with kernel 3.8

    hi,

    since 3.8, I get a lock screen instead of a suspend when I close my laptop's lid. ThinkPad X220, intel graphics.
    (Was ok in 3.7.)

    Anyone is having the same issue ?
    Thanks.
    Last edited by ft_; January 12th, 2013 at 08:47 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: No suspend when lid closed with kernel 3.8

    works for me on my xubuntu qunatal with 3.8.0-030800rc3-generic (my laptop; see signature)
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  3. #3
    Join Date
    Apr 2008
    Beans
    109

    Re: No suspend when lid closed with kernel 3.8

    OK !
    I got it.

    It was caused by a script which avoid suspend-bug with usb 3, located in /etc/pm/sleep.d .
    I removed this well-known script and my comp went suspended without any trouble.

    Sorry for the non-existing issue.


    (Note that this script never caused issue before, ie with kernels 3.5 and 3.7.)

  4. #4
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No suspend when lid closed with kernel 3.8

    Quote Originally Posted by ft_ View Post
    OK !
    I got it.

    It was caused by a script which avoid suspend-bug with usb 3, located in /etc/pm/sleep.d .
    I removed this well-known script and my comp went suspended without any trouble.

    Sorry for the non-existing issue.


    (Note that this script never caused issue before, ie with kernels 3.5 and 3.7.)
    This is why we are here, even though there are plenty of automated test done, they can't test every thing. This is a corner case that testing missed. Hopefully you created a bug report, and included your work-a-round.

  5. #5
    Join Date
    Apr 2008
    Beans
    109

    Re: No suspend when lid closed with kernel 3.8

    Since it is absolutely not an official script I deleted, I did not create any bug report. Nonetheless, it may be useful to know this workaround for updaters. I did find that with some flair, absolutely not reading any error log... So I damn do not know why now this script avoid suspend.

  6. #6
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: No suspend when lid closed with kernel 3.8

    what was the script? care to share the name of this "well known" script
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  7. #7
    Join Date
    Apr 2008
    Beans
    109

    Re: No suspend when lid closed with kernel 3.8

    I do not think that an user who has created this script in /etc/pm/sleep.d will have any doubt, but if you care about it :

    Code:
    #!/bin/sh
    
    EHCI_BUSES="0000:00:1a.0 0000:00:1d.0"
    case "${1}" in
        hibernate|suspend)
            # Switch USB buses off
            for bus in $EHCI_BUSES; do
                echo -n $bus > /sys/bus/pci/drivers/ehci_hcd/unbind
            done
            ;;
        resume|thaw)
            # Switch USB buses back on
            for bus in $EHCI_BUSES; do
                echo -n $bus > /sys/bus/pci/drivers/ehci_hcd/bind
            done
            ;;
    esac
    It was designed for an Asus K43SA but I migrated my hard disk to a ThinkPad X220 without USB 3. I forgot to delete it, without any consequence before kernel 3.8.
    Last edited by ft_; January 13th, 2013 at 09:50 AM.

  8. #8
    Join Date
    Aug 2009
    Beans
    1,303
    Distro
    Ubuntu Development Release

    Re: [solved] No suspend when lid closed with kernel 3.8

    By the way, I don't believe automatic suspend on screen closing works with the GNOME3 Staging PPA. The GNOME developers really want us to use systemd.

  9. #9
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: [solved] No suspend when lid closed with kernel 3.8

    Quote Originally Posted by jbicha View Post
    By the way, I don't believe automatic suspend on screen closing works with the GNOME3 Staging PPA. The GNOME developers really want us to use systemd.
    It does work on my Compaq netbook, but there isn't any way to enter a password on my system to unlock it. I'm currently using auto-login to access the desktop from a cold boot.

  10. #10
    Join Date
    Apr 2008
    Beans
    109

    Re: No suspend when lid closed with kernel 3.8

    Since I removed the script, the suspend works perfectly : quick + password back from suspend.

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
  •