Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Suspend breaks on 12.10's kernel

  1. #1
    Join Date
    Apr 2008
    Beans
    10

    Suspend breaks on 12.10's kernel

    (Also posted at http://askubuntu.com/questions/20374...-12-10s-kernel)

    0 down vote favorite


    I just installed installed 12.10, and suspend is not working. Here are more details:

    • When I select suspend from the power menu, the screen goes black (with the monitor still running), but the computer is still running. Num Lock works, but Caps Lock doesn't work (see below). The computer never enters suspend mode, but I can't get the monitor to respond either. The only way I can get out of this situation is to shut down the machine by holding the power button.
    • When I forcefully reboot it, I get the message "Ubuntu 12.10 has encountered an internal error". Apparently something is wrong with apportcheckresume.
    • I googled a bit and found this launchpad bug report. I installed the amd64 kernel from here; on this new kernel suspend works. But there are no drivers, so it's not a solution.




    So, the question is:

    1. How do I fix suspend on the current kernel (3.5.0-17-generic); OR
    2. How do I install drivers on the mainline kernel?

    A solution to either will solve the problem.

    --
    [*] How to debug suspend? seem to suggest this is a kernel hang?

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

    Re: Suspend breaks on 12.10's kernel

    here is a kernel update installer
    **whatever package contains the notify-send command is a unlisted dependency

    have you tried this:
    long suspend command
    Code:
    dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
    lets give that a alias
    Code:
    sudo sh -c "echo '#!/bin/sh\ndbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend' >/usr/local/bin/suspend;sudo chmod +x /usr/local/bin/suspend"
    now just run suspend from a terminal or keyboard shortcut
    there is also this command
    Code:
    sudo pmi action suspend
    Attached Files Attached Files
    Last edited by pqwoerituytrueiwoq; October 21st, 2012 at 01:00 AM.
    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
    10

    Re: Suspend breaks on 12.10's kernel

    Unfortunately, neither of those two suspend commmand worked. I tried out your script, but I get the following error:

    Code:
    --2012-10-21 02:29:04--  http://kernel.ubuntu.com/~kernel-ppa...121823_all.deb
    Resolving kernel.ubuntu.com (kernel.ubuntu.com)... 91.189.94.216
    Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 12258662 (12M) [application/x-debian-package]
    Saving to: `linux-headers-3.6.2-030602_3.6.2-030602.201210121823_all.deb.3'
    
    100%[======================================================================================================>] 12,258,662  3.23M/s   in 5.7s    
    
    2012-10-21 02:29:10 (2.06 MB/s) - `linux-headers-3.6.2-030602_3.6.2-030602.201210121823_all.deb.3' saved [12258662/12258662]
    
    --2012-10-21 02:29:10--  http://kernel.ubuntu.com/~kernel-ppa...1823_amd64.deb
    Resolving kernel.ubuntu.com (kernel.ubuntu.com)... 91.189.94.216
    Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 27871898 (27M) [application/x-debian-package]
    Saving to: `linux-image-extra-3.6.2-030602-generic_3.6.2-030602.201210121823_amd64.deb.2'
    
    100%[======================================================================================================>] 27,871,898  3.00M/s   in 14s     
    
    2012-10-21 02:29:24 (1.91 MB/s) - `linux-image-extra-3.6.2-030602-generic_3.6.2-030602.201210121823_amd64.deb.2' saved [27871898/27871898]
    
    --2012-10-21 02:29:24--  http://kernel.ubuntu.com/~kernel-ppa...1823_amd64.deb
    Reusing existing connection to kernel.ubuntu.com:80.
    HTTP request sent, awaiting response... 200 OK
    Length: 943398 (921K) [application/x-debian-package]
    Saving to: `linux-headers-3.6.2-030602-generic_3.6.2-030602.201210121823_amd64.deb.2'
    
    100%[======================================================================================================>] 943,398     2.10M/s   in 0.4s    
    
    2012-10-21 02:29:25 (2.10 MB/s) - `linux-headers-3.6.2-030602-generic_3.6.2-030602.201210121823_amd64.deb.2' saved [943398/943398]
    
    --2012-10-21 02:29:25--  http://kernel.ubuntu.com/~kernel-ppa...1823_amd64.deb
    Reusing existing connection to kernel.ubuntu.com:80.
    HTTP request sent, awaiting response... 200 OK
    Length: 12279358 (12M) [application/x-debian-package]
    Saving to: `linux-image-3.6.2-030602-generic_3.6.2-030602.201210121823_amd64.deb.2'
    
    100%[======================================================================================================>] 12,279,358  3.21M/s   in 5.4s    
    
    2012-10-21 02:29:31 (2.18 MB/s) - `linux-image-3.6.2-030602-generic_3.6.2-030602.201210121823_amd64.deb.2' saved [12279358/12279358]
    
    FINISHED --2012-10-21 02:29:31--
    Total wall clock time: 21s
    Downloaded: 3 files, 39M in 20s (1.99 MB/s)
    dpkg-deb (subprocess): cannot copy archive member from './linux-headers-3.6.2-030602_3.6.2-030602.201210121823_all.deb' to decompressor pipe: unexpected end of file or stream
    dpkg-deb: error: subprocess paste returned error exit status 2
    dpkg: error processing ./linux-headers-3.6.2-030602_3.6.2-030602.201210121823_all.deb (--install):
     cannot copy extracted data for './usr/src/linux-headers-3.6.2-030602/arch/ia64/include/asm/paravirt_privop.h' to '/usr/src/linux-headers-3.6.2-030602/arch/ia64/include/asm/paravirt_privop.h.dpkg-new': unexpected end of file or stream
    Done.
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    dpkg: dependency problems prevent configuration of linux-headers-3.6.2-030602-generic:
     linux-headers-3.6.2-030602-generic depends on linux-headers-3.6.2-030602; however:
      Package linux-headers-3.6.2-030602 is not installed.
    
    dpkg: error processing linux-headers-3.6.2-030602-generic (--install):
     dependency problems - leaving unconfigured
    Running depmod.
    update-initramfs: deferring update (hook will be called later)
    Not updating initrd symbolic links since we are being updated/reinstalled 
    (3.6.2-030602.201210121823 was configured last, according to dpkg)
    Not updating image symbolic links since we are being updated/reinstalled 
    (3.6.2-030602.201210121823 was configured last, according to dpkg)
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    update-initramfs: Generating /boot/initrd.img-3.6.2-030602-generic
    run-parts: executing /etc/kernel/postinst.d/pm-utils 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    run-parts: executing /etc/kernel/postinst.d/update-notifier 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.7.0-030700rc1-generic
    Found initrd image: /boot/initrd.img-3.7.0-030700rc1-generic
    Found linux image: /boot/vmlinuz-3.6.2-030602-generic
    Found initrd image: /boot/initrd.img-3.6.2-030602-generic
    Found linux image: /boot/vmlinuz-3.5.0-17-generic
    Found initrd image: /boot/initrd.img-3.5.0-17-generic
    Found memtest86+ image: /boot/memtest86+.bin
    Found Windows 7 (loader) on /dev/sda1
    done
    Running depmod.
    update-initramfs: deferring update (hook will be called later)
    Not updating initrd symbolic links since we are being updated/reinstalled 
    (3.6.2-030602.201210121823 was configured last, according to dpkg)
    Not updating image symbolic links since we are being updated/reinstalled 
    (3.6.2-030602.201210121823 was configured last, according to dpkg)
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    update-initramfs: Generating /boot/initrd.img-3.6.2-030602-generic
    run-parts: executing /etc/kernel/postinst.d/pm-utils 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    run-parts: executing /etc/kernel/postinst.d/update-notifier 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.6.2-030602-generic /boot/vmlinuz-3.6.2-030602-generic
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.7.0-030700rc1-generic
    Found initrd image: /boot/initrd.img-3.7.0-030700rc1-generic
    Found linux image: /boot/vmlinuz-3.6.2-030602-generic
    Found initrd image: /boot/initrd.img-3.6.2-030602-generic
    Found linux image: /boot/vmlinuz-3.5.0-17-generic
    Found initrd image: /boot/initrd.img-3.5.0-17-generic
    Found memtest86+ image: /boot/memtest86+.bin
    Found Windows 7 (loader) on /dev/sda1
    done
    Errors were encountered while processing:
     ./linux-headers-3.6.2-030602_3.6.2-030602.201210121823_all.deb
     linux-headers-3.6.2-030602-generic

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

    Re: Suspend breaks on 12.10's kernel

    looks like a bad download to me
    i used this 3 times in the last 2 days
    this copy is harder to mess-up with
    Attached Files Attached Files
    Last edited by pqwoerituytrueiwoq; October 21st, 2012 at 03:28 PM.
    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

  5. #5
    Join Date
    Nov 2010
    Beans
    98

    Re: Suspend breaks on 12.10's kernel

    Quote Originally Posted by kli6891 View Post
    (Also posted at http://askubuntu.com/questions/20374...-12-10s-kernel)

    0 down vote favorite


    I just installed installed 12.10, and suspend is not working. Here are more details:

    • When I select suspend from the power menu, the screen goes black (with the monitor still running), but the computer is still running. Num Lock works, but Caps Lock doesn't work (see below). The computer never enters suspend mode, but I can't get the monitor to respond either. The only way I can get out of this situation is to shut down the machine by holding the power button.
    • When I forcefully reboot it, I get the message "Ubuntu 12.10 has encountered an internal error". Apparently something is wrong with apportcheckresume.
    • I googled a bit and found this launchpad bug report. I installed the amd64 kernel from here; on this new kernel suspend works. But there are no drivers, so it's not a solution.




    So, the question is:

    1. How do I fix suspend on the current kernel (3.5.0-17-generic); OR
    2. How do I install drivers on the mainline kernel?

    A solution to either will solve the problem.

    --[*] How to debug suspend? seem to suggest this is a kernel hang?

    I second you! I posted a thread when i didn't see yours: http://ubuntuforums.org/showthread.php?t=2074139 (May be some good soul of administrator here could put them together in some way?)

    Just to mention: I'm on lubuntu 12.10, but i checked with a Fedora 17 live cd (based on 3.6 kernel and a kubuntu 12.10 as well as with a LinuxMint Debian 13 (based on 3.2 kernel). Only the Linux Mint was able to suspend and to hibernate.

  6. #6
    Join Date
    Nov 2010
    Beans
    98

    Re: Suspend breaks on 12.10's kernel

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    here is a kernel update installer
    **whatever package contains the notify-send command is a unlisted dependency]

    lets give that a alias
    Code:
    sudo sh -c "echo '#!/bin/sh\ndbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend' >/usr/local/bin/suspend;sudo chmod +x /usr/local/bin/suspend"
    now just run suspend from a terminal or keyboard shortcut
    there is also this command
    Code:
    sudo pmi action suspend
    When i try this command, i'm getting this error msg
    Code:
    bash: !/bin/sh\ndbus-send: event not found

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

    Re: Suspend breaks on 12.10's kernel

    Code:
    sudo sh -c 'echo "#!/bin/sh\ndbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend" >/usr/local/bin/suspend;chmod +x /usr/local/bin/suspend'
    fixed
    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

  8. #8
    Join Date
    Nov 2010
    Beans
    98

    Re: Suspend breaks on 12.10's kernel

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    Code:
    sudo sh -c 'echo "#!/bin/sh\ndbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend" >/usr/local/bin/suspend;chmod +x /usr/local/bin/suspend'
    fixed
    That worked. But the following command not:

    Code:
    myname@ab-535U3C:~$ sudo pmi action suspend
    sudo: pmi: Befehl nicht gefunden

  9. #9
    Join Date
    Apr 2008
    Beans
    10

    Re: Suspend breaks on 12.10's kernel

    Quote Originally Posted by Farinet View Post
    I second you! I posted a thread when i didn't see yours: http://ubuntuforums.org/showthread.php?t=2074139 (May be some good soul of administrator here could put them together in some way?)

    Just to mention: I'm on lubuntu 12.10, but i checked with a Fedora 17 live cd (based on 3.6 kernel and a kubuntu 12.10 as well as with a LinuxMint Debian 13 (based on 3.2 kernel). Only the Linux Mint was able to suspend and to hibernate.
    Good to know I'm not the only one having this problem .
    Have you tried the mainline kernels I linked in the first post to see if that fixes your problem?

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    looks like a bad download to me
    i used this 3 times in the last 2 days
    this copy is harder to mess-up with
    OK, this new version worked, and I booted into the new kernels it installed. All the drivers are working! (3.6.2, and 3.7rc2, or something to that effect.)

    But suspend does not work, still -- same symptoms as before.

    As I said before, the 3.7rc1 I installed from mainline does have a working suspend. I'm starting to suspect now that it's the video driver that is causing me problems; I googled around a bit, and found reference to some nouveau driver preventing sleep.

    Is there a way to disable the video driver, so I can confirm this is the case?

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

    Re: Suspend breaks on 12.10's kernel

    Code:
    echo "blacklist nouveau" | sudo tee -a /etc/modprobe.d/blacklist.conf
    i assume you spelled the driver name right

    if you have a nvidia driver i suggest using nouveau or nvidia-current
    nouveau has come a long way from what it used to be, spelling it is still a pain though
    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

Page 1 of 3 123 LastLast

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
  •