FedoraForum.org - Fedora Support Forums and Community
Results 1 to 13 of 13
  1. #1
    Join Date
    Jun 2007
    Location
    Moscow
    Age
    42
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fedora 17: problem with hibernation

    Hi. My ASUS G53SW laptop often refuses to hibernate (I have 8GB RAM and 16GB swap) with the following message: Failed to freeze tasks after 20 seconds (0 tasks refuses to freeze, wq_busy=1). What's wq_busy and how to make hibernation always work? please help.

  2. #2
    Join Date
    Dec 2006
    Posts
    2,087
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    Which kernel are you using?

    Looks like you're the only one with that particular problem. Everybody else has wq_busy=0 ;-)

    Use the source, Luke ---> http://tomoyo.sourceforge.jp/cgi-bin...ower/process.c

  3. #3
    Join Date
    Jun 2007
    Location
    Moscow
    Age
    42
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    kernel-3.5.2-3.fc17.x86_64, but it happened with previous versions too. I found in google that wq_busy=1 means freezable workqueues are busy. What's workqueue and why it refuses to freeze?

  4. #4
    Join Date
    Feb 2009
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    I also experienced this in very rare occasions. Sometimes, killing firefox did help

    Klaus

  5. #5
    Join Date
    Aug 2012
    Location
    Central NJ
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    Interesting. I have the asus G53S running fedora 17 and i can suspend the system. But resume normally fails miserably.
    All I get, on a resume, is a patchwork of colors on parts on my screen. I was wondering if it was the display driver that might be causing this.
    (I had a seperate post on this topic in this General support forum as well ).

    So whats the best way to get your hands dirty and try to solve this ? Does grub still come into play on suspend/resume functionality? I dont think so, but just checking ...
    Or is this solely a fedora issue.

    btw: suspend/resume works flawlessly when using windows 7, so i know the hardware is working right.

  6. #6
    Join Date
    Jun 2007
    Location
    Moscow
    Age
    42
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    Resume works fine for me. I use nvidia drivers (NOT nouveau!). I also use special script that shuts down all usb controllers when hibernating and enables them back when resuming (without it suspend-to-ram doesn't work). I'll attach the script a bit later.

  7. #7
    Join Date
    Aug 2012
    Location
    Central NJ
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    ok. Can you please provide the nvidia driver name ?
    Also, did you have to uninstall nouveau, then install the nvidia drivers ?

  8. #8
    Join Date
    Jun 2007
    Location
    Moscow
    Age
    42
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    First, install rpmfusion repositories from rpmfusion.org. Then install akmod-nvidia and xorg-x11-drivers-nvidia of latest versions (currently 304.37). Add nouveau to blacklist in modprobe config (you might not need to do that beacause package installs blacklist config for nouveau if I remember correctly). Here's xorg.conf I use (attachment).
    Attached Files Attached Files

  9. #9
    Join Date
    Feb 2009
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    Hi,

    suspend/resume does not use grub, only hibernate does. I only remove my wifi driver on suspend/hibernate, as the brcmsmac works better this way.

    I have intel graphics, and suspend and hibernate both work fine. I use it really often

    Klaus

  10. #10
    Join Date
    Aug 2012
    Location
    Central NJ
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    Cool. Thanks for details The_Source_HIM.
    I will try this after a backup of my work.

    ---------- Post added at 10:16 AM ---------- Previous post was at 10:10 AM ----------

    Klaus, I disable the powering down of my wifi adapter when doing into suspend mode, as the adapter didnt connect back to the network even when manually trying to do so.
    What do you mean by remove the driver when suspend/hibernate. Maybe I should try this instead.

    So, remove upon hibernate and re-install upon resume ?

  11. #11
    Join Date
    Feb 2009
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    I'm using a script in /etc/pm/10-wifi.sh:

    Code:
    #!/bin/sh
    
    case $1 in
    	hibernate)
    		/sbin/rmmod brcmsmac
    		/bin/true
    	;;
    	suspend)
    		/sbin/rmmod brcmsmac
    		/bin/true
    	;;
    	thaw)
    		/sbin/modprobe brcmsmac
    		/bin/true
    	;;
    	resume)
    		/sbin/modprobe brcmsmac
    		/bin/true
    	;;
    	*)
    	;;
    esac
    ^^^^^^^^^^^snip

  12. #12
    Join Date
    Jun 2007
    Location
    Moscow
    Age
    42
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    I use script similar to Iklaus' to shutdown USB controllers. Perhaps I should unload wifi driver too. Here it is:

    #!/bin/sh

    BUSES="0000:00:1a.0 0000:00:1d.0"
    BUSES3="0000:04:00.0"

    case "${1}" in
    hibernate|suspend)
    # Switch USB buses off
    for bus in $BUSES; do
    echo -n $bus | tee /sys/bus/pci/drivers/ehci_hcd/unbind
    done
    # Switch USB 3.0 buses off
    for bus in $BUSES3; do
    echo -n $bus | tee /sys/bus/pci/drivers/xhci_hcd/unbind
    done
    ;;
    resume|thaw)
    # Switch USB buses back on
    for bus in $BUSES; do
    echo -n $bus | tee /sys/bus/pci/drivers/ehci_hcd/bind
    done
    # Switch USB 3.0 buses back on
    for bus in $BUSES3; do
    echo -n $bus | tee /sys/bus/pci/drivers/xhci_hcd/bind
    done
    ;;
    esac

    Note that BUSES and BUSES3 contain PCI ids of my USB controllers, for your machine you should set your own. Use lspci to get them.

  13. #13
    Join Date
    Jun 2007
    Location
    Moscow
    Age
    42
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 17: problem with hibernation

    I've added wifi and bluetooth driver unloading to my script and it seems it really helped. However, there's a catch: you must close all your open connections before hibernating or the script will fail.

    Edit: oops, no, it didn't help. wq_busy=1 popped up again. As there any way to find out who's workqueue refuses to freeze?
    Last edited by The_Source_HIM; 29th August 2012 at 06:54 AM.

Similar Threads

  1. ASUS G73JW-A1 Fedora 15 Hibernation / Suspension
    By TyroSe7en in forum Hardware
    Replies: 7
    Last Post: 27th February 2012, 09:13 PM
  2. Vista & fedora hibernation causes network issues
    By vrajkuma in forum Servers & Networking
    Replies: 4
    Last Post: 9th November 2010, 07:47 AM
  3. Hibernation Problem
    By watson516 in forum Hardware
    Replies: 2
    Last Post: 10th March 2009, 05:44 PM
  4. Replies: 1
    Last Post: 4th January 2008, 03:32 AM
  5. Replies: 0
    Last Post: 6th September 2007, 09:22 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •